petros kavassalis

23
1 Computer Networks and Communications [Δίκτυα Υπολογιστών και Επικοινωνίες] Lectures 8&9: Internet Protocols in Detail – TCP/IP Univ. of the Aegean Financial and Management Engineering Dpt Petros KAVASSALIS

Upload: eavan

Post on 24-Feb-2016

37 views

Category:

Documents


0 download

DESCRIPTION

Computer Networks and Communications [Δίκτυα Υπολογιστών και Επικοινωνίες] Lectures 8&9: Internet Protocols in Detail – TCP/IP Univ. of the Aegean Financial and Management Engineering Dpt. Petros KAVASSALIS. What you will learn in this course. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Petros KAVASSALIS

1

Computer Networks and Communications

[Δίκτυα Υπολογιστών και Επικοινωνίες]Lectures 8&9: Internet Protocols in Detail –

TCP/IPUniv. of the Aegean

Financial and Management Engineering Dpt

Petros KAVASSALIS

Page 2: Petros KAVASSALIS

<[email protected]> 2

What you will learn in this course

A set of fundamental concepts for understanding Data Networks and the Internet What is the Internet? Internet architecture and layers Internet applications and services New concepts in the evolution of the Internet The Internet goes Wireless…

Familiarization with the structure and organization of Digital Networks Business and Social Networks Electronic Markets and Online Feedback Mechanisms

Page 3: Petros KAVASSALIS

<[email protected]> 3

Who am I?

PhD in Economics and Management (Univ. Paris Dauphine & Ecole polytechnique)

Research experience Ecole polytechnique, Paris MIT Center of Technology Policy and Industrial Development, MIT

CTPID (MIT Internet Telecommunications Convergence Consortium)

Current positions Univ. of the Aegean (FME): Assoc. Professor RACTI: Director of ATLANTIS Group

Page 4: Petros KAVASSALIS

<[email protected]> 4

Communication tools

e-mail: pkavassalis [at] atlantis-group.gr Course web site: see fme website

Page 5: Petros KAVASSALIS

<[email protected]> 5

Course Textbook[http://books.google.gr/books?id=Pd-z64SJRBAC&dq=tanenbaum+networks&printsec=frontcover&source=bn&hl=el&ei=ml-dSfH9L4S2jAeJ5L3ZBQ&sa=X&oi=book_result&resnum=4&ct=result]

Page 7: Petros KAVASSALIS

<[email protected]> 7

Students evaluation

Class Participation (20%)

+ Assignments (20%)

+ Final Exam (60%)

Page 8: Petros KAVASSALIS

Reminder: Overview of the Internet

Petros KAVASSALIS <[email protected]> 8

The structure of the Internet is roughly hierarchical

Page 9: Petros KAVASSALIS

Reminder: A network architecture

Petros KAVASSALIS <[email protected]> 9

Page 10: Petros KAVASSALIS

Reminder: TCP/IP in practice

Petros KAVASSALIS <[email protected]> 10

Page 11: Petros KAVASSALIS

Operation of TCP/IP

Petros KAVASSALIS <[email protected]> 11

Page 12: Petros KAVASSALIS

Internet Transport Layer

Common layer shared by all applications Provides reliable delivery of data In same order as sent Commonly uses TCP

Example: Web browsing Uses also UDP (for real-time traffic)

Petros KAVASSALIS <[email protected]> 12

Page 13: Petros KAVASSALIS

Internet Transport Layer key role

Provide logical communication between app processes running on different hosts

Transport protocols run in end systems Send side: breaks app

messages into segments, passes to network layer

Receive side: reassembles segments into messages, passes to app layer

Two mail transport protocol available to apps Internet: TCP and UDP

Petros KAVASSALIS <[email protected]> 13

applicationtransportnetworkdata linkphysical

applicationtransportnetworkdata linkphysical

logical end-end transport

Page 14: Petros KAVASSALIS

Internet Transport Layer Protocols

Reliable, in-order delivery (TCP) Congestion control Flow control Connection setup

Unreliable, unordered delivery: UDP No-frills extension of “best-

effort” IP Services not available:

Delay guarantees Bandwidth guarantees

Petros KAVASSALIS <[email protected]> 14

applicationtransportnetworkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

applicationtransportnetworkdata linkphysical

logical end-end transport

Page 15: Petros KAVASSALIS

TCP header

Petros KAVASSALIS <[email protected]> 15

socketdoor

TC Psend buffer

T C Preceive buffer

socketdoor

segm en t

applica tionwrites data

applicationreads da ta

Page 16: Petros KAVASSALIS

UDP header

Petros KAVASSALIS <[email protected]> 16

Page 17: Petros KAVASSALIS

Internet Network Layer

Exchange of data between an end system and attached network

Concerned with issues like : Destination address provision Invoking specific services like priority Access to & routing data across a network link between two attached

systems Allows layers above to ignore link specifics

Petros KAVASSALIS <[email protected]> 17

Page 18: Petros KAVASSALIS

Internet Network Layer key role

Transport segment from sending to receiving host On sending side

encapsulates segments into datagrams

On receiving side, delivers segments to transport layer

Network layer protocols in every host, router Host: Creates datagrams

/ headers Router examines header

fields in all IP datagrams passing through it

Petros KAVASSALIS <[email protected]> 18

Page 19: Petros KAVASSALIS

Internet Network Layer in a nutshell

No call setup at network layer Routers: no state about end-to-end connections

no network-level concept of “connection” Packets forwarded using destination host address

packets between same source-dest pair may take different paths

Petros KAVASSALIS <[email protected]> 19

applicationtransportnetworkdata linkphysical

applicationtransportnetworkdata linkphysical

1. Send data 2. Receive data

Page 20: Petros KAVASSALIS

Internet Network Layer functionality

Forwarding Move packets from

router’s input to appropriate router output

Routing Determine route taken

by packets from source to destination

Petros KAVASSALIS <[email protected]> 20

applicationtransportnetworkdata linkphysical

applicationtransportnetworkdata linkphysical

networkdata linkphysical network

data linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysical

networkdata linkphysicalnetwork

data linkphysical

Page 21: Petros KAVASSALIS

Addressing requirements

Two levels of addressing required

Each host on a subnet needs a unique global network address IP address

Each application on a (multi-tasking) host needs a unique address within the host Port

Petros KAVASSALIS <[email protected]> 21

Page 22: Petros KAVASSALIS

IP header

Petros KAVASSALIS <[email protected]> 22

Page 23: Petros KAVASSALIS

IPv6 header

Petros KAVASSALIS <[email protected]> 23