note - university of surreyprocess-to-process delivery. note: 13 figure 22.1 types of data...

24
1 CS254 Network Technologies Lecture 8: The TCP/IP Protocol Suite Dr Nikos Antonopoulos Department of Computing University of Surrey Autumn 2006 The IP addresses are unique and universal. Note:

Upload: others

Post on 02-Aug-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

1

CS254 Network Technologies

Lecture 8: The TCP/IP Protocol Suite

Dr Nikos AntonopoulosDepartment of Computing

University of SurreyAutumn 2006

The IP addresses are unique and universal.

Note:

Page 2: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

2

Figure 19.9 Dotted-decimal notation

In classful addressing, the address space is divided into five classes: A, B,

C, D, and E.

Note:

Page 3: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

3

Figure 19.12 Finding the class in decimal notation

Example 1

Find the class of each address:

a. 227.12.14.87

b. 252.5.15.111

c. 134.11.78.56

Solution

a. The first byte is 227 (between 224 and 239); the class is D.b. The first byte is 252 (between 240 and 255); the class is E.c. The first byte is 134 (between 128 and 191); the class is B.

Page 4: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

4

Figure 19.13 Netid and hostid

Many class B addresses are wasted.

Note:

The number of addresses in class C is smaller than the needs of most

organizations.

Millions of class A addresses are wasted.

Page 5: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

5

Figure 19.17 Network address

In classful addressing, the network address is the one that is assigned to

the organization.

Note:

Page 6: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

6

Example 2

Given the address 23.56.7.91, find the network address.

Solution

The class is A. Only the first byte defines the netid. We can find the network address by replacing the hostid bytes (56.7.91) with 0s. Therefore, the network address is 23.0.0.0.

Example 3

Given the address 132.6.17.85, find the network address.

Solution

The class is B. The first 2 bytes defines the netid. We can find the network address by replacing the hostid bytes (17.85) with 0s. Therefore, the network address is 132.6.0.0.

Page 7: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

7

Example 4

Given the network address 17.0.0.0, find the class.

Solution

The class is A because the netid is only 1 byte.

A network address is different from a netid. A network address has both

netid and hostid, with 0s for the hostid.

Note:

Page 8: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

8

Figure 19.18 Sample internet

IP addresses are designed with two levels of hierarchy.

Note:

Page 9: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

9

Figure 19.19 A network with two levels of hierarchy

Figure 19.20 A network with three levels of hierarchy (subnetted)

Page 10: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

10

Figure 19.21 Addresses in a network with and without subnetting

The network address can be foundby applying the default mask to any

address in the block (including itself).It retains the netid of the block and

sets the hostid to 0s.

Note:

Page 11: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

11

20.2 IP

Datagram

Figure 20.7 IP datagram

Page 12: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

12

Figure 20.8 Multiplexing

The transport layer is responsible for process-to-process delivery.

Note:

Page 13: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

13

Figure 22.1 Types of data deliveries

Figure 22.3 IP addresses versus port numbers

Page 14: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

14

Figure 22.4 IANA ranges

Figure 22.7 Connection establishment

Page 15: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

15

Figure 22.8 Connection termination

UDP is a connectionless, unreliable protocol that has no flow and error

control. It uses port numbers to multiplex data from the application

layer.

Note:

Page 16: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

16

Figure 22.10 User datagram format

UDP is a convenient transport-layer protocol for applications that provide flow and error control. It is also used

by multimedia applications.

Note:

Page 17: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

17

Figure 22.14 TCP segment format

The bytes of data being transferred in each connection are numbered by TCP. The numbering starts with a

randomly generated number.

Note:

Page 18: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

18

The value of the sequence number field in a segment defines the number of the first data byte contained in that

segment.

Note:

The value of the acknowledgment field in a segment defines the number of

the next byte a party expects to receive.

The acknowledgment number is cumulative.

Note:

Page 19: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

19

Example 1

Imagine a TCP connection is transferring a file of 6000 bytes. The first byte is numbered 10010. What are the sequence numbers for each segment if data are sent in five segments with the first four segments carrying 1000 bytes and the last segment carrying 2000 bytes?

Solution��������� ��� � ����������������������������������������! "��#$���#%��&��'�!�(����)���"�(*

+ ����)���"�-,!./.-01�2������������������! "��#3*�,547684$,94�:;#<&����7�=*>,54�6?4@,54A�B�C,�,56?4�4�D�E+ ����)���"�GFH./.-01�2������������������! "��#3*�,7,5684$,94�:;#<&����7�=*>,7,96?4@,54A�B�C,'F�6?4�4�D�E+ ����)���"�GIH./.-01�2������������������! "��#3*�,9F�684$,94�:;#<&����7�=*>,9F76?4@,54A�B�C,'I�6?4�4�D�E+ ����)���"��JK./.-01�2������������������! "��#3*�,9I�684$,94�:;#<&����7�=*>,9I76?4@,54A�B�C,�J�6?4�4�D�E+ ����)���"�MLN./.-01�2������������������! "��#3*�,OJ�684$,94�:;#<&����7�=*>,OJ6?4@,54A�B�C,9P76?4�4�D�E

Figure 22.15 Control field

Page 20: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

20

Figure 22.16 Three-step connection establishment

Figure 22.17 Four-step connection termination

Page 21: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

21

26.1 Electronic Mail

Sending/Receiving Mail

Addresses

User Agent

Mail Transfer Agent

Mail Access Protocols

Figure 26.1 Format of an email

Page 22: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

22

Figure 26.2 Email address

Figure 26.3 User agent

Page 23: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

23

Figure 26.8 MTA client and server

Figure 26.10 Email delivery

Page 24: Note - University of Surreyprocess-to-process delivery. Note: 13 Figure 22.1 Types of data deliveries Figure 22.3 IP addresses versus port numbers 14 Figure 22.4 IANA ranges Figure

24

Figure 26.11 POP3