40
TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci Office: 168 [email protected]

TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Embed Size (px)

Citation preview

Page 1: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

TOBB ETÜ ELE46/ELE563Communications Networks

Lecture 01May 6, 2014

Fall 2011

Tuesday 10:30 – 12:20 (310)Thursday 15:30 – 17:20 (372)

İsrafil BahçeciOffice: 168

[email protected]

Page 2: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Ders Bilgileri - I

Bu derste neler öğreneceğiz? İnternet olgusu hayatımızın çok önemli bir parçasıdır.

Her ne kadar bilgisayar ağı kavramı İnternetten ibaret olmasa da İnternet en önemli ve en yaygın bilgisayar ağlarının başında gelmektedir. Neden?

İnterneti olanaklı kılan teknolojiler ve yapı blokları nelerdir?

Bu yapı taşlarını kullanarak nasıl bir mimari oluşturulmuştur ki böylesi etkin ve yaygın bir iletişim sistemi ortaya çıkmıştır?

Bu sistemin eksikleri var mıdır? Varsa neledir?

Page 3: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Ders Bilgileri - II

Kaynak kitap Computer Networks, Andrew Tanenbaum , 5th Edition,

Prentice Hall 2011 Yarımdcı kitap

Computer Networks: A Systems Approach, 5th Edition, Morgan Kaufmann (an Elsevier Company) by L. L. Peterson and B. S. Davie

Page 4: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Ders Bilgileri - III

Notlandırma Arasınav: %30 Sonsınav: %60 Proje (seçmeli): %10

Page 5: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Objective of this Lecture

Requirements placed on the network The idea of network architecture Key elements in implementation of a network

architecture Key metrics to evaluate the performance of computer

networks

Page 6: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

An Example URL (Uniform Resource Locator) HTTP (Hyper Text Transfer Protocol) Click in your browser “http://www.mkp.com/pd3e” One click and as many as 17 messages are exchanged

Assuming the web page can be downloaded with a single message

Six messages to translate www.mkp.com into 213.38.165.180 Three messages to set up TCP between the browser and the

server Four messages for the browser to send the HTTP “get” request

and the server to reply with the requested page (+ ACKs) Four messages to tear down the connection

Page 7: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Requirements: Connectivity:Links Nodes

(a)

(b)

Point-to-point

Multiple access

Scalability Link Node Indirect connectivity →

switching

Page 8: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Switched Network

Clouds Switched network Circuit switched (telephone system) Packet switched (computer networks) Packets, messages Store-and-forward

Page 9: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Interconnection of Networks

internetwork (internet) Router, gateway address routing Unicasting, broadcasting, multicasting

Page 10: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Requirements: Cost-effective resource sharing

Efficient utilization of the links Multiplexing Analogy: CPU TDM FDM More efficient multiplexing: statistical multiplexing

L2

L3

R2

R3

L1 R1

Switch 1 Switch 2

Page 11: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Multiplexing over a link

How to service packets FIFO Round robin Quality of Service (QoS) Congestion

■ ■ ■

Page 12: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Support for Common Services

Application processes are communicating Should each application perform all the complex

functionality to communicate ? Common services, hide complexity (abstraction) Application level process communicate over logical

channels What functionality should the logical channel provide?

Host

HostHost

Channel

Application

Host

Application

Host

Page 13: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Common Communication Patterns

Client/Server Request/reply channel

(small request message, large reply message) – a digital library

The opposite Message stream channel – video on demand Channel abstractions

Page 14: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Reliability

Networks can fail Bit errors Burst errors Buffer overload Software/OS errors Routing errors Human errors Others (power failure)

Page 15: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Network Architecture:Example of A Layered Network System

Abstraction Interface Hide complexity Decompose the problem Monolithic software Modularity

Application programs

Process-to-process channels

Host-to-host connectivity

Hardware

Page 16: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Protocols

Protocols Service interface Peer interface

Hardware

Host-to-host connectivity

Request/replychannel

Message streamchannel

Application programs

Page 17: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Service and Peer Interface

Host 1 Host 2

Serviceinterface

Peer-to-peerinterface

High-levelobject

High-levelobject

Protocol Protocol

Page 18: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Example of A Protocol GraphHost 1 Host 2

Fileapplication

Digitallibrary

application

Videoapplication

Fileapplication

Digitallibrary

application

Videoapplication

RRP: Request Reply Protocol

MSP: Message Stream Protocol

HHP: Host-to-Host Protocol

Page 19: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Protocols Protocol specification

Pseudo code State transition diagram Packet formats

Interoperability Independent implementation

Standardization bodies IETF (Internet Engineering Task Force) ISO (International Standards Organization) IEEE (Institute of Electrical & Electronics Engineers)

Page 20: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

EncapsulationHost Host

Applicationprogram

Applicationprogram

RRP

Data Data

HHP

RRP

HHP

Applicationprogram

Applicationprogram

RRP Data RRP Data

HHP RRP Data Header Trailer Body Demultiplexin

g

Page 21: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

OSI Reference Model

One or more nodeswithin the network

End host

Application

Presentation

Session

Transport

Network

Data link

Physical

Network

Data link

Physical

Network

Data link

Physical

End host

Application

Presentation

Session

Transport

Network

Data link

Physical

OSI (Open System Interconnection) Reference model

Page 22: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Client-server model

Page 23: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

REQUEST and REPLY

Page 24: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Applications Business: Web, VoIP, e-commerce Home: Connectivity, instant

messaging, social network, wiki Mobility

Page 25: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Peer-2-peer model

Page 26: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Network Scale and Hardware Broadcast vs. Point-2-Point

(unicast) Scale of network

Bluetooth, medical devices, RFID

Enterprise, home, AP, wireless router, 802.11 (WiFi), 802.3 (Ethernet), Virtual LANs

City coverage, cable TV + internet, Wireless MAN (802.16 WiMax)

Large geographical area, country, continent

Page 27: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Network Scale and Hardware

PANLAN

MANWAN

Page 28: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Network Scale and Hardware

WAN-VPN WAN-ISP

• Transmission lines• Routers inter-communication: Routing, forwarding algorithms

• Wireless WANs• Satellite• Cellular network

Page 29: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Network of Networks ISP (Internet service provder)

networks to connect many different types of networks Subnet: collection of routers and

communication lines Hosts: connected to subnet

Gateway: interconnects different netwroks Hardware and software translator

Page 30: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Network Software Protocol: agreement between

communicating parties Protocol stack: Efficient simplified

implementation by layers Services to higher layers, similar to

virtual machine

Page 31: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

5-layer protocol stack

Physical communication

Virtual communication

• Clear, modular interface design,

• Well-defined functions

Page 32: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Network Architecture

Set of protocol layers

Protocol stack: list of protocols used by a certain system

Page 33: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Network Architecture 2

Page 34: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Layer Design Software design for higher levels,

hardware/firmware design for lower layers Design issues

Error detection, error correction Path selection, routing Network evolution: protocol layering Packet aggregation/de-aggregation, addressing,

ordering Scalability Resource allocation, scheduling, statistical

multiplexing Flow control, congestion control Quality of service Confidentiality, authentication

Page 35: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Connection Type Connection-oriented service:

circuit switch Connectionless service: packet

switch

Page 36: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Service vs. Protocol Service: a set of operations that a layer

provides to the layer above it Protocol: set of rules for the formatting,

packetization, message bit generation Object operations vs. implementation

Page 37: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Network Architecture Examples

Open System Interconnection (OSI) Generic model, although protocol

layers are not directly used TCP/IP

Not a generic model, but widely implemented protocol layers

Page 38: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Reference Model 1: OSI

• Open Systems Interconnection (OSI) reference model

• ISO (revised in 1995)• Principles

• New layer for a different abstraction

• Well-defined functionality

• Internationally standardized protocols

• Minimize information flow across interface

• Distinct functions per layer

Page 39: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

PHY: Raw bits over the air, cable, fiber Data Link: Free of error transmission,

ACK/NACK, MAC: medium access control

Network: Routing, QoS, heterogonous network Transport: Packets to arrive in order,

independent of hardware or device, service type (e.g. error free connection, or unguaranteed connection) True end-to-end layer

Session: Dialog control high-level communication sync

Presetation: Syntax and semantics

Page 40: TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci

Reference Model 2: TCP/IP