Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda...

19
Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University

Transcript of Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda...

Page 1: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

Upper OSI Layers

Lecture 10, May 7, 2003

Mr. Greg Vogl

Data Communications and Networks

Uganda Martyrs University

Page 2: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

2

OSI Layers and Protocols

Page 3: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

3

Functions of Transport Layer

• End-to-end reliability (time to live counter)

• Packet sequencing (numbering, resend)

• Message segmentation/assembly (max. size)

• Flow control (ack, wait)

• Error detection/correction (checksum/CRC)

• Addressing (network, node, process)

• Security (encryption keys, user/password)

Page 4: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

4

Reliability and packet sequencing

• Time-to-live counter: no. of hops or secs.– When counter reaches 0, discard packet– Keeps a packet from moving forever

• Sequence numbers in transport header– Used to check if packets are missing– Receiver sends ack of received packets– Missing packets are resent– In connectionless sessions, restore packet order

Page 5: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

5

Flow and error control

• Flow control– Ack is needed after sending some messages– If receiver’s buffer fills, tell sender to wait– Rate control depends on source and destination

processing speed

• Error control– checksum in header– in addition to error checking in lower layers

Page 6: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

6

Transport Control Protocol

• Connection-based; full duplex– Set up, manage, close a virtual connection– Messages transferred as stream of bytes

• Sequenced delivery• Flow control

– Sliding window of acks

• Error detection and recovery; reliable• Port-level addressing

Page 7: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

7

TCP Segment

Page 8: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

8

TCP Ports

• Client and server processes communicate– network + host + port = unique process address

• Server uses well known port address 0-1023– FTP-21, Telnet-23, SMTP-25, HTTP-80, etc.– No need to include port number in URL

• http://www.w3.org:80 = http://www.w3.org

• Client uses any unused port• Handshake sets up source/dest port numbers

Page 9: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

9

User Datagram Protocol

• Connectionless, no connections like IP• Uses ports much like TCPLower overhead, higher speedNo reliability/ack• Used for non-critical messages; good for LANs

– MS Messenger Service, BOOTP, DHCP, RIP

• Higher levels manage delivery and reliability– e.g. NFS, use of timeout counters

Page 10: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

10

UDP Datagram

Page 11: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

11

Functions of Session Layer

• Establishes sessions between services• Synchronises and performs naming services• Example protocols:

– Dynamic Host Configuration Protocol (DHCP)– Bootstrap Protocol (BOOTP)– Domain Name Service (DNS)– Network Basic Input Output System (NetBIOS)– Remote Procedure Call (RPC)

Page 12: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

12

Dynamic Host Configuration Protocol

• Server assigns IP number to a computer

• Client obtains IP number automaticallyUser can move PC without involving adminGood for portable users

• Can also provide IP of local router, DNS

• Microsoft helped define DHCP– Based on BOOTP (for diskless workstations)

Page 13: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

13

Domain Name Service

• Translates IP numbers host names– E.g. 207.46.230.229 microsoft.com Easier to remember names than IP numbers– Uses: both providing and receiving servicesLocal control, available to all, fast, robust

• DNS servers keep a distributed database– Static hosts files would be too big to maintain– Web browsers and mail servers use DNS server

Page 14: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

14

Top-Level Domains

• .com: commercial/business/for profit

• .edu: educational

• .gov: US government

• .mil: US military

• .net: service providers, online organisations

• .org: nonprofits, associations, societies

• .ug, .us, .ca, etc.: country codes

Page 15: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

15

DNS Database Structure

• Tree structure with final “.” to indicate root

• Top-level domain names have 2-3 letters

• First-level name is the organisation name

• Second and third levels used by large org’s– home.umu.ac.ug is a subdomain of umu.ac.ug

• Each domain name has at least 1 IP number

• DNS servers: Win2000 Server, Unix BIND

Page 16: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

16

Network Basic Input/Output System

• The first Windows networking technology– Designed as API for small peer-peer LANs

• Windows now uses NBF and/or NetBT– NetBEUI has become a NetBIOS Frame (NBF)– NetBIOS routed in TCP/IP packets (NetBT)

• Uses Windows Internet Name Service– with DNS, resolves NetBIOS resource names

Page 17: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

17

Remote Procedure Call

• One host’s program executes another’s code

• Client requests to execute code on server

• A result message is returned to the caller

• Used to implement client-server computing

• Developed by Sun, several implementations

• Developers write communications code for:– authentication, sessions, errors, custom services

Page 18: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

18

Functions of Presentation Layer

• Network characters specific platforms• Data compression, encoding, encryption• Network shell

– Direct local and network requests appropriatelyLocal and network resources treated the sameApplication development is easier– e.g. Microsoft Redirector– e.g. Sun eXternal Data Representation for RPC

Page 19: Upper OSI Layers Lecture 10, May 7, 2003 Mr. Greg Vogl Data Communications and Networks Uganda Martyrs University.

May 7, 2003 Data Communications and Networks: Lecture 10: Upper OSI Layers

19

Important Application Protocols

• File Transfer Protocol (FTP), TFTP, NTP

• Telnet; rlogin, rcp, rexec, rsh; ssh

• Simple Mail Transfer Protocol

• “Simple” Network Management Protocol

• (Secure) Hypertext Transfer Protocol

• Network File System (Sun remote mount)

• X Window System (Unix client-server GUI)