Basic Network Abstraction A process can create endpoints, used to - - PowerPoint PPT Presentation

basic network abstraction
SMART_READER_LITE
LIVE PREVIEW

Basic Network Abstraction A process can create endpoints, used to - - PowerPoint PPT Presentation

Basic Network Abstraction A process can create endpoints, used to exchange messages with other processes Networking Each endpoint has a unique address A message is a byte array Processes can: receive messages on endpoints send messages on


slide-1
SLIDE 1

Networking

2

Basic Network Abstraction

A process can create “endpoints”, used to exchange messages with other processes Each endpoint has a unique address A message is a byte array Processes can:

receive messages on endpoints send messages on endpoints

3

Network “protocol”

Agreement between processes about what makes a well-formed message

Syntax

Layout of bits, bytes, fields, etc

Semantics

what messages, and fields within messages, mean

Example: HTTP get request and response

Retrieves information identified by a URI (Universal Resource Identifier)

4

Layering

The network abstraction is usually layered

like Dijkstra’ s THE Operating system

User Programs User

(“Not implemented by us” EWD)

I/O OS-Console communication Memory management

(Pager)

Multiprogramming

(semaphores, interrupts, scheduling)

Layer 0 Layer 1 Layer 2 Layer 3 Layer 4 Layer 5

5

slide-2
SLIDE 2

Layers support Modularity

Each layer

relies on services from layer below exports services to layer above

Interfaces between layers

Hide implementation details Ease maintenance, updates

changes in the implementation of layer’ s service are transparent to the rest of the system

6

Network Layering

The network abstraction is usually layered

Presentation Application Session Transport Network Link Physical Application Transport Network Link Physical

Proposed 7-Layer ISO/OSI Reference Model (1970s) Actual 5-Layer Internet Protocols Stack

7

OSI Layers

Application

User interface tasked for displaying received info to the user

Presentation

Translation between network and application formats, encryption, compression

Session

Connection management; synchronization, checkpointing

Transport

Data transfer, reliability, packetization, retransmission. Lets multiple apps share one network connection

Network

Path determination across multiple network segments, routing, logical addressing.

Link

Decides whose turn it is to talk, finds physical device on network.

Physical

Exchanges bits on the media (electrical, optical, etc.) 8

Internet Protocol Stack

Application

Exchanges messages HTTP, FTP, DNS

Transport

Transports messages; Exchanges segments TCP, UDP

Network

Transports segments; exchanges datagrams IP, ICMP (ping)

Link

Transports datagrams; Exchanges frames Ethernet, WiFi

Physical

Transport frames; exchanges bits Wires, signal encoding

9

slide-3
SLIDE 3

Who does what?

Application

HTTP, FTP, DNS

Transport

TCP, UDP

Network

  • IP. ICMP (ping)

Link

Ethernet, WiFi

Physical

wires, signal encoding

App App OS CPU Memory NIC Controller

Physical Transmission

Bus

Each host has one or more Network Interface Cards (NICs) Attached to host’ s system buses Combination of hardware, software, firmware

10

How a network looks like

Routers Switches WiFi Routers Endpoints

11

The Big Picture

Application Transport Network Data Link Physical Application Transport Network Data Link Physical

messages segments datagrams

  • r packets

frames bits Ports (http: 80; DNS: 53; Telnet: 23) IP addresses (192.168.100.254) MAC addresses (00:12:F4:AB:0C:82)

12

The Big Picture

Application Transport Network Data Link Physical Application Transport Network Data Link Physical

messages segments datagrams

  • r packets

frames bits

Network Data Link Physical Network Data Link Physical

13