34
1 Computer Networks DA2402

1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

Embed Size (px)

Citation preview

Page 1: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

1

Computer NetworksDA2402

Computer NetworksDA2402

Page 2: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

2

Chapter 1-3Chapter 1-3

Introduction

Page 3: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

3

Topic and ScopeTopic and Scope

Computer networks and internets: an overview of concepts, terminology, and technologies that form the basis for digital communication in private corporate networks and the global Internet.

Page 4: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

4

You Will LearnYou Will Learn

TerminologyCommunication basics

Media and signalsAsynchronous and synchronous communicationRelationships among bandwidth, throughput, and

noiseFrequency-division and time-division

multiplexing

Page 5: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

5

You Will Learn (continued)You Will Learn (continued)Networking and network technologies

Packet switchingFraming, parity, and error detectionLocal and wide area technologiesNetwork addressingConnection and extension (repeaters, bridges, hubs, switches)Topologies and wiring (star, ring, bus)Next-hop forwardingShortest path computationMeasures of delay and throughputProtocol layers

Page 6: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

6

You Will Learn (continued)You Will Learn (continued)Internets and Internetworking

Motivation and conceptInternet Protocol (IP) datagram format and addressing Internet routers and routingAddress binding (ARP)Internet control messages (ICMP)User Datagram Protocol (UDP)Transmission Control Protocol (TCP)Protocol ports and demultiplexing

Page 7: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

7

You Will Learn (continued)You Will Learn (continued)

Network applicationsClient-server paradigmDomain name system (DNS)File transfer (FTP)Remote login (TELNET)Email transfer (SMTP)

Page 8: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

8

What You Will NOT LearnWhat You Will NOT Learn

Commercial aspectsProductsVendorsPricesNetwork operating systems

How to purchase/configure/operate

Page 9: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

9

Background RequiredBackground Required

Ability to program (in Java)Familiarity with basic tools

Text editorCompiler / linker / loader

Page 10: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

10

Background Required (continued)

Background Required (continued)

Basic knowledge of operating systemsTerminologyFunctionalityProcesses and concurrent processing

Desire to learn

Page 11: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

11

Motivation for NetworkingMotivation for Networking

Information accessInteraction among cooperative application

programsResource sharing

Page 12: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

12

Practical ResultsPractical Results

EmailFile transfer / accessWeb browsingRemote login / execution The Internet

Page 13: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

13

What a Network IncludesWhat a Network Includes

Transmission hardwareSpecial-purpose hardware devices

Interconnect transmission mediaControl transmissionRun protocol software

Protocol softwareEncodes and formats dataDetects and corrects problems

Page 14: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

14

What a Network DoesWhat a Network Does

Provides communication that isReliableFairEfficientFrom one application to another

Page 15: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

15

What a Network Does (continued)

What a Network Does (continued)

Automatically detects and correctsData corruptionData lossDuplicationOut-of-order delivery

Automatically finds optimal path from source to destination

Page 16: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

16

Network ProgrammingNetwork Programming

Network allows arbitrary applications to communicate

Programmer does not need to understand network technologies

Network facilities are accessed through an Application Program Interface

Page 17: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

17

Basic Paradigm for Internet Communication

Basic Paradigm for Internet Communication

Establish contactExchange data (bi-directional)Terminate contact

Page 18: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

18

Establishing ContactEstablishing Contact

Performed by pair of applicationsOne application waits for contact (called

server)Other application initiates contact (called

client)

Page 19: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

19

Identifying a Waiting Application

Identifying a Waiting Application

Conceptually two items specifiedComputerApplication on that computer

TerminologyComputer identified by domain nameApplication identified by program name

Page 20: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

20

Representations and Translations

Representations and Translations

Humans use names such ascomputer: www.netbook.cs.purdue.eduapplication: ftp

Network protocols require binary valuesLibrary routines exist to translate from names

to numbers

Page 21: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

21

Example APIExample API

Page 22: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

22

Example #1: EchoExample #1: Echo

Useful for network testingServer returns exact copy of data sentUser on computer X runs

echoserver 22000User on another computer runs

echoclient X 22000

Page 23: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

23

Example #2: ChatExample #2: Chat

Miniature version of Internet chat serviceAllows two users to communicateUser on computer X runs

chatserver 25000User on another computer runs

chatclient X 25000

Page 24: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

24

Example Application: Web Server

Example Application: Web Server

User on computer X runs

webserver 27000User on another computer runs browser and

enters URL:

http://X:27000/index.html

Page 25: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

25

Example Code Using API: Echoserver

Example Code Using API: Echoserver

Page 26: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

26

Echoserver (2 of 2)Echoserver (2 of 2)

Actually works on the InternetAPI calls replace conventional I/ONo networking knowledge required

Page 27: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

27

Example Code Using API: Webserver

Example Code Using API: Webserver

Page 28: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

28

Webserver (2 of 6)Webserver (2 of 6)

Page 29: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

29

Webserver (3 of 6)Webserver (3 of 6)

Page 30: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

30

Webserver (4 of 6)Webserver (4 of 6)

Page 31: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

31

Webserver (5 of 6)Webserver (5 of 6)

Page 32: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

32

Webserver (6 of 6)Webserver (6 of 6)

Page 33: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

33

SummarySummary

Studying networks is important becauseThe world is interconnectedApplications now operate in a distributed

environmentThis course

Covers networking and internetworkingExplains the mysteryWill be hard work

Page 34: 1 Computer Networks DA2402. 2 Chapter 1-3 Introduction

34

Summary (continued)Summary (continued)

Computer networksDeliver data from source to destinationAutomatically find optimal pathsHandle problems that occur

We will learn how