2014-summer_Lec02

Download Report

Transcript 2014-summer_Lec02

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]
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?
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
Ders Bilgileri - III

Notlandırma



Arasınav: %30
Sonsınav: %60
Proje (seçmeli): %10
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
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
Requirements: Connectivity:
Links Nodes
Point-to-point
(a)
(b)
Multiple access




Scalability
Link
Node
Indirect connectivity → switching
Switched Network






Clouds
Switched network
Circuit switched (telephone system)
Packet switched (computer networks)
Packets, messages
Store-and-forward
Interconnection of Networks





internetwork (internet)
Router, gateway
address
routing
Unicasting, broadcasting, multicasting
Requirements:
Cost-effective resource sharing
L1
R1
L2
R2
Sw itch 1
L3






Sw itch 2
R3
Efficient utilization of the links
Multiplexing
Analogy: CPU
TDM
FDM
More efficient multiplexing: statistical multiplexing
Multiplexing over a link
■■■





How to service packets
FIFO
Round robin
Quality of Service (QoS)
Congestion
Support for Common Services
Host
Host
Application
Channel
Host
Application
Host





Host
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?
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
Reliability








Networks can fail
Bit errors
Burst errors
Buffer overload
Software/OS errors
Routing errors
Human errors
Others (power failure)
Network Architecture:
Example of A Layered Network System
Application programs
Process-to-process channels
Host-to-host connectivity
Hardware






Abstraction
Interface
Hide complexity
Decompose the problem
Monolithic software
Modularity
Protocols
Application programs
Request/reply Message stream
channel
channel
Host-to-host connectivity
Hardware

Protocols


Service interface
Peer interface
Service and Peer Interface
Host 1
High-level
object
Protocol
Host 2
Service
interface
Peer-to-peer
interface
High-level
object
Protocol
Example of A Protocol Graph
Host 1
File
application



Digital
library
application
Video
application
Host 2
File
application
Digital
library
application
RRP: Request Reply Protocol
MSP: Message Stream Protocol
HHP: Host-to-Host Protocol
Video
application
Protocols

Protocol specification




Interoperability


Pseudo code
State transition diagram
Packet formats
Independent implementation
Standardization bodies



IETF (Internet Engineering Task Force)
ISO (International Standards Organization)
IEEE (Institute of Electrical & Electronics Engineers)
Encapsulation
Host
Host
Application
Application
program
program
Application
Application
program
program
Data
Data
RRP
RRP
RRP
Data
RRP
HHP




Header
Trailer
Body
Demultiplexing
HHP
HHP
RRP
Data
Data
OSI Reference Model
End host
End host
Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
Netw ork
Data link
Physical


Netw ork
Netw ork
Data link
Data link
Physical
Physical
OSI (Open System Interconnection)
Reference model
One or more nodes
w ithin the netw ork
Netw ork
Data link
Physical
Client-server model
REQUEST and REPLY
Applications



Business: Web, VoIP, e-commerce
Home: Connectivity, instant messaging,
social network, wiki
Mobility
Peer-2-peer model
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
Network Scale and Hardware
PAN
LAN
MAN
WAN
Network Scale and Hardware
WAN-VPN
WAN-ISP
•
•
Transmission lines
Routers inter-communication: Routing, forwarding algorithms
•
Wireless WANs
• Satellite
• Cellular network
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
Network Software


Protocol: agreement between
communicating parties
Protocol stack: Efficient simplified
implementation by layers

Services to higher layers, similar to virtual
machine
5-layer protocol stack
Physical communication
Virtual communication
• Clear, modular
interface design,
• Well-defined
functions
Network Architecture


Set of protocol
layers
Protocol stack: list
of protocols used by
a certain system
Network Architecture 2
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
Connection Type


Connection-oriented service: circuit
switch
Connectionless service: packet switch
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
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
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
Reference Model 2: TCP/IP
Network Model in 463/563
OSI vs. TCP/IP

Common



OSI: services, interfaces, protocols





Send ip, receive ip packet services
In real-time implementation, the romantics theory of OSI model
failed


Similar to object oriented prograaming
TCP/IP: Does not differentiate services, protocols and interfaces


Stack of independent protocols
Layers with similar functionality
Model arrived without any protocol in mind, none existed at the time
of model development
Ignored inter-networking, e.g., the Internet
TCP/IP: Protcols derived and implemented, then fiollowed by the
TCP/IP ref. model emerged
OSI: both connection-orineted and connectionless supported
TCP/IP, only connectionless supported
Critcique of OSI Model

Bad timing: Research vs. standardization approach


Bad Technology



Unbalanced design some layers are empty, some are full
Difficult to implement
Bad Implementation



Everybody rushed on TCP/IP due to widespread
implementations and test in academia
Initial implemetnations were huge, slow
TCP/IP’s first emergance as part of Berkley’s UNIX: a
success story
Bad politics

Governments attempted to push a not-good enough OSI
model implementation to researchers, which did not go
through as expected
Critique of TCP/IP


Initial versions ignored services, protocols and
interfaces
Not e generic ref. model; only good to explain the
protocol stack for TCP/IP itself


Link layer, is rather than being a layer, is only an
interface


For example, it can not explain or fit to many of actual
networking platforms, such as bluetooth
Ignores the difference between physical and data link
layer
Not cerafully thought prtocols


Only TCP and IP were deliberatly designed
Others just based on trials and errors, some apprentice
job by graduate student work .
Examples 1: Internet
Example 2: Cellular
Example 3: Wi-Fi
RFID and sensor networks
Network Standardization

Interoperability of products from different
vendors targeted for same applications



802.11 describes many schemes, but do not specify
when and how to use them
Protocol defined, but the service interface inside the
box is an implementation issue, not specified.
Standard development

De facto: HTTP by some guy in CERN, Bluetooth by
Ericcson, etc.


De facto may gradually evolve to De jure
De jure (by-law): By standard bodies


ITU, ISO, IETF, IEEE, 3GPP
Company politics to push owned patents into the standards
Telecom World

International interoperability

ITU: International Telecommunications Union

ITU-T: Telecom. Standardization Sector: Technical
recommendations for interfaces, then becomes standards


ITU-R: Recommendations Sector




ITU-D: Development Sectors
A member of ITU-T
NIST: National Institute of Standards and Technology


Example: Recommendation H.264 for video
X.509: public key cryptography for web browsing
ISO: International Standardization Organization


Study groups: e.g., SG15 for DSL development
US Department of Commerce
IEEE: Institute of Electrical and Electronics Engineers



802.11: WLANs : great success
802.3: Ethernet (LAN) : great success
816: MANs : almost fail
Ex. 802 Working groups
Internet Standardization

Internet Architecture Board (from the times of ARPANET)

RFC: Request for Comments, reports



IRTF: Internet Research Task Force: long term research
IETF: Internet Engineering Task Force: short term
engineering issues


Many working groups with a fine granular task, e.g, OSI
integration, routing and addressing, security, etc..
Procedure to standardize the outcomes




www.ietf.org/rfcs
Proposed Standard: RFC is a must
Draft Standard: Requires a 4-month test at 2 independent
sites
Internet Standard: IAB approval
W3C: WWW Constroitum: protocols and guides for longterm growth of Web

E.g., HTML, Web privacy
Chapter 2: Physical Layer

Lowest Layer


Electrical, timing, other inteerfaces in the
‘bit’ level
Physical environment




Impact on all network performance parameters
Wireless, wire, fiber, space, underwater
Modulation, coding
Multiple access
Basis of Communications


Signal representations: In terms of sums
of sinusoids at different freqeuencies, e.g,
harmonics
Communication channel: The transmission
media affects different frequencies by
different gains and delays: distortion

Channel bandwidth



Wi-Fi: Upto 160 MHz
DVT: 6 MHz
Base-band vs. pass-band
Example: Square-wave
8-bits per character
Rate: b bits per second
T=8/b: Duration of 8 bits for binary
modulation
First harmonic: 1/T = b/8 Hz
Channel bandwidth: 3000 Hz
Chanenel Data Rate

Nyquist: For channel with B bandwidth,
2B samples is the maximum allowed


V levels for modulations: 2Blog2(V) bits/sec
Noisy channel: Blog2(1+S/N)


Increase bandwidth
Increase signal quality (e.g. repeater)
Guided Media

Magnetic types, removable media


Twisted pairs





~gigabyte/half a cent with the existing recording
and shipping costs
Twisting due to avoiding an antenna structure
Telephony system
Coaxial cable
Power lines
Fiber optics
Wireless Media

Electromagnetic spectrum
Radio Transmission

Multipath propagation
Wireless Media 2



Microwave transmission
Infrared transmission
Light transmission
Satellite Communications




Geostationary satellites
Medium earth orbit satellites
Low-earth orbit satellites
Satellite vs. Fiber
Digital Modulation and
Multiplexing




Bits to analog-signal mapping
Base-band vs pass-band transmission
Carrier frequency
Multiplexing
Baseband Transmission


Simple: + voltage for 1, - voltage for 0
Fiber: light for 1, dark for 0


Receiever side: closest signal detection


For NRZ: + voltage as 1, - voltage as 0
NRZ: seldom used





Non-return to 0: NRZ
Bandwidth: B/2 Hz for B bits/s (Recall: Nyquist Rate: 2Blog2(V) =
2B samples)
Need to increase bandwidth for faster transmission
Higher attenuation for higher frequencies
Higher-order modulation: symbol rate or baud rate
Clock recovery: a long run of 1s or 0s: how to distinguish one
bit from other if syncronziation is not very accurate


Megabits/s speeds requires microsec level accuracy
Expensive clocks!
Clock Recovery with Line Codes
XOR clock signal with
data signal: Manchester
coding







Clock twice the bit rate
b xor b’ = 1,
b xor b = 0
Low-2-high: 0, high-2-low: 1
Ethernet
Twice bandwidth
NRZI: non-return to -0 inverted




1: transition, 0: no transition
USB ports (Universal serial bus): Long runs 1 is ok.
Long runs of 0: e.g., T1: no more than 15 consecutive 0s
4B/5B code: every 4 bits to 5 bits


No more than 3 consecutive 0s
Scrambling: pseudo random sequence via random number
generator


No guarantee for long-runs od b’s
Killer packets: e.g. IP over SONET
Balanced signals

Similar amount of + voltages and –
voltages


Average DC 0: DC is attenuated over
cables
Bipolar encoding (a.k.a Alternative Mark
Inversion - AMI)
Passband Transmission

Baseband signals shifted to desired carrier
frequency retaining the bandwidth



ASK: Amplitude shift keying
FSK: Frequency shift keying
PSK: Phase shift keying




BPSK: Binary PSK
QPSK: Quadrature PSK
QAM: Quadrature Amplitude Modulation
Constellation diagram

Bit-to-symbol mapping: Gray encoding
Modulation
Multiplexing

Frequency Division Multiplexing


Band pass signals share the spectrum
Split into smaller bands, e.g, bandwidth of
baseband signal


Guard bands to avoid inerference
OFDM: orthogonal frequency division
multiplexing
FDM and OFDM example
Ex: Telephone network,
cellular networks
802.11,802.16,LTE, etc.
Time Division Multiplexing
Time slot
 Guard time
 Telephone and cellular networks
 Not confuse with
Statistical TDM: packet switching

Code Division Multiplexing


Spread spectrum
Allows transmission all the time over all
the spectrum



Chips: short intervals



TDM: sharing, FDM: low/high pitch
CDMA: different languages
64 bit/128 bit chip sequence
E.g., to send 0: sends a schp sequence of –
1,1,-1,1,-1,-1,-1,1,1...-1,1 (64 bits), 1 with
antoher set of -1s and 1s
Orthogonal seqeunces
Networks and PHY layer

PSTN: Public switched telephone network



Originally developed to carry voice traffic
Reduce the last mile as much as possible via
fiber and digital technology deployment
Structure of PSTN



2 copper wire
End office: switch
Local loop: end office to subscriber

Modems, ADSL, Fiber
Typical circuit route
Local loops: Twisted pair to switches
Trunks: Fibers between switches
Switching offices
Digital Data over PSTN
Telephone modem

ADSL modem: reuse local loop
3100 Hz bandwidth !!!: Nyquist: 6000 baud

Trellis coded modulation: allows higher order modulation,
Bandwidth efficient
V32: 32 constellation points: 9600 bps
V34….. Finally: v90: 56 kbps
Higher bit rates


ADSL: Asymetric digital subscriber line
Trick: remove the switch filter optimized
for human voice


New bandwidth: 1.1 MHz
Discrete multitone (DMT)
Fiber
Multiplexing and Trunks



TDM: Time Division Multiplexing
FDM: Frequency DM
Digital data



Voice digitization: Pulse Code Modulation
Companding: mu-law or A-law
125 mico sec blocks
T1
T1 multiplexed