Wireless Networks L ecture 2: Networking Overview and Wireless - - PDF document

wireless networks
SMART_READER_LITE
LIVE PREVIEW

Wireless Networks L ecture 2: Networking Overview and Wireless - - PDF document

Wireless Networks L ecture 2: Networking Overview and Wireless Challenges Peter Steenkiste CS and ECE, Carnegie Mellon University Peking University, Summer 2016 1 Peter A. Steenkiste Schedule for Today Designing a BIG system The OSI


slide-1
SLIDE 1

Page 1

Peter A. Steenkiste

1

Wireless Networks Lecture 2: Networking Overview

and Wireless Challenges Peter Steenkiste

CS and ECE, Carnegie Mellon University Peking University, Summer 2016

Peter A. Steenkiste

2

Schedule for Today

 Designing a BIG system  The OSI model  Packet-based communication  Challenges in Wireless Networking  Please ask questions!

slide-2
SLIDE 2

Page 2

Peter A. Steenkiste

3

The Internet is Big and Has Many, Many Pieces

Application Operating System Protocol Software Computer Links Router Hardware Router Software (many protocols) Bridge HW/SW Application Operating System Computer Network Interface

How do you design something this complex?

Peter A. Steenkiste

4

What Do We Definitely Need?

 We must have communication hardware and

applications

 Two “devices” must be able to sent data to

each other

 Applications are what make the network

useful and fun

 We also need to design the network so it can

grow very big and is always available

» We need to be able to expand, fix, and improve the network …. » While it is up and running: you cannot reboot the Internet

slide-3
SLIDE 3

Page 3

Peter A. Steenkiste

5

Protocol Enable Communication

 An agreement between parties

  • n how communication should

take place.

 Protocols may have to define

many aspects of the communication.

 Syntax: » Data encoding, language, etc.  Semantics: » Error handling, termination,

  • rdering of requests, etc.

 Protocols at hardware,

software, all levels!

 Example: Buying airline ticket

by typing.

 Syntax: English, ascii, lines

delimited by “\n” Friendly greeting Muttered reply Destination? Pittsburgh Thank you

Peter A. Steenkiste

6

Do We Only Need Protocols?

 Need to also deal with » Many, many pieces of functionality » Complexity » Many parties involved building and running the network » Very long life time  The solution for dealing with complexity is

modularity: break up the Internet “system” in a set of modules with well-defined interfaces

» Each module performs specific functions » Can build a large complex system from modules implemented by many parties  Let us start with multiple protocols …

slide-4
SLIDE 4

Page 4

Peter A. Steenkiste

7

The Network

7

Solution #1

Web FTP Voice Telnet

  • Tw. Pair

Coax Wireless Optical

TCP DNS HTTP UDP

Peter A. Steenkiste

8

Need to More Add Structure

 Adding structure implies that you prevent

people from doing arbitrary ( silly) things

» Can we organize the modules in a certain way?  What modules do we definitely need in the

Internet?

» Hardware modules that allow us to send bits around » Applications that make the network useful for users  Do we need additional modules “in between”

the applications and the hardware?

slide-5
SLIDE 5

Page 5

Peter A. Steenkiste

9

Solution #2?

Web FTP Voice Telnet

  • Tw. Pair

Coax Wireless Optical Video

Does not scale!

Peter A. Steenkiste

10

10

Solution #3

Web FTP Voice Telnet

  • Tw. Pair

Coax Wireless Optical Intermediate Layer

slide-6
SLIDE 6

Page 6

Peter A. Steenkiste

11

Protocol and Service Levels

 Having two different types of protocols helps with

scalability and network management Application Inter-network Core Networks Hardware

Peter A. Steenkiste

12

Let Us Try Again, a Bit More Systematically

 Two or more hosts talk over a wire  Groups of hosts can talk at two levels » Hosts talk in a network is homogeneous in terms of administration and technology » Hosts talk across networks that have different administrators and my use different technology  We run some applications over that

Physical Datalink Internet

slide-7
SLIDE 7

Page 7

Peter A. Steenkiste

13

A Bit More Detail

 Physical layer delivers bits between the two

endpoints of a “link”

» Copper, fiber, wireless, visible light, …  Datalink layer delivers packets between two

hosts in a local area network

» Ethernet, WiFi, cellular, … » Best effort service: should expect a modest loss rate » “Boxes” that connect links are called bridges or switches  Network layer connects multiple networks » The Inter-net protocol (IP) » Also offers best effort service » Boxes that forward packets are called routers

Scaling up the network

Peter A. Steenkiste

14

Schedule for Today

 Designing a BIG system  The OSI model  Packet-based communication  Challenges in Wireless Networking  Please ask questions!

slide-8
SLIDE 8

Page 8

Peter A. Steenkiste

15

Networking 101 Layer Network Model

The Open Systems Interconnection (OSI) Model.

Application Presentation Session Transport Network Data link Physical 1 2 3 4 5 6 7 Network Data link Physical Application Presentation Session Transport Network Data link Physical

Peter A. Steenkiste

16

OSI Motivation

 Standard approach of breaking up a system in a

set of components with well defined interfaces, but components are organized as a set of layers.

» Only horizontal and vertical communication » Components/layers can be implemented and modified in isolation without affecting the other components  Each layer offers a service to the higher layer,

using the services of the lower layer.

 “Peer” layers on different systems communicate

via a protocol.

» higher level protocols (e.g. TCP/IP, Appletalk) can run on multiple lower layers » multiple higher level protocols can share a single physical network

slide-9
SLIDE 9

Page 9

Peter A. Steenkiste

17

Interfaces

 A protocol defines an interface between two

protocol modules in the same layer

» Uses the lower layers to communicate » Syntax: format of messages exchanged » Semantics: what actions to modules take and when  Each protocol offers an interface to its users

in the higher layer, and expects one from the layers on which it builds

» Protocols build on each other to provide increasingly richer communication services » Syntax: specify the format of data » Semantics: what service does each module provide to the next layer

Peter A. Steenkiste

18

OSI Functions

 (1) Physical: transmission of a bit stream.  (2) Data link: flow control, framing, error

detection.

 (3) Network: switching and routing.  (4) Transport: reliable end to end delivery.  (5) Session: managing logical connections.  (6) Presentation: data transformations.  (7) Application: specific uses, e.g. mail, file

transfer, telnet, network management.

slide-10
SLIDE 10

Page 10

Peter A. Steenkiste

19

Benefits of Layered Architecture

 Significantly reduces the complexity of building

and maintaining the system.

» Effort is 7 x N instead of N7 for N versions per layer  The implementation of a layer can be replaced

easily as long as its interfaces are respected

» Does not impact the other components in the system » Different implementation versus different protocols  In practice: most significant evolution and

diversity at the top and bottom:

» Applications: web, peer-to-peer, video streaming, .. » Physical layers: optical, wireless, new types of copper » Only the Internet Protocol in the “middle” layer

True For Wireless?

Peter A. Steenkiste

20

Schedule for Today

 Designing a BIG system  The OSI model  Packet-based communication  Challenges in Wireless Networking  Please ask questions!

slide-11
SLIDE 11

Page 11

Peter A. Steenkiste

21

21

Life of Packet

Bridge/Switch Router/Gateway Host Host Application Transport Network Data Link Presentation Session Physical

Peter A. Steenkiste

22 Preamble

A TCP / IP / 802.11 Packet

MAC header LLC / SNAP header IP header TCP header Data Application Presentation Session Transport Network Data link Physical

slide-12
SLIDE 12

Page 12

Peter A. Steenkiste

23

Example: Sending a Web Page

Http hdr Web page TCP header

. . .

Application payload Application Presentation Session Transport Network Data link Physical

Peter A. Steenkiste

24

Schedule for Today

 Designing a BIG system  The OSI model  Packet-based communication  Challenges in Wireless Networking  Please ask questions!

slide-13
SLIDE 13

Page 13

Peter A. Steenkiste

25

Why Use Wireless?

Has several significant advantages:

 Supports mobile users » Move around office, campus, city, … - users get hooked » Remote control devices (TV, garage door, ..) » Cordless phones, cell phones, .. » WiFi, GPRS, Bluetooth, …  No need to install and maintain wires » Reduces cost – important in offices, hotels, … » Simplifies deployment – important in homes, hotspots, …

There are no wires!

Peter A. Steenkiste

26

What is Hard about Wireless?

There are no wires!

 In wired networks links are constant, reliable

and physically isolated

» A 100 Mbs Ethernet always has the same properties » This is definitely not true for “54 Mbs” 802.11a  In wireless networks links are variable, error-

prone and share the ether with each other and

  • ther external, uncontrolled sources

» Link properties can be extremely dynamic

slide-14
SLIDE 14

Page 14

Peter A. Steenkiste

27

Wireless is a shared medium

 In wired communication,

signals are contained in a conductor

» Copper or fiber » Guides energy to destination » Protects signal from external signals  Wireless communication

uses broadcasting over the shared ether

» Energy is distributed in space » Signal must compete with many other signals in same frequency band

Hans Inge

Peter A. Steenkiste

28

Attenuation and Errors

 In wired networks error rate 10-10 or less » Wireless networks are far from that target  Signal attenuates with distance and is

affected by noise and competing signals

 Obstacles further attenuate the signal  Probability of a successful reception depends

  • n the “signal to interference and noise ratio”
  • the SINR

 More details later in the course

Hans Inge

slide-15
SLIDE 15

Page 15

Peter A. Steenkiste

29

How Do We Increase Network Capacity?

 Easy to do in wired networks:

simply add wires

» Fiber is especially attractive  Adding wireless “links”

increases interference.

» Frequency reuse can help … subject to spatial limitations » Or use different frequencies … subject to frequency limitations  The capacity of the wireless

network is fundamentally limited.

Hans Inge

Peter A. Steenkiste

30

Mobility Affects the Link Throughput

 Quality of the

transmission depends

  • n distance and
  • bstacles blocking the

“line of sight” (LOS)

» “Slow fading” – the signal strength changes slowly

 Reflections off

  • bstacles combined

with mobility can cause “fast fading”

» Very rapid changes in the signal » More on this later

 Hard to predict signal!

Hans Inge

slide-16
SLIDE 16

Page 16

Peter A. Steenkiste

31

How is Wireless Different?

Wired

 Physical link properties

are fixed and known during standardization

 Designed for low error

rates and throughput is fixed and known

 Datalink layer is simple

and optimized for the physical layer

 Internet was designed

assuming wires Wireless

 Physical link properties

can change a lot rapidly in unpredictable ways

 Error rates vary a lot

and throughput is very dynamic

 How do you design an

efficient datalink protocol?

 How well will higher

layer protocols work? The physical layer is the key!