16
Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Embed Size (px)

Citation preview

Page 1: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Lecture 1

OutlineStatistical MultiplexingInter-Process Communication

Page 2: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Building Blocks

• Nodes: PC, special-purpose hardware…– hosts– switches

• Links: coax cable, optical fiber, wireless…– point-to-point

– multiple access…

Page 3: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Switched Networks

– two or more nodes connected by a link, or

– two or more networks connected by two or more nodes

• A network can be defined recursively as...

Page 4: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Strategies

• Circuit switching: carry bit streams– original telephone network

• Packet switching: store-and-forward messages or packets– Internet

Page 5: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Addressing and Routing

• Address: byte-string that identifies a node– usually unique

• Routing: process of forwarding messages to the destination node based on its address

• Types of addresses– unicast: single destination node– broadcast: all nodes on the network– multicast: some subset of nodes on the network

Page 6: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Summary

• Network constructed from a nesting of sub-networks implemented by a physical medium– >2 nodes connected by a physical link

– >2 networks connected by at least 1 node

• Providing host-to-host connectivity requires an address for each node and a means to route messages across the network to that address

• Broadcast and multicast also required functions

Page 7: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Resource Sharing or Multiplexing

L1

L2

L3

R1

R2

R3Switch 1 Switch 2

Page 8: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

STDM and WDM

• Synchronous time division multiplexing– Users assigned time quantum on a round robin basis

• A T1 line supports 24 users –packet size fixed

• Wavelength division multiplexing– Users assigned fixed frequency slot or band

• Deficiencies– Wasted time slots or bandwidth

– Cannot accommodate unknown number of users

Page 9: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Statistical Multiplexing• On-demand time-division• Schedule link on a per-packet basis• Packets from different sources interleaved on link• Buffer packets that are contending for the link• Buffer (queue) overflow is called congestion

Page 10: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Fairness

• Fixed packet size

• First-in-first-out

• A network that allows priority to be assigned to a packet-or max delay etc. is said to support Quality of Service (QOS)

Page 11: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Summary

• Statistical Multiplexing defines an efficient way for host-to-host data flows to share network resources (links and nodes) in a fine-grained manner.

• Switches schedule links on a per packet basis

• Fair allocation of capacity and congestion control are key issues.

Page 12: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Inter-Process Communication• Turn host-to-host connectivity into process-to-

process communication.• Fill gap between what applications expect and

what the underlying technology provides. Host Host

Application

Host

Application

Host Host

Channel

Page 13: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

What functionality should a channel provide?-It depends on

the application.• FTP requirements

– Reading• Client-small message requesting transfer

• Server-large messege containing requested file

– Writing• Opposite

Page 14: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Video application requirements

• Video Conferencing• Frame=352x240x24/8=247.5 Kbytes

• Frame rate=30 /sec

– Sensitive to jitter

– Two way traffic for all users

• Video on demand– Files transferred and used

– Timing is not critical

– One way traffic

Page 15: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

What Goes Wrong in the Network?

• Bit-level errors (electrical interference)• Packet-level errors (congestion)• Link and node failures• Messages are delayed or dropped• Messages are delivered out-of-order• Third parties eavesdrop

Interprocess or protocol must overcome these deficiencies!

Page 16: Lecture 1 Outline Statistical Multiplexing Inter-Process Communication

Summary

• To define a useful channel one must understand the application and the limitation of underlying technology

• Challenge is to fill the gap between the application expects and what the technology can provide-The Semantics Gap