+ All Categories
Home > Documents > ECSE-4670: Computer Communication Networks (CCN) Introduction

ECSE-4670: Computer Communication Networks (CCN) Introduction

Date post: 30-May-2018
Category:
Upload: uflilla
View: 235 times
Download: 0 times
Share this document with a friend
50
Rensselaer Polytechnic Institute Shivkumar Kalvanaraman, Biplab Sikdar 1 ECSE-4670: Computer Communication Networks (CCN) Introduction Shivkumar Kalyanaraman Biplab Sikdar [email protected] [email protected]  Adapted in part from S.Keshav (Cornell), Peterson (Uarizona)
Transcript
Page 1: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 1/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

1

ECSE-4670: Computer 

Communication Networks

(CCN)

IntroductionShivkumar Kalyanaraman Biplab Sikdar 

[email protected] [email protected]

 Adapted in part from S.Keshav(Cornell), Peterson (Uarizona)

Page 2: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 2/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

2

Overview

• Syllabus, administratrivia

• Networking: An Overview of 

Ideas and Issues

Page 3: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 3/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

3

Who’s Who 

•Instructors:  – Shiv Kalyanaraman; kalyas ; x8979

 – Biplab Sikdar; sikdab ; x6664

Course secretary: (on-campus) – Jeanne Denue-Grady: JEC 6049 ; x6313

• PDE/RSVP Point-of-contact: – Kari Lewick; CII 4011; x2347

• TAs:  – G.Liu, H. Yang, Y. Pei (PDE), S. Raghunath

(PDE)

Page 4: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 4/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

4

Web Resources

• WebCT Course Web Site: –http://webct.rpi.edu 

 – (backup)

http://www.ecse.rpi.edu/Homepages/shivkuma/teaching/fall2001/index.html 

• WebCT: bulletin board, video

streams, homework drop-box etc• Text book Web Site:

http://www.awl.com/kurose-ross 

Page 5: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 5/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

5

Course Description Highlights

• Syllabus:

 – Networking layers: application, transport,network, link

Issues: application models,multiplexing, reliability, flow/congestioncontrol, error detection/correction,multiple access etc

 –Network Modeling: Elementary probability,queuing theory, analysis of a router queue,network of queues, LAN performance

Page 6: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 6/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

6

Course Description Highlights

(Continued)•

Lectures• Informal quizzes: Every two weeks

• WebCT bulletin board: Post your 

questions! TAs monitor it daily.• WebCT: Grades, papers, RFCs, Internet

drafts… 

• 2 Labs: Transport/Network layers {20 pts}

• 6 Homeworks: {30 pts}

• 3 exams: 15 pts, 15 pts, 20 pts: {50pts}

Page 7: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 7/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

7

Prerequisites • Background in elementary probability 

 – Probabi l i ty for Eng ineer ing App l icat ions,ECSE-4500 , Disc rete st ructu res, CSCI-4320, or Model ing and Analysis o f Uncertaini ty , ENGR- 2600  

• Knowledge of basic computer organization  – ECSE-2660 Compu ter Arch itectu re, Networks and Operat ing Systems or CSCI-2500 Compu ter Organization  

• C programming knowledge

• If you do not have the required prerequisites, you must drop the course and take it later 

(next year).

Page 8: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 8/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

8

Still trying to get into the

course ?

• Do you have the pre-requisites ?

• Please submit course add form to coursesecretary: Jeanne, JEC 6049 by tomorrow

(Wed, Aug 29th), noon time (12 pm).• Depending upon the number of people who

drop the class, space available, TA resourcesavailable, we will add more students.

 – Decisions to be emailed to you by Jeanne.

 – Make sure you mention your email addressto her.

Page 9: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 9/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

9

Answers to FAQ

• All homeworks & labs due at thebeginning of the class indicated on thecourse calendar 

 –

Up to one late submission: no penalty – Beyond that 10% penalty: only if 

submitted before solutions are posted.

• Exams are open-book and extremely time

limited.• Exams consist of design qns, numerical,

true-false, and short answer questions.

Page 10: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 10/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

10

Answers to FAQ

 – Focus will be on conceptualunderstanding, and problem-solving

skill.

Labs are based upon the programmingassignments suggested in chap 3 and 4 of 

the textbook

• Informal quizzes will be given for your 

benefit once in 2-3 weeks to recap/testrecently covered material and reading

assignments. No grading.

Page 11: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 11/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

11

Information, Computers,

Networks

• Information: anything that is represented

in bi ts  

 – Form (can be represented as bits) vs

 – Substance  (cannot be represented as bits)

• Properties:

 – Infinitely replicable

 – Computers can “  manipulate”   information

 – Networks create “  access”   to information

Page 12: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 12/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

12

Networks

• Potential of networking:

 –move bits everywhere, cheaply , and

with desired performance

characteristics

 –Break the space barrier for 

information 

• Network provides “connectivity” 

Page 13: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 13/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

13

What is “Connect iv i ty ” ? 

• Direct or indirect access to every

other node in the network

• Connectivity is the magic needed to

communicate if you do not have a

direct pt-pt physical link. – Tradeoff : Performance character ist ics worse 

than true phys ical l ink! 

Page 14: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 14/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

14

Connectivity.

• Building Blocks – links: coax cable, optical fiber...

 – nodes: general-purpose workstations...

• Direct connectivity:

 – point-to-point

 – multiple access

Page 15: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 15/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

15

Connectivity..

• Indirect  Connectivity

 – switched networks

=> switches 

 – inter-networks

=> routers

Page 16: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 16/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

16

Connectivity … • Internet:

 – Best-effort 

(no perform ance guarantees) 

 –

Packet-by-packet  

• A pt-pt physical

link: – Always-connected 

 – Fixed bandw idth 

 – Fixed delay 

 – Zero-j i tter  

Page 17: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 17/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

17

Point-to-Point Connectivity

• Physical layer: coding, modulation etc

• Link layer needed if the:

 –

link is shared between apps (framing,medium access control, multiplexing)

 – link is unreliable (reliability)

 – link is used sporadically and traffic can

flood receivers (flow control)• No need for p rotoco l concepts like

addressing, names, routers, hubs,forwarding, filtering … 

A B

Page 18: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 18/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

18

Connecting N users: Direct ly ...

Bus : broadcast, collisions, mediaaccess control

• Fu l l mesh : Cost vs simplicity

. . .

Full meshBus

Address concept needed if we want thereceiver alone to consume the packet!

Page 19: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 19/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

19

List of Problems (so far)

• Topologies

• Framing

• Error control

• Flow control

• Multiple access –How to share a wire

Page 20: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 20/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

20

How to build Scalable

Networks? 

• Scaling: system allows the increase of a

key parameter. Eg: let N increase…

 – Inef f ic iency l imi ts scal ing  … 

• Direct connectivity is ineff ic ient &

hence does not scale

 – Mesh: ineff ic ient in terms of # of links

 – Bus architecture: 1 expensive link, N cheap

links. Ineff ic ient in bandwidth use

Page 21: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 21/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

21

Filtering, forwarding … 

• Filtering: choose a subset of elements

from a set – Fil ter ing is the key to eff ic iency & scal ing 

• Forwarding: actually sending packets toa filtered subset of link/node(s)

 – Packet sent to one link/node => efficient

• Solution: Build nodes whichfilter/forward and connect indirectly => “switches” & “routers” 

Page 22: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 22/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

22

Connecting N users: Indirect ly  

Star: One-hop path to any node,reliability, forwarding function

• “Switch” S can filter and forward!

 –Switch may forward multiple pkts inparallel for additional efficiency!

Star    S

Page 23: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 23/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

23

Connecting N users: Indirect ly  … 

Ring: Reliability to link failure,near-minimal links

• All nodes do “forwarding” and

“filtering”

Ring

Page 24: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 24/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

24

RingStar 

   S

Tree

Topologies: Indirect Connectivity

Page 25: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 25/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

25

Inter-Networks: Netwo rks o f 

Networks 

= Internet

…  … 

…  … 

Our goal is to design this black box on the right

Page 26: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 26/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

26

Inter-Networks: Networks of 

Networks

• Internetworking involves twofundamental problems: heterogeneity 

and scale 

• Concepts: – Translation, overlays, address & name resolution,

fragmentation: to handle heterogeneity  

 – Hierarchical addressing, routing, naming, address

allocation, congestion control: to handle scal ing 

• Covered in more detail in "Internet Protocols“

course

Page 27: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 27/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

27

Additions to Problem List

• Fragmentation

• Switching, bridging,

routing• Naming, addressing

• Congestion control,

traffic management• Reliability

Page 28: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 28/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar 

28

How to do system design ?

• Eg goal: Design an Inter-network…

• Resources:  

 – Space

 – Time

 – Computation – Money

 – Labor 

• Design: tradeoff cheaper resourcesagainst expensive ones to meet goals. 

Page 29: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 29/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  29

Building blocks: Mult ip lexing 

• Multiplexing = sharing – Trades time and space for money

 – Cost : waiting time, buffer space & packet loss

 – Gain : Money => Overall system costs less

Page 30: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 30/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  30

Statistical Multiplexing

• Reduce resource requirements by exploi t ing stat is t ical know ledge of the system.

 – Eg: average rate <= service rate <= peak rate

 –If service rate < average rate, then systembecomes unstable!!

• First design to ensure system stability!!

 –

Then, for a stable multiplexed system:• Gain = peak rate/service rate.

• Cost : buffering, queuing delays, losses.

Page 31: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 31/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  31

Stability of a Multiplexed SystemAverage Input Rate > Average Output Rate

=> system is unstable!

How to ensure stability ?

1. Reserve enough capacity so that

demand is less than reserved capacity

2. Dynamically detect overload and adapt

either the demand or capacity to resolve

overload

Page 32: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 32/50

Page 33: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 33/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  33

What’s a performance t radeoff ?

• La/R ~ 0: averagequeuing delay small

•La/R -> 1: delaysbecome large

La/R > 1: average delayinfinite (service degrades unboundedly => instabi l i ty )!

Page 34: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 34/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  34

Example Design: Circui t -Switching 

 –

Divide link bandwidthinto “pieces” 

 – Reserve pieces onsuccessive links and

tie them together toform a “c i rcui t ” 

 – Map traffic into thereserved circuits

 – Resources wasted if unused: expensive .

 – Mapping can be done without “headers”.

 – Everything inferred from timing.

Circui t -swi tching : A form of multiplexing

Page 35: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 35/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  35

Example Design: Packet-Switching 

 –Chop up data (notlinks!) into “  packets”

• Packets: data +

meta-data (header)

 –“Switch” packets atintermediate nodes

•  Store-and-forward  if bandwidth is notimmediately

available.

Bandwidth division

into “pieces” 

Dedicated allocation

Resource reservation

Packet-sw i tch ing: Ano ther form of m ul t ip lex ing: 

Page 36: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 36/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  36

Packet Switching

C 10 MbsEthernet 

1.5 Mbs 

45 Mbs 

D  E 

statistical multiplexing 

queue of packets

waiting for outputlink 

Cost: self-descriptive header per-packet,

buffering and delays for applications.

Need to either reserve resources or 

dynamically detect/adapt to overload for stability

Page 37: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 37/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  37

Summary of System Design Ideas

• Multiplexing

• Statistical Multiplexing

• Stability andperformance tradeoffs

• Circuit switching

• Packet switching

Page 38: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 38/50

Page 39: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 39/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  39

Analogy: Organization of air travel

• Protocols: a series of functionsperformed at different locations

ticket (purchase)

baggage (check)

gates (load)

runway takeoff

airplane routing

ticket (complain)

baggage (claim)

gates (unload)

runway landing

airplane routing

airplane routing

Organization of air travel: a dif feren t

Page 40: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 40/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  40

Organization of air travel: a dif feren t 

view 

Layers: each layer implements a service  – via its own internal-layer actions

 – relying on services provided by layer below

ticket (purchase)

baggage (check)

gates (load)

runway takeoff

airplane routing

ticket (complain)

baggage (claim)

gates (unload)

runway landing

airplane routing

airplane routing

interface

Page 41: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 41/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  41

Layered air travel: services 

Counter-to-counter delivery of person+bags

baggage-claim-to-baggage-claim delivery

people transfer: loading gate to arrival gate

runway-to-runway delivery of plane

airplane routing from source to destination

Similarly, we organize network protocols

into a bunch of layers!

Page 42: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 42/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  42

Distr ibuted implementation of layers

ticket (purchase)

baggage (check)

gates (load)

runway takeoff

airplane routing

ticket (complain)

baggage (claim)

gates (unload)

runway landing

airplane routing

airplane routing

   D  e  p  a  r   t   i  n  g

  a   i  r  p  o  r   t

  a  r  r   i  v   i  n  g

  a   i  r  p  o  r   t

intermediate air traffic sites 

airplane routing airplane routing

Page 43: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 43/50

Rensselaer Polytechnic InstituteShivkumar Kalvanaraman, Biplab Sikdar  43

Pro tocol Imp lementat ions 

• Are building blocks of a network architecture

• Each protocol object has two differentinterfaces

 – service interface : defines operations on this

protocol – peer-to-peer in terface : defines messages

exchanged with peer 

service interface 

 peer interface 

Li+1 L

i+1

Li

Li

Page 44: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 44/50

Rensselaer Polytechnic Institute

Shivkumar Kalvanaraman, Biplab Sikdar 

44

Reference Models for Layering

 Application

Presentation

Session

Transport

Network

Datalink

Physical

 Application

Transport

Internetwork

Host to

Network

FTP

TCP

IP

Ether 

net

Telnet HTTP

UDP

Packet

Radio

Point-to-

Point

TCP/IP Model OSI Ref ModelTCP/IP Protocols

“Top-down” approach means we will first learn the

application layer and then learn about lower layers

Page 45: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 45/50

Rensselaer Polytechnic Institute

Shivkumar Kalvanaraman, Biplab Sikdar 

45

Internet protocol stack• application: supporting

network applications – ftp, smtp, http

• transport: host-host datatransfer  –

tcp, udp• network: routing of datagrams

from source to destination – ip, routing protocols

• link: data transfer betweenneighboring network elements – ppp, ethernet

• physical: bits “on the wire” 

application

transport

network

link

physical

Page 46: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 46/50

Rensselaer Polytechnic Institute

Shivkumar Kalvanaraman, Biplab Sikdar 

46

Layering: logical  communication

applicationtransportnetwork

linkphysical

applicationtransportnetwork

linkphysical

application

transportnetworklink

physical

application

transportnetworklink

physical

network

linkphysical

data 

data 

E.g.: transport• take data from

app

• addaddressing,reliability checkinfo to form“datagram” 

• send datagram

to peer • wait for peer to

ack receipt

• analogy: postoffice

data 

transport 

transport 

ack 

Page 47: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 47/50

Rensselaer Polytechnic Institute

Shivkumar Kalvanaraman, Biplab Sikdar 

47

Layering: phys ica l communication

applicationtransportnetwork

linkphysical

applicationtransportnetwork

linkphysical

application

transportnetwork

linkphysical

application

transportnetwork

linkphysical

networklink

physical

data 

data 

Page 48: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 48/50

Rensselaer Polytechnic Institute

Shivkumar Kalvanaraman, Biplab Sikdar 

48

Protocol layering and data

Each layer takes data from above

• adds header information to createnew data unit (“encapsulation”) 

• passes new data unit to layer below 

applicationtransportnetwork

linkphysical

applicationtransportnetwork

linkphysical

source destination

Ht 

Ht Hn 

Ht Hn Hl 

Ht 

Ht Hn 

Ht Hn Hl 

message 

segment 

datagram 

frame 

D i P i

Page 49: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 49/50

Rensselaer Polytechnic Institute

Shivkumar Kalvanaraman, Biplab Sikdar 

49

Design Perspectives

• Network users: services that their 

appl icat ion s need , e.g., guarantee thateach message it sends will be deliveredwithout error within a certain amount of time

• Network designers: cost-effect ive design  e.g., that network resources are efficientlyutilized and fairly allocated to differentusers

• Network providers: system that is easy toadm inis ter and manage e.g., that faultscan be easily isolated and it is easy toaccount for usage

Page 50: ECSE-4670: Computer Communication Networks (CCN) Introduction

8/14/2019 ECSE-4670: Computer Communication Networks (CCN) Introduction

http://slidepdf.com/reader/full/ecse-4670-computer-communication-networks-ccn-introduction 50/50

Rensselaer Polytechnic Institute 50

Summary

• Administratrivia

• Networks, connectivity, topologies … 

• Pot Pourri of networking concepts

and problems to be explored in this

course ...


Recommended