lecture # 02 network models course instructor: engr. sana ziafat

59
Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Upload: bathsheba-hawkins

Post on 08-Jan-2018

220 views

Category:

Documents


2 download

DESCRIPTION

Protocol protocols define format, order of msgs sent and received among network entities, and actions taken on msg transmission, receipt a human protocol and a computer network protocol: Hi Got the time? 2:00 TCP connection req. TCP connection reply. Get time

TRANSCRIPT

Page 1: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Lecture # 02Network Models

Course Instructor:Engr. Sana Ziafat

Page 2: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

ProtocolSet of rules that govern data communicationProtocol Defines:1.What is communicated2.How it is communicated3.When it is communicated

Page 3: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Protocolprotocols define format, order of msgs sent

and received among network entities, and actions taken on msg transmission, receipt

a human protocol and a computer network protocol:

Hi

Hi

Got thetime?

2:00

TCP connection req.

TCP connectionreply.Get http://gaia.cs.umass.edu/index.htm

<file>

time

Page 4: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Key Elements of PROTOCOLSyntax – format or structure of dataSemantics – meaning of each section of bitsTiming – when and how fast data should be

sent

Page 5: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

What’s a protocol?human protocols:“I have a question” introductions

… specific msgs sent… specific actions taken when msgs received, or other events

network protocols:machines rather than humansall communication activity in Internet governed by

protocols

Page 6: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Layering & Protocol Stacks

Page 7: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Layered TasksAn example from the everyday life

Hierarchy?

Services

Page 8: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Why layered communication?To reduce complexity of communication task

by splitting it into several layered small tasksFunctionality of the layers can be changed as

long as the service provided to the layer above stays unchanged makes easier maintenance & updating

Each layer has its own taskEach layer has its own protocol

Page 9: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Reference Models

OSI reference modelTCP/IP

Page 10: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

OSI Reference modelOpen System Interconnection7 layers

1.Create a layer when different abstraction is needed

2.Each layer performs a well define function3.Functions of the layers chosen taking

internationally standardized protocols4.Number of layers – large enough to avoid

complexity

Page 11: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Seven layers of the OSI model

Page 12: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Peer-to-peer Processes Layer x on one machine communicates with layer x on

another machine - called Peer-to-Peer Processes. Interfaces between Layers

Each interface defines what information and services a layer must provide for the layer above it. Well defined interfaces and layer functions provide modularity to a network

Organizations of the layers Network support layers : Layers 1, 2, 3 User support layer : Layer 5, 6, 7

It allows interoperability among unrelated software systems

Transport layer (Layer 4) : links the two subgroups

Page 13: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

The interaction between layers in the OSI model

Page 14: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Exchange using OSI Model

Page 15: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

OSI Layers

Page 16: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Physical layer

Transporting bits from one end node to the next

physicalconnection

Page 17: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Duties performed by Physical layer are:1.Physical characteristics of interfaces and

media2.Representation of bits3.Data rate4.Synchronization of bits5.Topology6.Line configuration7.Transmission mode

Page 18: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

The physical layer is responsible for movements ofindividual bits from one hop (node) to the next.

Note

Page 19: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Hardware equipment Network adapterRepeaterNetwork hubModem

Page 20: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Data Link layer

Transporting frames from one end node to the next one

logicalconnection

- framing - physical addressing

- flow control - error control

- access control

Page 21: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Data Link layer- hop-to-hop delivery-

Page 22: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

The data link layer is responsible for moving frames from one hop (node) to the next.

Note

Page 23: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Network Devices: -Bridge, Switch, ISDN Router,

Intelligent Hub, NIC, Advanced Cable Tester

Page 24: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Network Layer The network layer is responsible for the delivery

of individual packets from the source host to the destination host.

Page 25: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Network layer End-to-End packet delivery

From the original source to a destination Needed when 2 devices are attached to

different networks What is the network definition here?

Main duties:1. Logical addressing2. Routing

Page 26: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Source to destination delivery

Data Link

Network layer

Page 27: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

The network layer is responsible for the delivery of individual packets from

the source host to the destination host.

Note

Page 28: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Router works as the post office and network layer stamps the letters (data) for the specific destinations.

Protocols: These protocols work on the network layer IP, ICMP, ARP, RIP, OSI, IPX and OSPF.

Network Devices: Network devices including Router, Frame Relay device and ATM switch devices work on the network layer.

Page 29: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Transport layerProcess-to-Process delivery of the entire

message◦ From the original source to a destination

Needed when several processes (running programs) active at the same time

Note: What is a process

Main tasks:◦ Service Point addressing◦ Segmentation and reassembly◦ Connection control◦ Flow control◦ Error control

Page 30: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Transport Layer The transport layer is responsible for the delivery of a message from one process to another.

Page 31: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Transport layer -an example of a reliable delivery -

Page 32: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

The transport layer is responsible for the delivery of a message from one process to another.

Note

Page 33: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

33

The session layer is responsible for dialog control and synchronization.

Note

Page 34: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Session LayerThe session layer allows a system to add check

points or synchronization points.This layer allow two systems to enter in to

dialog

Page 35: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Presentation Layer

Page 36: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Presentation layer is concerned with syntax and semantics of information exchanged between two systems.

Provides translation , encryption and compression to data

It is a best layer for cryptography.

Page 37: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

The presentation layer is responsible for translation, compression, and encryption.

Note

Page 38: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Application Layer The application layer is responsible for

providing services to the user.

Page 39: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Services provided by Application layer:

- File transfer, Access - Mail services

Page 40: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

40

Application layerEnables user to access the networkProvides services to a user

E-mailRemote file access and transfer (Telnet,

FTP)Access to WWW (HTTP)

Page 41: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

41

The application layer is responsible for providing services to the user.

Note

Page 42: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Protocols: FTP, DNS, SNMP, SMTP, FINGER, TELNET, TFTP, BOOTP and SMB protocol are operated on the application layer.

Page 43: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

OSI Reference ModelA convenient aid for remembering the

OSI layer names is to use the first letter of each word in the phrase:

All People Seem To Need Data Processing

Page 44: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Summary of layers and protocols

Low-level protocols define the electrical and physical standards to be observed, bit- and byte-ordering and the transmission and error detection and correction of the bit stream

High-level protocols deal with the data formatting, including the syntax of messages, the terminal to computer dialogue, character sets, sequencing of messages

Page 45: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

45

TCP/IP Protocol

Page 46: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

TCP/IP Vs OSI Model

Page 47: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

47

Four Level of Addresses

Page 48: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

48

Relationship of Layers & Addresses in TCP/IP

Page 49: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

49

The physical addresses will change from hop to hop,but the logical addresses usually remain the same.

Note

Page 50: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

In Figure on next slide a node with physical address 10 sends a frame to a node with physical address 87. The two nodes are connected by a link (bus topology LAN). As the figure shows, the computer with physical address 10 is the sender, and the computer with physical address 87 is the receiver.

Example 1

Page 51: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Figure Physical addresses

Page 52: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

As we will see in later lectures, most local-area networks use a 48-bit (6-byte) physical address written as 12 hexadecimal digits; every byte (2 hexadecimal digits) is separated by a colon, as shown below:

Example 2

07:01:02:01:2C:4B

A 6-byte (12 hexadecimal digits) physical address.

Page 53: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Figure on next slide shows a part of an internet with two routers connecting three LANs. Each device (computer or router) has a pair of addresses (logical and physical) for each connection. In this case, each computer is connected to only one link and therefore has only one pair of addresses. Each router, however, is connected to three networks (only two are shown in the figure). So each router has three pairs of addresses, one for each connection.

Example 3

Page 54: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Figure IP addresses

Page 55: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Figure shows two computers communicating via the Internet. The sending computer is running three processes at this time with port addresses a, b, and c. The receiving computer is running two processes at this time with port addresses j and k. Process a in the sending computer needs to communicate with process j in the receiving computer. Note that although physical addresses change from hop to hop, logical and port addresses remain the same from the source to destination.

Example 4

Page 56: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Figure Port addresses

Page 57: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Example 5

As we will see in later chapters, a port address is a 16-bit address represented by one decimal number as shown.

753

A 16-bit port address represented as one single number.

Page 58: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

58

ReadingsChapter 1 (B. A Forouzan)

Section 1.4

Chapter 2 (B. A Forouzan)Section 2.1, 2.2,2.3, 2.4, 2.5

Page 59: Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat

Q & A