protocols and architecture lesson 2 nets2150/2850

31
PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Post on 19-Dec-2015

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

PROTOCOLS AND ARCHITECTURE

Lesson 2NETS2150/2850

Page 2: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Lesson Outcomes The need for a Protocol

Architecture Understand importance of OSI

Reference Model Overview of TCP/IP Suite – the

basis for the rest of this unit of study!

Page 3: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

What’s a protocol? The set of rules or conventions

governing the exchange of data between two entities

Protocols define format, order of msgs sent and received among network entities, and actions taken on msg transmission, receipt

All communication activity in Internet governed by protocols

Page 4: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

What’s a protocol?

a human protocol and a computer network protocol:

Hi

Hi

Got thetime?

2:00

Get http://www.awl.com/

TCP connection req

TCP connectionresponse

<file>time

Page 5: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Key Features of a ProtocolKey features of a protocol are: Syntax

Formats of the supported packet types Semantics

Definitions of each of the packet type and error codes

Timing Sequence in which packets are exchanged and

use of timers But, how to manage many related

protocols?!

Page 6: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Need For Protocol Architecture

Task broken into subtasks Implemented separately in layers as stack Functions needed in both systems Peer layers communicate E.g. File transfer

Source must activate comms. path or inform network of destination

Source must check destination is prepared to receive

File transfer application on source must check destination file management system will accept and store file for this user

May need file format translation

Page 7: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Standardized Protocol Architectures Required for devices to interoperate Vendors can have more marketable products Customers can insist on standards based

equipment Two standards:

OSI Reference model Never lived up to early promises de jure (i.e. by legislation)

TCP/IP Reference model Most widely used de facto (i.e. in reality)

Page 8: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

OSI Reference Model Open Systems Interconnection Developed by the International

Organization for Standardization (ISO)

Seven layers A theoretical system delivered too

late!! TCP/IP is the de facto standard

Page 9: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

OSI Reference Model II Each layer performs a subset of the

required communication functions Each layer relies on the next lower layer

to perform certain functions Each layer provides services through

primitives (operations) to the next higher layer

Changes in one layer should not require changes in other layers (modular, info hiding)

Page 10: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

OSI Layers

Page 11: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Protocol Data Units (PDU) At each layer, there is a protocol Control data is added to user data at each

layer & certain functions performed E.g.: transport layer may fragment user data Each fragment has a transport header added

Destination SAP (i.e port #) Sequence number Error detection code

This gives a transport PDU

Page 12: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

The OSI Environment

Page 13: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

OSI as Framework for Standardization

Page 14: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Layer Specific Standards

Page 15: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Elements of Standardization Protocol specification

Operates between the same layer on two systems

May involve different operating systems Protocol specification must be precise

Format of data units (i.e. syntax) Semantics of all fields allowable sequence of PDUs (i.e timing)

Service definition Functional description of what is provided

Addressing Used by the higher layer, also known as SAP

Page 16: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

OSI Layers (1) Physical

Physical interface between devices Mechanical Electrical Functional Procedural

Data Link Means of activating, maintaining and

deactivating a reliable link Error detection and control Higher layers may assume error free

transmission

Page 17: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

OSI Layers (2) Network

Transfer of information Higher layers do not need to know about

underlying technology Not needed on direct links

Transport Exchange of data between end systems Error free In sequence No losses No duplicates

Page 18: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

OSI Layers (3) Session

Provides control structure for communications Manages sessions between applications

Presentation Data formats and coding (big/little-endian) Data compression Encryption

Application Means for applications to access OSI environment Contains management functions and mechanisms

to support distributed applications

Page 19: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

TCP/IP Protocol Architecture Developed by the US Defense Advanced

Research Project Agency (DARPA) for its packet switched network (ARPANET)

Used by the global Internet No official model but a working one!

Application layer Transport layer Internet layer or network layer Network access or data link layer Physical layer

Page 20: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Physical Layer Physical interface between data

transmission device (e.g. computer) and transmission medium or network

Characteristics of transmission medium

Signal levels Data rates

Page 21: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Network Access Layer Exchange of data between end

system and network Destination address provision

Physical address Invoking services like priority

Page 22: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Internet Layer (IP) Systems may be attached to

different networks Routing functions across multiple

networks Provides logical addressing

Implemented in end systems and routers

Page 23: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Transport Layer (TCP) Reliable delivery of data Ordering of delivery Provides application process

addressing (called port number)

Page 24: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Application Layer Support for user applications e.g. HTTP, FTP, Telnet, SMTP, SNMP

etc

Page 25: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

OSI v TCP/IP

Page 26: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Encapsulation/Decap Process

Page 27: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

TCP/IP Concepts

Page 28: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Addressing levels Level in architecture at which entity is

named Unique address for each end system and

router (i.e. physical address) Network level address (i.e. logical address)

IP or internet address (in TCP/IP) Network service access point or NSAP (in OSI)

Process within the system Port number (in TCP/IP) Service access point or SAP (in OSI)

Page 29: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Some Protocols in TCP/IP Suite

Page 30: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Intro Networking Video

Page 31: PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850

Summary The needs for standardized

protocols and protocol architecture Discussed two layered models:

The OSI Reference Model TCP/IP protocol suite

Next: The mechanism of data transmission