• No results found

20160203-u2-complete-notes.pdf

N/A
N/A
Protected

Academic year: 2020

Share "20160203-u2-complete-notes.pdf"

Copied!
66
0
0

Loading.... (view fulltext now)

Full text

(1)

Syllabus for Unit 2

Protocols & Standards OSI Model

TCP/IP Protocol Suite

Comparison of OSI and TCP/IP Model Addressing: IPv4,

(2)

Protocols

Protocols are set standards adopted worldwide for cohesive working

Standards help maintaining compatibility

We use a lot of standards in our daily life

(3)

Postal communication

(4)

Layers

The postal systems can be subdivided into 3 layers

All these layers communicate using some protocols and also communicate in asequence.

(5)

Layers: Hardware and software

For digital systems we need both softwares ad hardwares

(6)

Protocol layering

Protocol layering enables us to subdivide a complex task into several small simple tasks

Layering produces modules and this phenomenon is called modularity

A module defines anindependent layer

A module for a particular layer will simply be a processing box having input and output,without any concern for other modules except for those who are connected to itself.

(7)

Advantage of protocol layering

Allows separation of services from implementation

The module receives some set of services from lower layers and provide services to upper layers

How this task is done can now be tested and innovations can be performed for best optimized way.

(8)

Principles of protocol layering

First principle:

If we want bidirectional communication, we need to make each layer in such a way so that each layer can perform two opposite tasks (one in each direction)

Second Principle:

(9)

Logical connections

Logical connections refer to real or imaginary connections between layers

(10)

TCP/IP protocol suite

TCP/IP refers to Transmission Control Protocol/ Internet Protocol TCP/IP suite is a setof protocols used for internet.

Its is ahierarchical protocol made of interactive modules

Each module provides specific functionality.

(11)

OSI model

OSI stands for OpenSystemInterconnection model

Defined by International Standards Organizations (ISO)

Established in 1947

OSI was proposed by ISO in 1970s

An Open system refers to ability of communication systems to communicate regardless of different underlying architecture.

This means that one could have the ability to communicate between different systems without changing logic of underlying hardware and software.

The OSI model is not a protocol; it is a model for understanding and designing a network architecture that is flexible, robust, and

(12)
(13)

OSI model layers

The designers identified which networking functions had related uses and collected those functions into discrete groups that became the layers

Each layer defines a family of functions distinct from those of the other layers

Withinsingle machine, layers talk to each other in hierarchical fashion

(14)
(15)

OSI model layer interaction

Peer-to-peer:

At the physical layer, communication is direct

Devise A sends bits to device B via intermediate nodes

Non-peer-to-peer:

At higher layers, device must pass the information through intermediate layers and then perform peer-to-peer correspondence. Each layers adds its own information within the sending device and must interpret this information in receiving device.

”Original information bits” plus ”additional information bits” are together called apackage.

(16)

OSI model layer behavior

(17)

OSI model layer behavior

Interface between layers:

Interfaces connect various layers

They defines the services a particular layers must provide to its preceding and successive layers

Network, Data link and Physical layers are sometimes clubbed in one sub-category because they deal with physical manipulation of data using electrical devices.

electrical specifications physical connections physical addressing

transport timing and reliability

Session, Presentation and Application can be thought as support layers

allow interoperability among unrelated software systems

(18)

Layers

Lets understand the working of these

layers going from lower to upper in

(19)

Physical Layer

(20)

Physical Layer

The physical layercoordinates the functions required to carry a bit stream over a physical medium.

Deals with the mechanical and electrical specificationsof the interface and transmission medium.

Defines the type of medium Defines characteristics of interface

Also defines the procedures and functionsthat physical devices and interfaces have to perform for transmission to occur.

Defines the physical coding of 0 and 1 into electrical/optical signals Data Rate:

(21)

Physical Layer contd...

Synchronization

Not only the transmission rate should be same at both ends, they should be synchronized at bit level too.

Physical topology:

Must define how device is connected

(22)

Data Link Layer

Data link layer transforms a raw physical layers into a reliable link to transfer data

(23)

Data Link Layer

Framing

Divides the stream of bits (obtained from physical layer) into manageable chunks of information called frames.

Physical addressing

If different bits are intended to different systems on the network, they are framed separately and data link layer adds a header where a coded address is mentioned for intended receptor and given sender.

If the frame is intended for a system outside the sender’s network, the receiver address is the address of the device that connects the network to the next one

Flow Control:

(24)

Data Link Layer contd...

Error Control

Employ mechanisms to detect and retransmit damaged or lost frames Employ mechanism to recognize duplicate frames

Improves reliability of system

Usually a trailer is added to the end of the frame

Access Control

(25)

Data link Layer contd...

Here devices B,C and E are calledrouters

(26)

Hopping

To send data from A to F:

three partial deliveries are made

data link layer at A (end system) sends a frame to the data link layer at B (a router)

data link layer at B (router) sends a new frame to the data link layer at E (router)

data link layer at E (router) sends a new frame to the data link layer at F (end system)

(27)

Network Layer

The network layer is responsible for thesource-to-destinationdelivery of a packet, possibly acrossmultiple networks

(28)

Network Layer

Whereas the data link layer oversees the delivery of the packet between two systems on the same network (links), the network layer ensures that each packet gets from its point of origin to its final destination even across multiple networks

(29)

Network Layer

Logical addressing

The physical addressing implemented by the data link layer handles the addressing problem locally.

If a packet passes the network boundary, another addressing system is needed to help distinguish the source and destination systems.

The network layer adds a header to the packet coming from the upper layer that, among other things, includes the logical addresses of the sender and receiver.

Routing

(30)
(31)

Transport Layer

(32)

Transport Layer

Responsible for process-to-process delivery of the entire message A process is an application programrunning on ahost.

Whereas the network layer oversees source-to-destination delivery of individual packets, itdoes not recognize any relationship between those packets.

It treats each one independently, as though each piece belonged to a separate message, whether or not it does.

(33)

Transport Layer responsibilities

Service point addressing/ port addressing

Softwares needed a lot of processes to be run on computers Transport layer ensures that process on one computer reaches to similar process on another on a network

This is done by port addressing since ports are assigned for servicing a particular process.

The network layer gets each packet to the correct computer; the transport layer gets the entire message to the correct process on that computer

Segmentation and reassembly

Message is segmented into transmittable packets

(34)

Transport Layer responsibilities

Connection control

Connectionless

A connectionless transport layer treats each segment as an independent packet and delivers it to the transport layer at the destination machine

Connection-oriented

Makes a connection with the transport layer at the destination machine first before delivering the packets.

After all the data are transferred, the connection is terminated Flow control

(35)

Transport Layer responsibilities

Error Control

Error control is performed at the level of processes. With even a single error, a processes cannot be completed Hence, error control is performed by retransmission

(36)

Session Layer

Session layer is thedialog controller for the network by establishing, maintaining, and synchronizing the interaction among communicating

systems.

(37)

Session Layer

Dialog Control

Allows two systems to enter into a dialog

A dialog is communication between two processes in half-duplex or duplex mode

Synchronization

Allows a process to add checkpoints, or synchronization points, to a stream of data.

(38)

Presentation Layer

concerned with the syntaxandsemantics of the information exchanged between two systems which involvestranslation, compression and

encryption.

(39)

Presentation Layer responsibilities

Translation:

Processes running in two different computers might use data in different formats or might use different encoding schemes Presentation layer provides inter-interoperability for them.

This performed by changing from sender-format to common-format to receiver-format

Encryption

Encryption at sender’s end and decryption at receiver’s end is performed

Compression

(40)

Application Layer

(41)

Application Layer

Enables the user (human or software), to access the network. Provides user interfaces and support for services such as:

electronic mail

(42)

Application Layer

Network Virtual Terminal:

Software version of a physical terminal, and it allows a user to log on to a remote host.

Application creates a software emulation so that host feels that it is communicating with one of its own terminals.

Mail Services:

Provides the basis for email forwarding and storage.

File Transfer, Access and Management

Allows a user to access files in a remote host, to retrieve files from a remote computer for use in the local computer

Directory Services:

(43)

Summary

(44)

TCP/IP

The layers in the TCP/IP protocol suite do not exactly match those in the OSI model.

The original TCP/IP protocol suite was defined as having four layers:

host-to-network internet transport application.

However, when TCP/IP is compared to OSI, we can say that the TCP/IP protocol suite is made of five layers:

(45)

TCP/IP and OSI

(46)

Physical and Data Link Layers

At this layer, TCP/IP does not define any specific protocol. It supports all the standard protocols.

(47)

Network Layer

Network layer is responsible for creating a connection between the source computer and destination computer.

NL is responsible for host-to-host connection and also responsible to control routers for choosing best routing strategy.

NL in the Internet includes a main protocol called Internet Protocol (IP) which defines format of packet (calleddatagram).

IP also perform the routing by passing each datagram through routers unless it reaches the destination.

NL also includesunicast andmulti-cast routing protocols

A routing protocol does not take part in routing (That is the responsibility if IP)

(48)

IP

It is anunreliableand connectionlessprotocol.

No flow control No error control No congestion control

(49)

Axillary Protocols which help IP at NL

At Network layer, Some Auxiliary protocols help IP in its work:

ICMP

IGMP

(50)

RARP, ICMP

Internet Control Message Protocol(ICMP)

A mechanism used by host and gateways to send notification of datagram problems back to the sender.

It sends query and error reporting messages.

Internet Group Management Protocol(IGMP)

Used to facilitate the simultaneous transmission of a message to a group of recipients

It helps IP in multitasking

Dynamic Host Configuration Protocol (DHCP)

Helps IP to get the network-layer address for a host.

Reverse Address Resolution Protocol (RARP)

Protocol allows a host to discover its internet address when it knows its physical address.

(51)

ARP

Used to associate the logical address with physical address (link-layer address to a host or a router when network layers address is given). Each device on the network is identified by physical or station address, usually imprinted on the network interface card (NIC).

(52)

Transport Layer

Logical connection at TL is end-to-end It performs the following service:

(53)

Transport Layer

Responsible for delivery of message from a process to another process

TCP (Transmission control Protocol)

(54)

TCP

TCP is a connection oriented protocol

It first establishes a connection is established between both the ends (source and destination host) before data transmission.

At the sending end TCP divides a stream of data into smaller units called segments.

Each segment includes a sequence number for reordering after receipt, together with acknowledgment no. for the segments received.

At the receiving end, TCP collects each datagram as it comes in and reorder the transmission based on sequence no.

TCP provides:

(55)

Ref for protocols

Ref: Detailed description of:

ARP = chapter 9

ICMP = chapter 19 IGMP = chapter 21

(56)

UDP

UDP is a connection-less protocol

Transmits user datagramwithout first creating a logical connection

Each datagram from a user is anindependententity

Does not provide:

flow control error control congestion control

Its is a simple protocol which is attractive to an application program which needs to sendshort messages and cannot afford the

(57)

SCTP

Stream Control Transmission Protocol

provides support for newer applications such as voice over the internet. It combines the best features of UDP & TCP protocol.

(58)

Application Layer

An application is a program running on a computer (which is also termed as a process)

Logical connection is end-to-end

Two applications exchangemessages between each other via avirtual bridge between the two.

Physically, communication is performed via all the layers.

To communicate, one process sends a request message to other process and gets areply message

A number of protocols are predefined but a user can also do the same provided they provide it at both ends.

Some of the protocols are:

HTTP (Hyper Text Markup Language) SMTP (Simple Mail Transfer Protocol) FTP (File Transfer Protocol)

(59)

Internet Addressing

Any communication between two parties needs two addresses at-least

Source Address Destination Address

Since we have 5 layers so it appears that we would require 5 addresses. But we only need 4

(60)

Addressing Mechanism

(61)

IP Address

(62)

Physical address

Address of a node as defined by its LAN or WAN. It is included in the frame used by the data link layer.

It is the lowest level address.

The physical address have the authority over the network (LAN & WAN).

The size and format of these addresses vary depending upon the network.

(63)

Example

(64)

Logical addresses

Physical addresses are not adequate in an internetwork environment wheredifferent networks have different address formats.

Auniversal addressing system is needed in which each host can be identified uniquely, regardless of the type of physical network. The logical addresses are designed for this purpose and they are independent of physical network.

A logical address in the internet is currently 32 bit address that can uniquely defined a host connected to internet.

(65)

Port Address

The IP Address and the physical address are necessary for a quantity of data to travel from a source to the destination host.

However, the arrival of data at the destination is not the final objective.

Computers are devices that can run multiple processes at the same time.

For theses processes to receive data simultaneously, there is need of of method to label the different process.

function of addressing a particular process is called as port addressing.

(66)

Specific addresses

Some applications have user friendly addresses that are designed for that specific address.

The example includes the email address ( for eg. [email protected]) and the universal resource locator (URL) (for eg.

http://www.google.com).

The first defines the recipient of an email and the second is used to find the information on the world wide web.

References

Related documents

Identification of camel milk and shubat microflora provides a theoretical foundation for developing starter cultures by using local LAB strains for industrial production of

Completed and can warrant where are you can swallow when they decided to stay married to strategic air force colonel, playing the home.. Worth it

• Network layer adds network header with network address for destination computer; This gives a network protocol data unit.. babic Presentation

In order to provide the finest quality remanufactured diesel injectors, we performed an intensive review of every process from design to inspection, from teardown to assembly,

Continuous Direct Current injection into a carbon composite sample showed that Joule Heating can cause significant damage to metal fasteners and can cause cracking

In order to achieve appropriate hydrological planning, it is necessary to take into account two important aspects, which are, on the one hand, assessing the available water

9 Within this multifaceted context, the aims of this review paper are: (1) to discuss the inconsistencies in the definitions and terminology of coaching used in the literature

The pathways to internalizing problems are complex and it is unlikely that single risk or strength factors are sufficient to cause or prevent psychopathology (Madigan Atkinson,