computer networks basics and osi

108
Basics of data communication and OSI model Navneet Soni Asst. Professor GDRCST, Bhilai

Upload: csgdrcst

Post on 13-Jan-2017

186 views

Category:

Education


3 download

TRANSCRIPT

Page 1: Computer Networks basics and OSI

Basics of data communication and OSI model

Navneet SoniAsst. ProfessorGDRCST, Bhilai

Page 2: Computer Networks basics and OSI

Data communication is the exchange of data between two devices by making use of some transmission media.

Data Communication may be of two typesLocalRemote

If the communicating devices are in the same building then it is a type of local communication

If the devices are farther apart then it is a type of remote communication

Navneet Soni (Asst. Professor) 2

Page 3: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 3

Effectiveness of data communication depends on 3 fundamental characteristics

DeliveryAccuracyTimeliness

Components of Data communication Protocol Protocol

Sender ReceiverMessage

Page 4: Computer Networks basics and OSI

Sender:- Device that sends the messageReceiver:- Device that receive the messageMedium:-It is the physical path by which message travels from sender to receiver.Protocol:-It is the exchange of data between two separate entities.Message:- Information which is to be communicated.

Networks:

A network is a collection of autonomous computer. The computer which can forcibly start, stop and control another one are not autonomous. Two computer are said to be interconnected if they are able to exchange information.

Navneet Soni (Asst. Professor) 4

Page 5: Computer Networks basics and OSI

The communication can be done by copper wire, fiber optics, microwaves and communication satellite.

Networks uses distributed processing in which task is divided among multiple computers.

Advantages of distributed processing areSecurityDistributed DatabaseFaster problem SolvingSecurity Through RedundancyCollaborative Processing

Navneet Soni (Asst. Professor) 5

Page 6: Computer Networks basics and OSI

Performance can be measured in many ways including the Transit Time & Response Time. It depends on the following factors, they are:

1. Number of users2. Types of Transmission Media3. Hardware 4. Software

Navneet Soni (Asst. Professor) 6

Criteria

Performance Reliability Security

Page 7: Computer Networks basics and OSI

Reliability:- it is measured by frequency of failure, the time it takes link to recover from a failure & Catastrophe.

Security:- Network must be safe guarded from: Unauthorized Access Viruses

Navneet Soni (Asst. Professor) 7

Page 8: Computer Networks basics and OSI

Protocol is a set of rules that govern the exchange of data between two separate entities.

A protocol defines: What is communicated, How it is communicated & When it is communicated.

The Key Element of protocol is: Syntax Semantics Timing

Navneet Soni (Asst. Professor) 8

Page 9: Computer Networks basics and OSI

Syntax: It refers to the format of the data, i.e. meaning of the order in which they are presented.

Semantics:- It refers to the meaning of each section of the bits.

Timing:- it refers to when the data should be sent and how fast they can be sent.

Navneet Soni (Asst. Professor) 9

Page 10: Computer Networks basics and OSI

A standard provides a model for development that makes it possible for a product to work regardless of the individual manufacturer

Data communication standards fall into 2 categories:Defacto (By Fact)Dejure (By Law)

1) Dejure (By Law) : Standards that have not been approved by an organized body but have been adopted as a standard.

2) Defacto (By Fact) standards are of two types:1. Proprietary2. Non Proprietary

Navneet Soni (Asst. Professor) 10

Page 11: Computer Networks basics and OSI

Line configuration refers to the way two or more devices attach to the link.

A link is the physical connection i.e. the pathway that transfer the data from one device to another. There are 2 possible line configuration

Point-to-PointMultipoint

Navneet Soni (Asst. Professor) 11

Page 12: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 12

Point-to-Point:It provides a dedicated link between two devices. The entire capacity of the channel is reserved for transmission between those two devices.

Multipoint:It is also known as multi-drop line configuration, it is the one in which more than two specific devices share a single link.

Page 13: Computer Networks basics and OSI

Transmission mode defines the direction of single flow between two devices. There are 3 types of transmission mode, they are:

1. Simplex2. Half-Duplex3. Full-Duplex

Navneet Soni (Asst. Professor) 13

Page 14: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 14

Page 15: Computer Networks basics and OSI

It is the geometrical representation of how the nodes in the network are attached to each other. Basically there are 5 types of topologies, they are:MeshStarTreeBusRing

Navneet Soni (Asst. Professor) 15

Page 16: Computer Networks basics and OSI

A type of network setup where each of the computers and network devices are interconnected with one another, allowing for most transmissions to be distributed, even if one of the connections go down. This type of topology is not commonly used for most computer networks as it is difficult and expensive to have redundant connection to every computer.

16

                    

Page 17: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 17

There are two types of mesh topology they areFully Connected Mesh TopologyPartial Connected Mesh Topology

Advantages:Eliminating the traffic problems.Mesh topology is robust.It provides security.

Disadvantages:The amount of cabling and the ports required

Page 18: Computer Networks basics and OSI

Also known as a star network, a star topology is one of the most common network setups where each of the devices and computers on a network connect to a central hub. A major disadvantage of this type of network topology is that if the central hub fails, all computers connected to that hub would be disconnected.

18

                                                  

Page 19: Computer Networks basics and OSI

It is a central controlling device in a star network.

Navneet Soni (Asst. Professor) 19

Page 20: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 20

There are 2 types of hub1. Active Hub2. Passive Hub

An Active hub contains a repeater which is a hardware device that regenerates the received bit pattern before sending them out.

A Passive hub provides a simple physical connection between the attached devices.

Page 21: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 21

Advantages: It is less expensive than a mesh topology because each device needs

only one link and one I/O port to connect it to any number of others. It includes robustness means if one link fails than only that link is

affected, all the other link remain active.

Disadvantages: If the hub fails then it affects the whole network.

Page 22: Computer Networks basics and OSI

Bus networks use a common backbone to connect all devices. A single cable, the backbone functions as a shared communication medium that devices attach or tap into with an interface connector. A device wanting to communicate with another device on the network sends a broadcast message onto the wire that all other devices see, but only the intended recipient actually accepts and processes the message.

Navneet Soni (Asst. Professor) 22

Page 23: Computer Networks basics and OSI

In this nodes are connected to the bus cable by drop lines and taps. A drop line is a connection running between the device and the main cable.

A tap is a connector that splices into the main cable to create a contact with the metallic core.

Navneet Soni (Asst. Professor) 23

Page 24: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 24

Advantages: Easy to connect a computer or peripheral to a linear bus. Requires less cable length than a star topology.

Disadvantages: Entire network shuts down if there is a break in the main cable. Terminators are required at both ends of the backbone cable. Difficult to identify the problem if the entire network shuts down. Not meant to be used as a stand-alone solution in a large building.

Page 25: Computer Networks basics and OSI

In this topology each device has a dedicated link only with the two devices on the either side of it. All messages travel through a ring in the same direction (either "clockwise" or "counterclockwise"). A failure in any cable or device breaks the loop and can take down the entire network.

Navneet Soni (Asst. Professor) 25

Page 26: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 26

Advantages: It is relative to install and reconfigure In this fault isolation is simplified.

Disadvantages: Unidirectional traffic may be disadvantage. A break in the ring can disable the entire network.

                                                            

Page 27: Computer Networks basics and OSI

It is a variation of star, nodes in a tree are linked to the central hub. But in this case not all devices are connected to the central hub they are connected to the secondary hub after that all the secondary hub are connected to the central hub.

The central hub is the type of Active hub

The Secondary hub is the type of Passive hub

Navneet Soni (Asst. Professor) 27

Page 28: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 28

Page 29: Computer Networks basics and OSI

Advantages:• It allows more devices to be attached to a single central hub.• It allows the network to isolate and prioritize communication from

different computers

Navneet Soni (Asst. Professor) 29

Page 30: Computer Networks basics and OSI

A network topology that uses two or more network topologies.

Navneet Soni (Asst. Professor) 30

Page 31: Computer Networks basics and OSI

Networks are categorized into 3 categories:1. LAN (Local Area Network)2. MAN (Metropolitan Area Network)3. WAN (Wide Area Network)

Navneet Soni (Asst. Professor) 31

Page 32: Computer Networks basics and OSI

When two or more networks are connected together they become an internetwork or internet.

Navneet Soni (Asst. Professor) 32

Page 33: Computer Networks basics and OSI

An ISO standard that cover all aspect of network communication is the OSI model.

The purpose of the OSI Model is to provide open communication between different system.

It is a model not a protocol.

The OSI model is built of seven ordered layer.

Navneet Soni (Asst. Professor) 33

Page 34: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 34

Page 35: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 35

Page 36: Computer Networks basics and OSI

Physical layer

The physical layer coordinates the function required to transmit a bit stream over a physical medium.

It deals with the electrical and mechanical specification of the interface and the transmission medium means that it defines the procedure and functions that physical devices and interfaces have to perform for transmission to occur

Navneet Soni (Asst. Professor) 36

Page 37: Computer Networks basics and OSI

Physical characteristics of Interface and media. Representation of bits. Data Rate. Synchronization of bits. Line configuration. Physical Topology Transmission Mode

Navneet Soni (Asst. Professor) 37

Page 38: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 38

Page 39: Computer Networks basics and OSI

It transforms the physical layer a raw transmission facility to a reliable link and it is also responsible from node to node delivery.

Specific responsibility of the physical layer are:FramingPhysical AddressingFlow ControlError ControlAccess Control

Navneet Soni (Asst. Professor) 39

Page 40: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 40

Page 41: Computer Networks basics and OSI

The network Layer is responsible for the source to destination delivery of a packet across a multiple links or networks.

Specific responsibilities of the network layer are:Logical AddressingRouting

Navneet Soni (Asst. Professor) 41

Page 42: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 42

Page 43: Computer Networks basics and OSI

This layer is responsible for source to destination delivery i.e. end to end delivery of the entire message.

For adding security the transport layer may create a connection between the two end ports.

Specific responsibility of this layer areService Point AddressingSegmentation & ReassemblyConnection ControlFlow ControlError Control

Navneet Soni (Asst. Professor) 43

Page 44: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 44

Page 45: Computer Networks basics and OSI

This layer establishes, maintains and synchronizes the interaction between communicating systems

Specific responsibilities performed by this layer is:

Dialog ControlSynchronization

Navneet Soni (Asst. Professor) 45

Page 46: Computer Networks basics and OSI

This layer is concerned with the syntax & semantics of the information exchanged between the two system.

Specific responsibilities of this layer is:TranslationEncryptionCompression

Navneet Soni (Asst. Professor) 46

Page 47: Computer Networks basics and OSI

This layer enables the user to access the network. It provides user interface and provide support for services.

Specific responsibility performed by this layer is:

Network Virtual TerminalFile Transfer, Access & ManagementMail ServicesDirectory Services

Navneet Soni (Asst. Professor) 47

Page 48: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 48

Page 49: Computer Networks basics and OSI

The ARPANET was a research network sponsored by the DOD. It eventually connects hundred of universities and government installations by using leased telephone line.

When satellite and radio networks are attached, the existing protocols had trouble in internetworking with them. For that a new architecture was made which is known as TCP/IP reference model.

Navneet Soni (Asst. Professor) 49

Page 50: Computer Networks basics and OSI

Application Layer Transport Layer Network Layer Physical + Data Link Layer---Host-to-Network Layer

Navneet Soni (Asst. Professor) 50

Page 51: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 51

Page 52: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 52

Page 53: Computer Networks basics and OSI

This layer contain some higher level protocol, out of which some of them are:

Telnet (Virtual Terminal) FTP

SMTP

Navneet Soni (Asst. Professor) 53

Page 54: Computer Networks basics and OSI

In this layer it make use of two protocolTCPUDP

TCP stands for Transmission Control Protocol. It is a type of connection oriented and reliable protocol.

UDP (User Datagram Protocol) which is a connectionless and unreliable protocol.

Navneet Soni (Asst. Professor) 54

Page 55: Computer Networks basics and OSI

The job of the network layer is to permit the host to inject packets into any network and have them travel independently to the destination.

The packets may even arrive in a different order than they were sent, in this case it is the job of the higher layer to rearrange them, if inorder delivery is required.

Navneet Soni (Asst. Professor) 55

Page 56: Computer Networks basics and OSI

Data Transmission

Parallel Transmission Serial Transmission

SynchronousAsynchronous

Navneet Soni (Asst. Professor) 56

Page 57: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 57

Page 58: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 58

Page 59: Computer Networks basics and OSI

To alert the receiver that a new group of data is arriving, two extra bits are added one at the beginning which is known as start bit and the other one is at the end which is known as stop bit . There may be a gap between each byte.

The start bit is always 0 and the stop bit is always 1.

The start bit, stop bit and the gap alert the receiver to the beginning and end of each byte and allow it to synchronize with the data stream

Navneet Soni (Asst. Professor) 59

Page 60: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 60

Page 61: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 61

Page 62: Computer Networks basics and OSI

Data can be represented in form of signal and the signal are of two types:

Analog SignalDigital Signal

Analog refers to something that is continuous means a set of specific points of data and all possible points between them. Ex: Human Voice.

Digital refers to something that is discrete means a set of specific points of data with no other points in between. Ex: Data stored in memory.

Navneet Soni (Asst. Professor) 62

Page 63: Computer Networks basics and OSI

Both analog and digital signal can be of two forms:Periodic SignalAperiodic Signal

A periodic signal consist of a continuously repeated pattern. The period of signal is expressed in seconds. The completion of one full pattern is known as cycle.

An aperiodic signals have no repetative pattern.

Navneet Soni (Asst. Professor) 63

Page 64: Computer Networks basics and OSI

Simple analog signal is known as sine wave. Sine wave is characterized by 3 characteristics:

AmplitudeFrequencyPhase

Amplitude:It refers to the height of the signal. Amplitude is measured in volts, amperes & watts.

Period or Frequency:Period refers to the amount of time a signal needs to complete one cycle.

Navneet Soni (Asst. Professor) 64

Page 65: Computer Networks basics and OSI

Frequency is the number of cycles per second. Period is measured in sec, millisec, microsec, picosec, nanosec. Frequency is measured in Hz, KHZ, MHZ, GHZ, THZ.

Phase represents the position of the wave form relative to time zero (0).

Digital to Analog conversion is the process of changing one of the characteristics of an analog signal based on the information in a digital signal.

Navneet Soni (Asst. Professor) 65

Page 66: Computer Networks basics and OSI

Amplitude Shift Keying Frequency Shift Keying Phase Shift Keying

Quadrature Amplitude Modulation.

Navneet Soni (Asst. Professor) 66

Page 67: Computer Networks basics and OSI

The Major functions of Data Link Layer are

FramingPhysical AddressingLine DisciplineFlow ControlError Control

Navneet Soni (Asst. Professor) 67

Page 68: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 68

Page 69: Computer Networks basics and OSI

Line Discipline determines which device can send and when it can send.

Flow control coordinates the amount of data that can be sent before receiving acknowledgement.

Error control means error detection and correction. It allows the receiver to inform the sender about the damaging & losting.

Navneet Soni (Asst. Professor) 69

Page 70: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 70

Page 71: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 71

Page 72: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 72

Page 73: Computer Networks basics and OSI

Multipoint Discipline

Navneet Soni (Asst. Professor) 73

Page 74: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 74

Page 75: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 75

Page 76: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 76

Page 77: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 77

Page 78: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 78

Page 79: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 79

Page 80: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 80

Page 81: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 81

Page 82: Computer Networks basics and OSI

Error control method refers to the methods of error detection and retransmission. Error control can be done by making use of two methods:

Stop-and-wait ARQSliding Window ARQ

Go-Back-n Selective-Reject

Navneet Soni (Asst. Professor) 82

Page 83: Computer Networks basics and OSI

In this method retransmission of data is done in 3 cases:Damaged FrameLost FrameLost Acknowledgement

Navneet Soni (Asst. Professor) 83

Page 84: Computer Networks basics and OSI

Sender sends frame 0 and waits to receive ACK 1

When ACK 1 is received, it sends frame 1 and then waits to receive ACK0

repeat from step 1 and 2 and so on.

The ACK must be received before the time set for each frame expires

Navneet Soni (Asst. Professor) 84

Page 85: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 85

Page 86: Computer Networks basics and OSI

If an error is discovered in a data frame , indicating that it has been corrupted then the receiver sends an NAK frame which are not numbered that tells the sender to retransmit the last frame sent.

Navneet Soni (Asst. Professor) 86

Page 87: Computer Networks basics and OSI

A lost or damaged frame is handled in the same way by the receiver

When the receiver receives a damaged frame, it discards it

The receiver remains silent about a lost frame and keeps its value of R

After the timer at the sender site expires, another copy of frame 1 is sent

Navneet Soni (Asst. Professor) 87

Page 88: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 88

Page 89: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 89

Page 90: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 90

Page 91: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 91

Page 92: Computer Networks basics and OSI

Under this there are 2 methods:Go Back-n ARQSelective-Reject ARQ

Navneet Soni (Asst. Professor) 92

Page 93: Computer Networks basics and OSI

In this method if one frame is lost or damaged, all frames sent since the last frame acknowledged are retransmitted.

Sequence NumbersFrame from a sending station are numbered

sequentially. If the header of the frame allows m bits fro the sequence number, the sequence numbers range from 0 to pow(2, m-1).

Sender Sliding WindowSender uses window to hold the outstanding

frames until they are acknowledgedFrames to the left of the window are those that

have already been acknowledged and can be purged

Frames to the right of the window can not be sent until the window slides themNavneet Soni (Asst. Professor) 93

Page 94: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 94

Page 95: Computer Networks basics and OSI

Receiver Sliding WindowSize of the window is always 1The receiver is always looking for a

specific frame to arrive in a specific order

Navneet Soni (Asst. Professor) 95

Page 96: Computer Networks basics and OSI

Control VariablesThe sender has three variables

S: holds the sequence number of the recently sent frame

Sf : holds the sequence number of the last frame in the window

Sl : Holds the sequence number of the first frame in the window

Size of the window is : The receiver only has one variable: R,

that holds the sequence number of the frame it expects to receive

Navneet Soni (Asst. Professor) 96

Page 97: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 97

Page 98: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 98

Page 99: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 99

Page 100: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 100

Page 101: Computer Networks basics and OSI

Only damaged frame is resent Sender and receiver windows

Size of the sender’s window must be one half of Size of the receiver’s window must be same as the sender’s Negative acknowledgement (NACK) is used to define damaged

frame

Navneet Soni (Asst. Professor) 101

Page 102: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 102

Page 103: Computer Networks basics and OSI

DTE stands for Data Terminal Equipment. DCE stands for Data Circuit Terminating

Equipment. Both of these equipment is used on both

the side i.e. sender as well as receiver. The DTE generates the data and passes

them along with the necessary control character to a DCE.

The DCE converts the signal to a format appropriate to the transmission medium and introduces it onto the network link.

Navneet Soni (Asst. Professor) 103

Page 104: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 104

Page 105: Computer Networks basics and OSI

A DTE is any device that is the source of or destination for binary digital data.

A DTE can be a terminal , micro computer, computer, printer or fax machine.

DTE do not often communicate with one another, they generate and consume information by making use of an intermediary device that is DCE.

Navneet Soni (Asst. Professor) 105

Page 106: Computer Networks basics and OSI

A DCE is any device that transmits or receive data in the form of an analog or digital signal through a network.

In any network, a DTE generates digital data and passes them to a DCE, then the DCE converts the data to a form acceptable to the transmission media and sends the converted signal to another DCE on the network. The second DCE takes the signal off the line, converts it to a form usable by its DTE and delivers it. To make this communication possible, both sending and receiving DCE must use the same modulating method.

Navneet Soni (Asst. Professor) 106

Page 107: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 107

Page 108: Computer Networks basics and OSI

Navneet Soni (Asst. Professor) 108