Top Banner
Basics of COMPUTER NETWORKS Book in glance Computer Engineering Faculty of Engineering Kurdistan University ( Email : [email protected])
81

Basics of COMPUTER NETWORKS

Jan 03, 2016

Download

Documents

uriah-hale

Book in glance. Basics of COMPUTER NETWORKS. Computer Engineering Faculty of Engineering Kurdistan University ( Email : [email protected]). Contact information. سرفصل‌هاي درس. فصل 1: مفاهيم اوليه فصل 2: لايه فيزيكي فصل 3: لايه پيوند داده فصل 4: لايه شبكه فصل 5: لايه انتقال - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Basics of COMPUTER NETWORKS

Basics of COMPUTER NETWORKS

Book in glance

Computer EngineeringFaculty of EngineeringKurdistan University

( Email : [email protected])

Page 2: Basics of COMPUTER NETWORKS

سرفصل هاي درس

Contact information

: مفاهيم اوليه1فصل •: اليه فيزيكي 2فصل •: اليه پيوند داده3فصل •: اليه شبكه4فصل •: اليه انتقال5فصل •: اليه كاربرد6فصل • : كابل كشي ساخت يافته7فصل •

Page 3: Basics of COMPUTER NETWORKS

What’s a Computer Network?

• Connecting two or more computers or other devices via a Communication media( Physical or wireless)

• Categorizing networks according to size:

– LAN (Local Area Network)– MAN (Metropolitan Area Network)– WAN (Wide Area Network)– Internet

3Kurdistan UniversityComputer Network

Page 4: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 4

Types of Links

Point-to-Point Multiple Access

Page 5: Basics of COMPUTER NETWORKS

5Kurdistan UniversityComputer Network

Page 6: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 6

Page 7: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 7

Protocol Demultiplexing

FTP HTTP TFTPNV

TCP UDP

IP

NET1 NET2 NETn…

TCP/UDPIP

IPX

Port Number

Network

Protocol Field

Type Field

• Multiple choices at each layer

Page 8: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 8

OSI Layers and Locations

Switch RouterHost Host

Application

Transport

Network

Data Link

Presentation

Session

Physical

Hub

Page 9: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 9

Network Interface Card (NIC)

Page 10: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 10

Hub (layer 1 device)Just knows bits

Page 11: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 11

Switch (layer 2 device)Knows MAC addresses

Page 12: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 12

Router (layer 3 device)Knows Logical addresses (IP and IPX)

Page 13: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 13

Page 14: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 14

Connector

Twisted Pair

UTP

STP

Page 15: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 15

Bad Good

Page 16: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 16

Connectors

Page 17: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 17

Connectors

Fiber Optic

Page 18: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 18

Page 19: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 19

A Fiber Optic Ring with Active repeaters

Page 20: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 20

Electromagnetic Spectrum

Page 21: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 21

Types of Propagation

Page 22: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 22

Basic Modulation Types

Page 23: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 23

Compression:

Huffman Coding

Run-length Coding

Ziv Lempel compression

Page 24: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 24

Page 25: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 25

FDM (Frequency Division Multiplexing)

Page 26: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 26

WDM (Wavelength Division Multiplexing)

Page 27: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 27

TDM (Time Division Multiplexing)

Page 28: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 28

Page 29: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 29

Circuit Switching

Page 30: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 30

Page 31: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 31

Time Division Switch

Page 32: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 32

Packet Switching

Page 33: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 33

Message Switching

Page 34: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 34

Framing Methods

Character Count

Byte Stuffing

Bit Stuffing

Page 35: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 35

Handling Errors

Page 36: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 36

Single bit Error

Multiple bit Error

Page 37: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 37

0110100

1011010

0010110

1110101

1001011

1

0

1

1

0

1000110 1

Parity bit

One Dimensional Parity

Two Dimensional Parity

Page 38: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 38

Cyclic Redundancy Check (CRC)

• Represent a (n+1)-bit message as an n-degree polynomial M(x)–E.g., 10101101 M(x) = x7 + x5 + x3 + x2 + x0

• Choose a divisor k-degree polynomial G(x)• Compute reminder R(x) of M(x)*xk / C(x), i.e., compute

A(x) such thatM(x)*xk = A(x)*G(x) + R(x), where degree(R(x)) < k

• Let T(x) = M(x)*xk – R(x) = A(x)*G(x)

• Then–T(x) is divisible by G(x)

Page 39: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 39

Hamming Code

Page 40: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 40

Categories of Flow Control

Page 41: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 41

Stop-and-Wait

Page 42: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 42

ReceiverReceiverSenderSender

Sliding WindowSender/Receiver State

… …

Sent & Acked Sent Not Acked

OK to Send Not Usable

… …

Max acceptable

Receiver window

Max ACK received Next seqnum

Received & Acked Acceptable Packet

Not Usable

Sender window

Next expected

Page 43: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 43

Example of Sliding Window

Page 44: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 44

Sliding WindowGo-Back-n, Damaged Frame

Page 45: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 45

Sliding windowSelective-Repeat, Damaged Frame

Page 46: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 46

Evolution of Contention Protocols

Developed in the 1970s for a packet radio network

Aloha

SlottedAloha

Improvement: Start transmission only at fixed times (slots)

CSMA

CSMA = Carrier Sense Multiple AccessImprovement: Start transmission only if no transmission is ongoing

CD = Collision Detection

Improvement: Stop ongoing transmission if a collision is detected (e.g. Ethernet)

CSMA/CD

Media Access Control

Page 47: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 47

The Aloha Protocol

•simple: if you have pkt to send, "just do it" •if pkt suffers collision, will try resending later

                                                        

Page 48: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 48

Slotted Aloha

•synchronous system: time divided into slots •slot siz equals fixed packet transmission time •when pkt ready for transmission, wait until start of next slot •packets overlap completely or not at all

                                                          

Page 49: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 49

Carrier Sensing Protocols

•Aloha is inefficient (and rude!): doesn't listen before talking! •Carrier Sense Multiple Access: CSMA

non-persistent CSMA: 1.sense (listen to) channel 2.if {channel sensed busy}

then wait random time; go to 1 else transmit packet

p-persistent CSMA: 1.sense (listen to) channel 2.when {channel sensed idle}

transmit with probability p else wait random time, go to 1

Page 50: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 50

CSMA/CD

•CSMA with collision detection(CD): •listen while talking! •stop transmitting when another pkt has collided with your pkt

•wait random time before attempting to resend •worst case time to detect a collision? •performance depends (as in CSMA) on channel length

Page 51: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 51

Collision free protocolsReservation

No collisions reservation is made before sending

average waiting time before transmission is N low load utilization: d/(d+N) – not good if N is large high-load utilization d/(d+1)

d bits

N bits

t

Page 52: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 52

Collision free protocols

Page 53: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 53

Page 54: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 54

IEEE 802 Standards

Page 55: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 55

Page 56: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 56

802.3 Frame structure

Page 57: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 57

10Base5

Page 58: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 58

10Base2

Page 59: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 59

10BaseT

Page 60: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 60

10BaseF

Page 61: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 61

IEEE 802.4Token Bus Network

Page 62: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 62

Token Ring IEEE 802.5

Data Token/Data

l1

l3 l2

l4

min/ TRTclPROPi i

TRT=Token Rotation Time

Listen:

Talk:

Page 63: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 63

Token Ring IEEE 802.5

Page 64: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 64

IEEE 802.11 Wireless LAN (WLAN)

802.11b

802.11 802.11a 802.11g

Page 65: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 65

ISM Bands(Unlicensed )

802.11b (11Mbps)

802.11g(54 Mbps)

802.11a(54 Mbps)

Page 66: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 66

Wireless Access PointWireless Network Interface Card

Page 67: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 67

Spread Spectrum Methods

FHSS DSSS

Page 68: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 68

FHSS

Page 69: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 69

DSSS

Original Data

Transmitted Data

Page 70: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 70

ESSExtended Service Set

BSS: Basic Service Set

Overlapped Area for roaming

Page 71: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 71

CSMA/CA

Page 72: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 72

Page 73: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 73

Page 74: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 74

Page 75: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 75

Internetworking

Hop-by-hop

Network Layer

Page 76: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 76

Need of Network Layer

Host-to-host (End-to-end)

Page 77: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 77

Packet delivery in Network layer

Internet

Page 78: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 78

Routing Algorithms

• Calculate the shortest path (lowest cost)

• Two common methods– Distance vector routing (RIP , IGRP , … )– Link state routing (OSPF , IS-IS)

Page 79: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 79

The concept of distance vector routing

Page 80: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 80

Concept of link state routing

Page 81: Basics of COMPUTER NETWORKS

Kurdistan UniversityComputer Network 81

Hierarchical Routing

Routing in Autonomous Systems (IGP)

EGP

IGP

Routing between Autonomous Systems (EGP)