csci 465 d ata communications and networks lecture 2

15
CSCI 465 Data Communications and Networks Lecture 2 Martin van Bommel CSCI 465 Data Communications & Networks 1

Upload: gil-gallegos

Post on 01-Jan-2016

25 views

Category:

Documents


0 download

DESCRIPTION

CSCI 465 D ata Communications and Networks Lecture 2. Martin van Bommel. Protocol Architecture. To destroy communication completely, there must be no rules in common between transmitter and receiver—neither of alphabet nor of syntax. - On Human Communication Colin Cherry. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CSCI 465 D ata Communications and Networks Lecture 2

CSCI 465Data Communications and Networks

Lecture 2

Martin van Bommel

CSCI 465Data Communications & Networks

1

Page 2: CSCI 465 D ata Communications and Networks Lecture 2

Protocol Architecture

To destroy communication completely, there must be no rules in common between transmitter and receiver—neither of alphabet nor of syntax.

- On Human CommunicationColin Cherry

CSCI 465Data Communications & Networks

2

Page 3: CSCI 465 D ata Communications and Networks Lecture 2

The Need for Protocol Architecture

• To transfer data several tasks are performed1. The source must activate the communications path or inform

network of destination2. The source must make sure that destination is prepared to

receive data3. The file transfer application on the source must confirm file

management program at destination is prepared to accept and store the file

4. A format translation function may need to be performed if the formats on the systems differ

CSCI 465Data Communications & Networks

3

Page 4: CSCI 465 D ata Communications and Networks Lecture 2

Protocol Architecture Logic

• Logic is divided into subtask modules– Implemented separately

• Modules are arranged in a vertical stack– Each layer in the stack performs a subset of

functions– Rely on next layer for more primitive functions– Changes in one layer should not require changes

in other layers

CSCI 465Data Communications & Networks

4

Page 5: CSCI 465 D ata Communications and Networks Lecture 2

Key Features of a Protocol

• A protocol is a set of rules or conventions that allow peer layers to communicate.

• The key features of a protocol are:– Syntax – format of data blocks– Semantics – control information for coordination

and error handling– Timing – speed matching and sequencing

CSCI 465Data Communications & Networks

5

Page 6: CSCI 465 D ata Communications and Networks Lecture 2

A Simple Protocol Architecture

• Three agents involved– Applications (e.g. email, file transfer)– Computers– Networks

• Application sends data via module(s) to network to another computer which must get it to the intended application

CSCI 465Data Communications & Networks

6

Page 7: CSCI 465 D ata Communications and Networks Lecture 2

Communication Layers

• Communication tasks are organized into three relatively independent layers:

• Network access layer– Concerned with the exchange of data

• Transport layer– Provides reliable data transfer

• Application layer– Contains logic to support applications

CSCI 465Data Communications & Networks

7

Page 8: CSCI 465 D ata Communications and Networks Lecture 2

Network Access Layer

• Covers the exchange of data between an end system and the network to which it is attached

• Concerned with issues like:– Destination address provision– Invoking specific services like priority– Access to & routing data across a network

CSCI 465Data Communications & Networks

8

Page 9: CSCI 465 D ata Communications and Networks Lecture 2

Transport Layer

• Common layer shared by all applications

• Concerned with providing reliable delivery of data

• Essentially independent of nature of the applications

CSCI 465Data Communications & Networks

9

Page 10: CSCI 465 D ata Communications and Networks Lecture 2

Application Layer

• Contains the logic needed to support user applications

• Separate module is needed for each type of application

CSCI 465Data Communications & Networks

10

Page 11: CSCI 465 D ata Communications and Networks Lecture 2

Protocol Architecture

11

Page 12: CSCI 465 D ata Communications and Networks Lecture 2

Simplified Architecture

12

Page 13: CSCI 465 D ata Communications and Networks Lecture 2

Addressing

• Two levels of addressing are needed:

• Each computer on the network has a unique network address

• Each application has an address that is unique with that computer – Service access points (SAPs) or ports

CSCI 465Data Communications & Networks

13

Page 14: CSCI 465 D ata Communications and Networks Lecture 2

Protocol Data Unit (PDU)

• the combination of data and control information is a protocol data unit (PDU)

• typically control information is contained in a PDU header– control information is used by the peer transport

protocol at computer B

• headers may include:– source port, destination port, sequence number,

and error-detection codeCSCI 465

Data Communications & Networks14

Page 15: CSCI 465 D ata Communications and Networks Lecture 2

Network Access Protocol

• after receiving segment from transport layer, the network access protocol must request transmission over the network– the network access protocol creates a network

access PDU (packet) with control information

• header includes:– source computer address– destination computer address– facilities requests

CSCI 465Data Communications & Networks

15