cs412 introduction to computer networking & telecommunication

125
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Introduction

Upload: dino

Post on 13-Feb-2016

46 views

Category:

Documents


0 download

DESCRIPTION

CS412 Introduction to Computer Networking & Telecommunication. Introduction. Topics. Introduction Metric Units Network Hardware Network Software Reference Models Example Networks Standards and Standards Organizations. Introduction. First two decades of computing - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CS412 Introduction to  Computer Networking & Telecommunication

Chi-Cheng Lin, Winona State University

CS412 Introduction to Computer Networking &

Telecommunication

Introduction

Page 2: CS412 Introduction to  Computer Networking & Telecommunication

2

Topics Introduction Metric Units Network Hardware Network Software Reference Models Example Networks Standards and Standards

Organizations

Page 3: CS412 Introduction to  Computer Networking & Telecommunication

3

Introduction First two decades of computing

Highly centralized computer systems Now

A large number of SEPARATE but INTERCONNECTED computers

=> Computer networks

Page 4: CS412 Introduction to  Computer Networking & Telecommunication

4

What is Computer Network? An INTERCONNECTED collection of

AUTONOMOUS computersInterconnected: Able to EXCHANGE

INFORMATION via transmission mediaMedia: copper wire, fiber optics,

microwaves, communication satellitesAutonomous: no master/slave relation

NOT autonomous: One computer can control another one e.g., a large computer with remote printers

and terminals

Page 5: CS412 Introduction to  Computer Networking & Telecommunication

5

What is Telecommunication? What is data communication?

Exchange of data between two devices via some form of transmission media

Data are represented by bits – 0s and 1s

What is telecommunication?Exchange of information over

distance using electronic equipment

Page 6: CS412 Introduction to  Computer Networking & Telecommunication

6

What is Telecommunication? Components of data communication

Sender, receiver, medium, message, andProtocol: set of rules governing data

communication Key elements of a protocol

SyntaxStructure/format

SemanticsMeaning

TimingWhen and how fast

Page 7: CS412 Introduction to  Computer Networking & Telecommunication

7McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 1.1 Five components of data communication

Page 8: CS412 Introduction to  Computer Networking & Telecommunication

8

Why Studying CS412? The instructor looks nice … (Don’t bet

on it!) It is part of our daily life now The job market is good … (?) You want to understand concepts and

technologies of networking and telecomTheory and practice

It is one of the most drastically changing field in CS and you like challenges

It makes you knowledgeable in this field It is FUN!!

Page 9: CS412 Introduction to  Computer Networking & Telecommunication

9

Distributed System vs. Computer Network Distributed system

TRANSPARENCYA collection of independent computers

appear as a single coherent systemSingle model/paradigm to usersMiddleware on top of OSExample?

Computer networkNo such coherence, model, middlewareMachines visible to users

Users log onto remote machines

Page 10: CS412 Introduction to  Computer Networking & Telecommunication

10

Distributed System vs. Computer Network

A distributed system is a SOFTWARE system built on top of a network

Distinction between network and distributed systemSoftware (especially OS) rather than

hardware However, considerable overlap

between the two subjects

Page 11: CS412 Introduction to  Computer Networking & Telecommunication

11

Uses of Computer Networks Business applications

Resource sharingCommunication mediumE-commerce

Client-server modelClient requests, server performs & then

replies E.g., one or more file servers, many

clients

Page 12: CS412 Introduction to  Computer Networking & Telecommunication

12

Business Applications of Networks

A network with two clients and one server.

Page 13: CS412 Introduction to  Computer Networking & Telecommunication

13

Client-Server Model

1

2

3

Page 14: CS412 Introduction to  Computer Networking & Telecommunication

14

Uses of Computer Networks Home applications

Access to remote informationOn-line publishing, digital library, WWW

Person-to-person communicationEmail, instant messaging, peer-to-peer

communication, videoconferencing, Internet phone, E-learning

Interactive entertainment Video on demand (VOD), games

E-commerceHome shopping, electronic banking and

investment, on-line auction

Page 15: CS412 Introduction to  Computer Networking & Telecommunication

15

Home Network Applications (2) In peer-to-peer system there are

no fixed clients and servers.

Page 16: CS412 Introduction to  Computer Networking & Telecommunication

16

Mobile Users Notebook, PDA, cellular phone M-commerce Wireless networking and mobile

computing

Page 17: CS412 Introduction to  Computer Networking & Telecommunication

17

Metric Units The principal metric prefixes.

Page 18: CS412 Introduction to  Computer Networking & Telecommunication

18

Network Hardware By transmission technology

Broadcast links smaller, geographically localized networks

Point-to-point linkslarger networks

By scalePANLANMANWAN

Page 19: CS412 Introduction to  Computer Networking & Telecommunication

19

Classification by Scale

Page 20: CS412 Introduction to  Computer Networking & Telecommunication

20

Broadcast Network

A single communication channel shared by all machines on the network

Packets (short messages) sent by any machine are “received” by all the othersAddress field of packet: whom it is intended

Message transmissionUnicast: one sends, one receivesBroadcasting: one sends, all receiveMulticasting: one sends, a group receives

Page 21: CS412 Introduction to  Computer Networking & Telecommunication

21

Point-to-Point Networks Many connections between pairs of

machines Intermediate machines (called

routers) might have to be visited by a packet from source to destination – more than one path is possible

Routing algorithms are importantRouting: process of finding a path

from a source to the destination(s) in the network

Page 22: CS412 Introduction to  Computer Networking & Telecommunication

22

Local Area Network (LAN) Private-owned Networks Within a single building/campus Size: up to a few kilometers Characteristics

SizeRestricted by size worst-case transmission time bounded

and known in advance network management simplified

Page 23: CS412 Introduction to  Computer Networking & Telecommunication

23

LAN Characteristics

Transmission technologyMachines attached to a single cableSpeed/capacity (High): 10 - 100 Mbps,

Gbps Mbps/Gbps: Megabit/Gigabit per second 1 megabit=1,000,000 (not 220=1,048,576) bits

Delay (low): microseconds, nanosecondsErrors: very few

Page 24: CS412 Introduction to  Computer Networking & Telecommunication

24

LAN Characteristics

Topology – the way in which a network is laid outExamples: Bus, Ring

Bus Ring

Page 25: CS412 Introduction to  Computer Networking & Telecommunication

25McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 1.7 Categories of topology

Page 26: CS412 Introduction to  Computer Networking & Telecommunication

26McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 1.8 Fully connected mesh topology (for five devices)

Page 27: CS412 Introduction to  Computer Networking & Telecommunication

27McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 1.9 Star topology

Page 28: CS412 Introduction to  Computer Networking & Telecommunication

28McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 1.10 Bus topology

Page 29: CS412 Introduction to  Computer Networking & Telecommunication

29McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 1.11 Ring topology

Page 30: CS412 Introduction to  Computer Networking & Telecommunication

30

LAN - Topology Bus (linear cable)

Only one machine can transmit at a timeArbitration mechanism needed to resolve

conflicts when two or more computers want to transmit simultaneouslyCentralized or Distributed

Example: IEEE 802.3 (Ethernet):Bus-based broadcast network with

decentralized control operating at 10 Mbps to 10Gbps.

If two or more packets collide, each computer just waits a random time and tries again later.

Page 31: CS412 Introduction to  Computer Networking & Telecommunication

31

LAN - Topology Ring

Bits propagate around the ringArbitration mechanism is needed, tooExample: IEEE 802.5 (IBM Token

Ring)Ring-based LAN operating at 4 and 16

MbpsArbitration is based on “token”

Only token holder can transmit

Page 32: CS412 Introduction to  Computer Networking & Telecommunication

32

LAN - Channel Allocation Needed as all computers share one

communication pathway Static channel allocation

Divide up time into discrete intervalsRun a round robin algorithmAllow each machine to broadcast only

when its time slot comes upProblem: Wasting channel capacity

Page 33: CS412 Introduction to  Computer Networking & Telecommunication

33

LAN - Channel Allocation Dynamic channel allocation

CentralizedA central entity determines who goes

nextDecentralize

No central entityEach machine decides for itself to

transmit or notAlgorithms needed to resolve potential

chaos

Page 34: CS412 Introduction to  Computer Networking & Telecommunication

34

Metropolitan Area Network (MAN)

Covers city Examples

Cable TV networkIEEE 802.16 high-speed wireless

Internet access

Page 35: CS412 Introduction to  Computer Networking & Telecommunication

35McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 1.14 MAN

Page 36: CS412 Introduction to  Computer Networking & Telecommunication

36

Metropolitan Area Networks A metropolitan area network based

on cable TV.

Page 37: CS412 Introduction to  Computer Networking & Telecommunication

37

Wide Area Network (WAN) Country or continent Components

Host (end system) Machine running user (application)

programsCommunication subnet (subnet)

Connecting hostsCarrying messages from host to host

Page 38: CS412 Introduction to  Computer Networking & Telecommunication

38McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 1.15 WAN

Page 39: CS412 Introduction to  Computer Networking & Telecommunication

39

WAN - Subnet Components Transmission lines

Move bits between machines Switching elements

Specialized computers that connect two or more transmission lines

Determine out going line for incoming data

ROUTER

Page 40: CS412 Introduction to  Computer Networking & Telecommunication

40

WAN - Hosts and Subnet

: Host

: Router

H1

H2

R1 R2

R3 R4

R5 R6

Page 41: CS412 Introduction to  Computer Networking & Telecommunication

41

WAN - Architecture Contains numerous cables or

telephone lines Each cable connects a pair of routers Two routers must communicate

indirectly if they are not connected by a cable

There might be more than one route between two hosts and it might change from time to timeE.g., Route from H1 to H2

Page 42: CS412 Introduction to  Computer Networking & Telecommunication

42

WAN - Architecture An intermediate router in a WAN

Receives a packet in its entiretyQueues the packet until required

output line is freeForwards the packet

Subnet using the principle above is calledStore-and-forward or packet-switched

subnet

Page 43: CS412 Introduction to  Computer Networking & Telecommunication

43

Wide Area Networks A stream of packets from sender to

receiver.

Page 44: CS412 Introduction to  Computer Networking & Telecommunication

44

Topology – LANs vs WANs Local networks

Bus, Ring, StarTree

WANs typically irregular

Page 45: CS412 Introduction to  Computer Networking & Telecommunication

45

WAN - Broadcast Systems Satellite system

Each router has an antennaSometimes routers are connected to

a substantial point-to-point subnet, with some of them having a satellite antenna

Inherently broadcast

Page 46: CS412 Introduction to  Computer Networking & Telecommunication

46

Wireless Network System interconnection

Example: Bluetooth Wireless LANs

Easy to install IEEE Standard 802.11

Wireless WANsIEEE Standard 802.16

Page 47: CS412 Introduction to  Computer Networking & Telecommunication

47

Wireless NetworksBluetooth configuration Wireless

LAN

Page 48: CS412 Introduction to  Computer Networking & Telecommunication

48

Wireless Network Combinations of wired and

wireless networking (e.g., flying LAN)

Page 49: CS412 Introduction to  Computer Networking & Telecommunication

49

Home Network Categories Computers

Desktop PC, PDA, shared peripherals Entertainment

TV, DVD, VCR, camera, stereo, MP3 Telecomm

Telephone, cell phone, intercom, fax Appliances

Microwave, fridge, clock, furnace, aircon Telemetry

Utility meter, burglar alarm, babycam

Page 50: CS412 Introduction to  Computer Networking & Telecommunication

50

Internetwork What is internetwork?

A collection of interconnected networks "Internet" and "internet"

internet: internetworkInternet: the worldwide internetwork using

TCP/IP protocol suite Problem: Communication between

networks with different SW/HWSolution: Gateways

Machines connect different, incompatible networks

Connection and translation

Page 51: CS412 Introduction to  Computer Networking & Telecommunication

51McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 1.16 Internet today

Page 52: CS412 Introduction to  Computer Networking & Telecommunication

52

Network Software Old computer networks:

HW main concernSW afterthoughtNot working now!

Network SW is now highly structuredProtocol Hierarchies Implemented in hardware or firmware

Page 53: CS412 Introduction to  Computer Networking & Telecommunication

53

Protocol Hierarchies What is protocol?

Agreement between communication parties on HOW communication is processed

Layered architectureReduce design complexity- Lower layer offers

service to higher layerHiding implementation detailsLayer n on one machine talks to layer n on

anotherRules and conventions used in layer n’s talk:

Layer n protocol

Page 54: CS412 Introduction to  Computer Networking & Telecommunication

54

Protocol Hierarchies Peers

Entities comprising corresponding layers on different machines

Virtual communication using protocolPeer process abstraction make network design

becomes that of individual layers Physical communication

Sender: Data and control passed to layer below Data transmitted via physical mediaReceiver: Data and control passed to layer

above

Page 55: CS412 Introduction to  Computer Networking & Telecommunication

55

Layers, Protocols, and Interfaces

Virtual Communication

Physical Communication

Page 56: CS412 Introduction to  Computer Networking & Telecommunication

56

Protocol Hierarchies Interface between two adjacent

layers Defines primitive operations and

services a lower layer offers to the upper one

Minimizes amount of information passed between two layers

Simplifies replacement of implementationE.g., telephone lines satellite channels

Page 57: CS412 Introduction to  Computer Networking & Telecommunication

57

Protocol Hierarchies Network architecture

Set of layers and protocolsImplementation and interface

specification not included Protocol stack

A list of protocols used by a certain system, one protocol per layer

Page 58: CS412 Introduction to  Computer Networking & Telecommunication

58

Multilayer Communication - Example

Philosopher-translator-secretary architectureIt is ok if

Dutch is replaced by Finnish

fax is replaced by email

Page 59: CS412 Introduction to  Computer Networking & Telecommunication

59

Information Flow - Example Virtual communication for layer 5

Header: control information

Layer 1protocol00011100011100001110 … 00011100011100001110 …

Page 60: CS412 Introduction to  Computer Networking & Telecommunication

60

Key Design Issues for the Layers  

Sender/receiver identification mechanism Transmission direction modes

SimplexData only travel in one direction

Half-duplex Data can travel in either direction, but not

simultaneouslyFull-duplex

Data can travel in both directions simultaneously Number of logical channels and properties

Page 61: CS412 Introduction to  Computer Networking & Telecommunication

61

Key Design Issues for the Layers  

Error controlError-detectingError-correcting

Sequencing Flow control 

Needed for fast sender, slow receiverApproaches

Feedback mechanismTransmission rate agreement

Page 62: CS412 Introduction to  Computer Networking & Telecommunication

62

Key Design Issues for the Layers  

Message disassembling, transmitting, reassembling

MultiplexingThe process of combining signals from

multiple sources for transmission across a single data link

Multiple connections can share the link Routing

Selecting the best path for sending a packet from one point to another

Page 63: CS412 Introduction to  Computer Networking & Telecommunication

63

Connection-Oriented and Connectionless Services

Two basic types of servicesConnection-orientedConnectionless

Consider reliability …Reliable Connection-oriented

Unreliable Connectionless Note that: Connection Reliability

Page 64: CS412 Introduction to  Computer Networking & Telecommunication

64

Connection-Oriented Service A connection is established first,

then used, and then released when done.

Works like a pipe:Sender pushes data in at one endReceiver takes them out, often in the

same order, at the other end Analogy

Telephone system

Page 65: CS412 Introduction to  Computer Networking & Telecommunication

65

Connectionless Service No need to set up a connection

first Each message carrying full

destination address is routed independently of othersNo guarantees on the order

AnalogyPostal system

Page 66: CS412 Introduction to  Computer Networking & Telecommunication

66

Six Service Types

Page 67: CS412 Introduction to  Computer Networking & Telecommunication

67

Service Primitives Service is formally specified by a

set of primitives (e.g., OS’s system calls) available to users or entities

Five service primitives for implementing a simple connection-oriented service.

Page 68: CS412 Introduction to  Computer Networking & Telecommunication

68

Service Primitives Packets sent in a simple client-

server interaction on a connection-oriented network.

Page 69: CS412 Introduction to  Computer Networking & Telecommunication

69

Relationship of Services to Protocols

ServiceSet of primitives a layer provides to the

layer above itDefine WHAT operations

not HOW implemented Protocol

Set of rules governing format and meaning of message exchanged by peer entities within a layer

Used by entities to implement service definition

Page 70: CS412 Introduction to  Computer Networking & Telecommunication

70

Services to Protocols Relationship

The relationship between a service and a protocol.

Page 71: CS412 Introduction to  Computer Networking & Telecommunication

71

Relationship of Services to Protocols

Analogy: Object-oriented languages Service :: Object

Users do not know the implementation of a service

Protocol :: ImplementationThe protocol of the service is invisible to

usersDo you have to understand http

(hypertext transport protocol) before you can surf the Internet?

Page 72: CS412 Introduction to  Computer Networking & Telecommunication

72

Reference Models Two reference models will be

discussedOSI reference modelTCP/IP model

Page 73: CS412 Introduction to  Computer Networking & Telecommunication

73

OSI Reference Model ISO/OSI (Open Systems

Interconnection) Reference Model NOT a network architecture itself

Exact services and protocols are not specified

Just "what should be done" in each layerHowever, standards are produced for all

layers

Page 74: CS412 Introduction to  Computer Networking & Telecommunication

74

OSI Reference Model Seven layers

Layer 7: application layer Layer 6: presentation layer Layer 5: session layerLayer 4: transport layerLayer 3: network layerLayer 2: data link layerLayer 1: physical layer (lowest)

Diagram of OSI reference modelNote: this is one of the most important figures in

the whole book!!

Page 75: CS412 Introduction to  Computer Networking & Telecommunication

75Physical medium

Page 76: CS412 Introduction to  Computer Networking & Telecommunication

76

Page 77: CS412 Introduction to  Computer Networking & Telecommunication

77

Host A Host B

Subnet

Physical mediumEnd-to-End

Point-to-Point Point-to-Point Point-to-Point

Page 78: CS412 Introduction to  Computer Networking & Telecommunication

78

Physical Layer Transmitting raw bits (0s and 1s) Design issues

Representation of bitsHow is 0/1 represented?

Data rate: number of bits sent per secondHow long does a bit last?

Transmission modeMechanical, electrical, procedural

interfacesUnderlying physical transmission medium

Page 79: CS412 Introduction to  Computer Networking & Telecommunication

79

Data Link Layer Takes a raw transmission facility

and transforms it into a line (link) that appears free of undetected transmission errors to network layer

Basic functionBreaks up input data to data frames Transmits data framesProcesses acknowledgement frames

sent back from receiver

Page 80: CS412 Introduction to  Computer Networking & Telecommunication

80

Data Link Layer Responsibilities (cont’d)

Physical addressingFraming

creating and recognizing frame boundariesError control (adjacent nodes)

Errors: damaged, lost, duplicateFlow control (adjacent nodes)

Traffic regulation between fast sender and slow receiver

Medium access controlShared channel access control in broadcast

networks  

Page 81: CS412 Introduction to  Computer Networking & Telecommunication

81

Network Layer Subnet operation control Responsibilities

Logical addressingRouting

Static tablesDetermined at the start of conversationDynamic

Congestion controlQuality of serviceAccountingHeterogeneous network interconnection

Page 82: CS412 Introduction to  Computer Networking & Telecommunication

82

Transport Layer

End-to-end layerTalk to destination machine directly

(virtually)Layers 4 through 7 are end-to-endLayers 1 through 3 are node-to-node

Basic functionSplit data from session layer into smaller

unitsPass units to network layerEnsure units arrive correctly at the other end

Page 83: CS412 Introduction to  Computer Networking & Telecommunication

83

Transport Layer Determine services provided to

session layer (and ultimately to users)Error-free point-to-point channel that

delivers messages in the order in which they were sent

Transport of isolated messages w/o guarantee about order

Broadcasting Normally, a distinct network

connection is created for each transport connection required by session layer

Page 84: CS412 Introduction to  Computer Networking & Telecommunication

84

Transport Layer Responsibilities include

Service-point addressingWhich message belong to which

connection (application): Information in header   Needed as multiprogramming in a host

(End-to-end) Flow control Compare to the

(End-to-end) Error control Data Link layer

Page 85: CS412 Introduction to  Computer Networking & Telecommunication

85

Session layer Session establishment between

users on different machines Responsibilities

Dialogue controlDeciding who sends, and when

Token managementControl of same operation not to be

performed at the same time Synchronization  

Inserting checkpoints (checkpointing)

Page 86: CS412 Introduction to  Computer Networking & Telecommunication

Figure 3-11 from Forouzan’s 2/e

WCB/McGraw-Hill The McGraw-Hill Companies, Inc., 1998

Session Layer

Page 87: CS412 Introduction to  Computer Networking & Telecommunication

87

Presentation Layer Syntax/semantics of information Responsibilities

EncodingConvert from data representation used in

one host to the standard abstract data structure and back

EncryptionCompression

Page 88: CS412 Introduction to  Computer Networking & Telecommunication

88

Application Layer Provides interface and support for

services to users (human, software, robots)

Application servicesNetwork virtual terminal (telnet)File transferEmailNetwork managementHypertext transfer

Page 89: CS412 Introduction to  Computer Networking & Telecommunication

Figure 3-14 from Forouzan’s 2/e

WCB/McGraw-Hill The McGraw-Hill Companies, Inc., 1998

Summary of Layer Functions

Page 90: CS412 Introduction to  Computer Networking & Telecommunication

90

TCP/IP Reference Model Goals

InternetworkingFault toleranceFlexible architecture  

Four layers of TCP/IP Reference Model Host-to-network layerInternet layerTransport layerApplication layer

Page 91: CS412 Introduction to  Computer Networking & Telecommunication

91

Internet Layer Packet-switching, connectionless Packets injected to network

Independent travelOut-of-order arrival

AnalogyMail system

IP (Internet Protocol)Packet routingCongestion control

Page 92: CS412 Introduction to  Computer Networking & Telecommunication

92

Transport Layer Two end-to-end protocols

UDP (User Datagram Protocol)TCP (Transmission Control Protocol)

UDP (User Datagram Protocol)Unreliable, connectionlessWidely used for

client-server type request-reply queriesspeech, video

Page 93: CS412 Introduction to  Computer Networking & Telecommunication

93

Transport Layer TCP

Reliable connection-orientedIncoming byte stream (form

application layer) is fragmented into discrete messages and passed onto internet layer

Message is reassembled at destination

Flow controlAnalogyA B

Pipe

Page 94: CS412 Introduction to  Computer Networking & Telecommunication

94

Applications and Host-to-Network Layers

Application layerNo session and presentation layersTELNET, FTP, SMTP, DNS, NNTP, HTTP

  Host-to-network layer

Host has to connect to to the network using some protocol so it can send IP packets

Page 95: CS412 Introduction to  Computer Networking & Telecommunication

95

Initial TCP/IP Protocols and Networks

Page 96: CS412 Introduction to  Computer Networking & Telecommunication

96

OSI and TCP/IP Models Correspondence

OSI TCP/IP

7654321

ApplicationPresentation

SessionTransportNetwork

Data LinkPhysical

Application

TransportInternetHost-to-Network

Page 97: CS412 Introduction to  Computer Networking & Telecommunication

97

OSI and TCP/IP Models Similarities

Stack of independent protocolsLayer functionalityTransport layer Application layer

Page 98: CS412 Introduction to  Computer Networking & Telecommunication

98

Differences between OSI and TCP/IP Models

OSIDistinction between services, interfaces, and protocols

(perhaps the biggest contribution) Better Protocol-HiddenModel first, then protocols

Pro: No bias, more generalCon: Designers did not have

much experience with the subject a good idea of which functionality to put in which layer

No thought given to internetworking7 layersCommunication

Connection-Oriented and connectionless in network layerOnly connection-oriented in transport layer

Page 99: CS412 Introduction to  Computer Networking & Telecommunication

99

Differences between OSI and TCP/IP Models

TCP/IP:No clear distinction between services, interfaces,

and protocolsWorse protocol-hiddenProtocol first, then model

Pro: Protocols fit model perfectlyCon: Model does not fit any other protocol stacks (not

general)4 layersCommunication

Connectionless in network layerBoth in transport layer (good for request-response

protocols)

Page 100: CS412 Introduction to  Computer Networking & Telecommunication

100

Summary of Reference Models

OSIOSI model exceptionally useful for

discussing computer networksOSI protocols not popular

TCP/IPTCP/IP model practically nonexistentTCP/IP protocols widely used

Modified framework is used in the text

Page 101: CS412 Introduction to  Computer Networking & Telecommunication

101

Summary of Reference Models

Modified framework is used in the text

Page 102: CS412 Introduction to  Computer Networking & Telecommunication

102McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.3 Peer-to-peer processes

Page 103: CS412 Introduction to  Computer Networking & Telecommunication

103McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.4 An exchange using the Internet model

Page 104: CS412 Introduction to  Computer Networking & Telecommunication

104McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.5 Physical layer

Page 105: CS412 Introduction to  Computer Networking & Telecommunication

105McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

The physical layer is responsible for transmitting individual bits from one

node to the next.

Note:Note:

Page 106: CS412 Introduction to  Computer Networking & Telecommunication

106McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.6 Data link layer

Page 107: CS412 Introduction to  Computer Networking & Telecommunication

107McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

The data link layer is responsible for transmitting frames from

one node to the next.

Note:Note:

Page 108: CS412 Introduction to  Computer Networking & Telecommunication

108McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.7 Node-to-node delivery

Page 109: CS412 Introduction to  Computer Networking & Telecommunication

109McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Example 1Example 1

In Figure 2.8 a node with physical address 10 sends a frame to a node with physical address 87. The two nodes are connected by a link. At the data link level this frame contains physical addresses in the header. These are the only addresses needed. The rest of the header contains other information needed at this level. The trailer usually contains extra bits needed for error detection

Page 110: CS412 Introduction to  Computer Networking & Telecommunication

110McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.8 Example 1

Page 111: CS412 Introduction to  Computer Networking & Telecommunication

111McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.9 Network layer

Page 112: CS412 Introduction to  Computer Networking & Telecommunication

112McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

The network layer is responsible for the delivery of packets from the

original source to the final destination.

Note:Note:

Page 113: CS412 Introduction to  Computer Networking & Telecommunication

113McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.10 Source-to-destination delivery

Page 114: CS412 Introduction to  Computer Networking & Telecommunication

114McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Example 2Example 2

In Figure 2.11 we want to send data from a node with network address A and physical address 10, located on one LAN, to a node with a network address P and physical address 95, located on another LAN. Because the two devices are located on different networks, we cannot use physical addresses only; the physical addresses only have local jurisdiction. What we need here are universal addresses that can pass through the LAN boundaries. The network (logical) addresses have this characteristic.

Page 115: CS412 Introduction to  Computer Networking & Telecommunication

115McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.11 Example 2

Page 116: CS412 Introduction to  Computer Networking & Telecommunication

116McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.12 Transport layer

Page 117: CS412 Introduction to  Computer Networking & Telecommunication

117McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

The transport layer is responsible for delivery of a message from one process

to another.

Note:Note:

Page 118: CS412 Introduction to  Computer Networking & Telecommunication

118McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.12 Reliable process-to-process delivery of a message

Page 119: CS412 Introduction to  Computer Networking & Telecommunication

119McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Example 3Example 3

Figure 2.14 shows an example of transport layer communication. Data coming from the upper layers have port addresses j and k (j is the address of the sending process, and k is the address of the receiving process). Since the data size is larger than the network layer can handle, the data are split into two packets, each packet retaining the port addresses (j and k). Then in the network layer, network addresses (A and P) are added to each packet.

Page 120: CS412 Introduction to  Computer Networking & Telecommunication

120McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.14 Example 3

Page 121: CS412 Introduction to  Computer Networking & Telecommunication

121McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.15 Application layer

Page 122: CS412 Introduction to  Computer Networking & Telecommunication

122McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

The application layer is responsible for providing services to the user.

Note:Note:

Page 123: CS412 Introduction to  Computer Networking & Telecommunication

123McGraw-Hill ©The McGraw-Hill Companies, Inc., 2004

Figure 2.16 Summary of duties

Page 124: CS412 Introduction to  Computer Networking & Telecommunication

124

Example Networks The Internet Connection-Oriented Networks

X.25, Frame Relay, and ATM Ethernet Wireless LANs: 802:11

Page 125: CS412 Introduction to  Computer Networking & Telecommunication

125

Standards and Standards Organizations Why standards?

Categoriesde factode jure

OrganizationsITU-T (formerly CCITT)ISOANSIIEEEIETFATM Forum