McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

51
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

Transcript of McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

Page 1: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Chapter 11

User DatagramProtocol(UDP)

Page 2: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 11-1

Page 3: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Process-to-Process Communication

• Host-to-Host

• Process-to-Process

Page 4: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Ports

• To define a process a port is needed.

• Tipos:– Ephemeral: random port number defined by the

client.– Well-known port number: defined port number

defined by the server.

Page 5: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 11-3

Page 6: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 11-4

Page 7: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 11-5

(Ephemeral)

Page 8: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Socket Address

Page 9: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

UDP

• Conectionless, Unreliable.

Page 10: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Format del Frame

Page 11: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Checksum

• Incluye: Pseudoheader, UDP Header, Data Comming form the application layer.

Page 12: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Example

Page 13: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Operación

• Servicio Sin Conexión.

• NO tiene Control de Flujo.

• No tiene Control de Error

Page 14: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Encapsulation

Page 15: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Queues

Page 16: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Multiplexing-Demultiplexing

Page 17: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

UDP Design

(keeptrack of the open ports)

Page 18: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Chapter 12

Transmission Control Protocol

(TCP)

Page 19: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Page 20: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-1

Page 21: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Process-to-Process Communication

• Host-to-Host

• Process-to-Process

Page 22: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Ports

• To define a process a port is needed.

• Tipos:– Ephemeral: random port number defined by the

client.– Well-known port number: defined port number

defined by the server.

Page 23: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-3

Page 24: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Well-known ports in TCP

Port Protocol

7 Echo

20 FTP, Data

21 FTP, Control

23 TELNET

Page 25: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-4

Page 26: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-5

Page 27: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-6

Page 28: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-7

Page 29: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-8

Page 30: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-9

Page 31: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-10

Page 32: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-11

Page 33: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-12

Page 34: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-13

Page 35: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-14

Page 36: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-15

Page 37: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-16

Page 38: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-17

Page 39: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-18

Page 40: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-19

Page 41: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-20

Page 42: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-21

Page 43: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-22

Page 44: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-23

Page 45: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-24

Page 46: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-25

Page 47: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-26

Page 48: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-27

Page 49: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-28

Page 50: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-29

Page 51: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 11 User Datagram Protocol (UDP)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 12-30