32
1 Mao F04 Network Service and Applications EECS 489 Computer Networks http://www.eecs.umich.edu/~zmao/eecs489 Z. Morley Mao Thursday Sept 9, 2004 Acknowledgement: Some slides taken from Kurose&Ross and Katz&Stoica

Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

1Mao F04

Network Service and Applications

EECS 489 Computer Networkshttp://www.eecs.umich.edu/~zmao/eecs489

Z. Morley MaoThursday Sept 9, 2004

Acknowledgement: Some slides taken from Kurose&Ross and Katz&Stoica

Page 2: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

2Mao F04

Overview

• Taxonomy of Communication Networks• Services and Applications

Page 3: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

3Mao F04

§ Communication networks can be classified based on the way in which the nodes exchange information:

Taxonomy of Communication Networks

Communication Network

SwitchedCommunication

Network

BroadcastCommunication

Network

Circuit-SwitchedCommunication

Network

Packet-SwitchedCommunication

Network

DatagramNetwork

Virtual Circuit Network

Page 4: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

4Mao F04

§ Broadcast communication networks- Information transmitted by any node is received by every other

node in the network• Examples: usually in LANs (Ethernet, Wavelan)

- Problem: coordinate the access of all nodes to the shared communication medium (Multiple Access Problem)

§ Switched communication networks- Information is transmitted to a sub-set of designated nodes

• Examples: WANs (Telephony Network, Internet)- Problem: how to forward information to intended node(s)

• This is done by special nodes (e.g., routers, switches) running routing protocols

Broadcast vs. Switched Communication Networks

Page 5: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

5Mao F04

§ Communication networks can be classified based on the way in which the nodes exchange information:

Taxonomy of Communication Networks

Communication Network

SwitchedCommunication

Network

BroadcastCommunication

Network

Circuit-SwitchedCommunication

Network

Packet-SwitchedCommunication

Network

DatagramNetwork

Virtual Circuit Network

Page 6: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

6Mao F04

Circuit Switching

§ Three phases1. circuit establishment2. data transfer3. circuit termination

§ If circuit not available: “Busy signal”§ Examples

- Telephone networks- ISDN (Integrated Services Digital Networks)

Page 7: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

7Mao F04

Timing in Circuit Switching

DATA

Circuit Establishment

Data Transmission

Circuit Termination

Host 1 Host 2Node 1 Node 2

propagation delay between Host 1 and Node 1

propagation delay between Host 2 and Node 1

processing delay at Node 1

Page 8: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

8Mao F04

Circuit Switching

§ A node (switch) in a circuit switching network

incoming links outgoing linksNode

Page 9: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

9Mao F04

Circuit Switching: Multiplexing/Demultiplexing

§ Time divided in frames and frames divided in slots§ Relative slot position inside a frame determines which

conversation the data belongs to - E.g., slot 0 belongs to red conversation

§ Needs synchronization between sender and receiver§ In case of non-permanent conversations

- Needs to dynamically bind a slot to a conservation- How to do this?

§ If a conversation does not use its circuit the capacity is lost!

Frames

0 1 2 3 4 5 0 1 2 3 4 5Slots =

Page 10: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

10Mao F04

§ Communication networks can be classified based on the way in which the nodes exchange information:

Taxonomy of Communication Networks

Communication Network

SwitchedCommunication

Network

BroadcastCommunication

Network

Circuit-SwitchedCommunication

Network

Packet-SwitchedCommunication

Network

DatagramNetwork

Virtual Circuit Network

Page 11: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

11Mao F04

Packet Switching

§ Data is sent as formatted bit-sequences (Packets)§ Packets have the following structure:

• Header and Trailer carry control information (e.g., destination address, check sum)

§ Each packet traverses the network from node to node along some path (Routing)

§ At each node the entire packet is received, stored briefly, and then forwarded to the next node (Store-and-Forward Networks)

§ Typically no capacity is allocated for packets

Header Data Trailer

Page 12: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

12Mao F04

Packet Switching

§ A node in a packet switching network

incoming links outgoing linksNode

Memory

Page 13: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

13Mao F04

Packet Switching: Multiplexing/Demultiplexing

§ Data from any conversation can be transmitted at any given time

- A single conversation can use the entire link capacity if it is alone

§ How to tell them apart?- Use meta-data (header) to describe data

Page 14: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

14Mao F04

§ Communication networks can be classified based on the way in which the nodes exchange information:

Taxonomy of Communication Networks

Communication Network

SwitchedCommunication

Network

BroadcastCommunication

Network

Circuit-SwitchedCommunication

Network

Packet-SwitchedCommunication

Network

DatagramNetwork

Virtual Circuit Network

Page 15: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

15Mao F04

Datagram Packet Switching

§ Each packet is independently switched- Each packet header contains destination address

§ No resources are pre-allocated (reserved) in advance

§ Example: IP networks

Page 16: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

16Mao F04

Packet 1

Packet 2

Packet 3

Packet 1

Packet 2

Packet 3

Timing of Datagram Packet Switching

Packet 1

Packet 2

Packet 3

processing delay of Packet 1 at Node 2

Host 1 Host 2Node 1 Node 2

propagationdelay betweenHost 1 and Node 2

transmission time of Packet 1at Host 1

Page 17: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

17Mao F04

Datagram Packet Switching

Host A

Host BHost E

Host D

Host C

Node 1 Node 2

Node 3

Node 4

Node 5

Node 6 Node 7

Page 18: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

18Mao F04

§ Communication networks can be classified based on the way in which the nodes exchange information:

Taxonomy of Communication Networks

Communication Network

SwitchedCommunication

Network

BroadcastCommunication

Network

Circuit-SwitchedCommunication

Network

Packet-SwitchedCommunication

Network

DatagramNetwork

Virtual Circuit Network

Page 19: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

19Mao F04

Virtual-Circuit Packet Switching

§ Hybrid of circuit switching and packet switching- Data is transmitted as packets- All packets from one packet stream are sent along a

pre-established path (=virtual circuit)

§ Guarantees in-sequence delivery of packets§ However, packets from different virtual circuits

may be interleaved§ Example: ATM networks

Page 20: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

20Mao F04

Virtual-Circuit Packet Switching

§ Communication with virtual circuits takes place in three phases 1. VC establishment2. data transfer3. VC disconnect

§ Note: packet headers don’t need to contain the full destination address of the packet

Page 21: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

21Mao F04

Packet 1

Packet 2

Packet 3

Packet 1

Packet 2

Packet 3

Timing of Virtual-Circuit Packet Switching

Packet 1

Packet 2

Packet 3

Host 1 Host 2Node 1 Node 2

propagation delay between Host 1 and Node 1VC

establishment

VCtermination

Datatransfer

Page 22: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

22Mao F04

Datagram Packet Switching

Host A

Host BHost E

Host D

Host C

Node 1 Node 2

Node 3

Node 4

Node 5

Node 6 Node 7

Page 23: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

23Mao F04

Packet-Switching vs. Circuit-Switching

§ Most important advantage of packet-switching over circuit switching: Ability to exploit statistical multiplexing:

- Efficient bandwidth usage; ratio between peek and average rate is 3:1 for audio, and 15:1 for data traffic

§ However, packet-switching needs to deal with congestion:

- More complex routers- Harder to provide good network services (e.g., delay

and bandwidth guarantees)

§ In practice they are combined:- IP over SONET, IP over Frame Relay

Page 24: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

24Mao F04

Overview

• Taxonomy of Communication NetworksØ Services and Applications

Page 25: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

25Mao F04

The Internet Protocol (IP)

§ Problem:- many different network technologies- e.g., Ethernet, Token Ring, ATM, Frame Relay, etc.- How can you hook them together?

• n x n translations?

§ IP was invented to glue them together- n translations- minimal requirements (datagram)

§ The Internet uses IP

Page 26: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

26Mao F04

Addressing

§ Every Internet host has an IP address- e.g., 67.114.133.15

§ Packets include destination address- network is responsible for routing packet to address

§ Host-view:

Source

Destination

Network

Page 27: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

27Mao F04

IP-centric View

Host A

Host BHost E

Host D

Host C

Router 1 Router 2

Router 3

Router 4

Router 5

Router 6 Router 7

Page 28: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

28Mao F04

Physical View

§ A big mess!

§ Every “link” could be a whole network of ATM, frame relay, ethernet, DSL, etc.

§ Beauty of IP: you can ignore these different network technologies

§ In many networks, IP is used only at the edge

Page 29: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

29Mao F04

Back to IP

Host A

Host BHost E

Host D

Host C

Router 1 Router 2

Router 3

Router 4

Router 5

Router 6 Router 7

Page 30: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

30Mao F04

Routing

§ Routers have “routing tables”- tables mapping each destination with an outgoing link- requires that routing table is highly compressible!- implications for address assignment, mobility, etc.

§ Routing decisions made packet-by-packet- routers keep no connection state

§ Question: Why have the network do routing?- Why not the hosts?- Compare delivery-by-hand to FedEx

Page 31: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

31Mao F04

Internet Service

• “Best-Effort” service- No guarantees about packet delivery- Hosts are responsible for coping with:

• loss• delay

§ Why this service model?- why not guarantee no loss and low delay?

Page 32: Network Service and Applicationsweb.eecs.umich.edu/~zmao/eecs489/LectureSlides/service_single.pdf · Mao F04 11 Packet Switching § Data is sent as formatted bit-sequences (Packets)

32Mao F04

Domain Name Service (DNS)

§ Humans/applications use machine names- e.g., www.cs.berkeley.edu

§ Network (IP) uses IP addresses- e.g., 67.114.112.23

§ DNS translates between the two- among other things- unsung hero of the Internet