Introdução aos Sistemas Distribuídos



Similar documents
Network Applications

Distributed Systems. 2. Application Layer

Principles of Network Applications. Dr. Philip Cannata

Computer Networks. Examples of network applica3ons. Applica3on Layer

CSIS CSIS 3230 Spring Networking, its all about the apps! Apps on the Edge. Application Architectures. Pure P2P Architecture

Computer Networks & Security 2014/2015

LESSON Networking Fundamentals. Understand TCP/IP

Network Programming TDC 561

Architecture and Performance of the Internet

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

Chapter 3. Internet Applications and Network Programming

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

1 Introduction: Network Applications

Protocols. Packets. What's in an IP packet

Ethernet. Ethernet. Network Devices

Transport and Network Layer

[Prof. Rupesh G Vaishnav] Page 1

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

IP address format: Dotted decimal notation:

Overview of TCP/IP. TCP/IP and Internet

Review of Networking Basics. Yao Wang Polytechnic University, Brooklyn, NY11201

Module 2 Overview of Computer Networks

Basic Internet programming Formalities. Hands-on tools for internet programming

Internet Concepts. What is a Network?

The TCP/IP Reference Model

Lecture 28: Internet Protocols

Transport Layer Protocols

Application Layer. CMPT Application Layer 1. Required Reading: Chapter 2 of the text book. Outline of Chapter 2

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

Communications and Networking

Introduction to TCP/IP

Introduction to Socket Programming Part I : TCP Clients, Servers; Host information

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme

Address Resolution Protocol (ARP)

We will give some overview of firewalls. Figure 1 explains the position of a firewall. Figure 1: A Firewall

How To Design A Layered Network In A Computer Network

Objectives of Lecture. Network Architecture. Protocols. Contents

Clearing the Way for VoIP

Limi Kalita / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 5 (3), 2014, Socket Programming

An Introduction to VoIP Protocols

How do I get to

Encapsulating Voice in IP Packets

Application-layer protocols

Lecture 33. Streaming Media. Streaming Media. Real-Time. Streaming Stored Multimedia. Streaming Stored Multimedia

Understanding TCP/IP. Introduction. What is an Architectural Model? APPENDIX

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

The Internet. Chapter 10. Learning Objectives. Chapter Outline. After reading this chapter, you should be able to:

First Midterm for ECE374 03/09/12 Solution!!

Digital Audio and Video Data

Data Communication I

Domain Name System (DNS)

Chapter 5. Transport layer protocols

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

TCP/IP Basis. OSI Model

Single Pass Load Balancing with Session Persistence in IPv6 Network. C. J. (Charlie) Liu Network Operations Charter Communications

Network Simulation Traffic, Paths and Impairment

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Chapter 2 Application Layer

Voice over IP (VoIP) and QoS/QoE

Chapter 6 Configuring the SSL VPN Tunnel Client and Port Forwarding

User Datagram Protocol - Wikipedia, the free encyclopedia

Voice-Over-IP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Access Control: Firewalls (1)

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Detailed Table of Contents

Virtual Server and DDNS. Virtual Server and DDNS. For BIPAC 741/743GE

Computer Networks. A Top-Down Approach. Behrouz A. Forouzan. and. Firouz Mosharraf. \Connect Mc \ Learn. Hill

Chapter 4 Restricting Access From Your Network

INTRODUCTION TO FIREWALL SECURITY

Chapter 3 Restricting Access From Your Network

Introduction to IP networking

Computer Networks - CS132/EECS148 - Spring

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding

Module 1: Reviewing the Suite of TCP/IP Protocols

Introduction to IPv6 and Benefits of IPv6

Network Models and Protocols

Top-Down Network Design

CSCI Topics: Internet Programming Fall 2008

Lecture 2. Internet: who talks with whom?

2.1 Introduction. 2.2 Voice over IP (VoIP)

Applications. Network Application Performance Analysis. Laboratory. Objective. Overview

Chapter 5. Data Communication And Internet Technology

Classes of multimedia Applications

Using IPM to Measure Network Performance

TCP/IP Networking for Wireless Systems. Integrated Communication Systems Group Ilmenau University of Technology

Chapter 1 Computer Networks and the Internet

Frequently Asked Questions

Chapter 12 Supporting Network Address Translation (NAT)

Unit 4. Introduction to TCP/IP. Overview. Description. Unit Table of Contents

1. The Web: HTTP; file transfer: FTP; remote login: Telnet; Network News: NNTP; SMTP.

Lesson: TANDBERG and IP

What s a protocol? What s a protocol? A closer look at network structure: What s the Internet? What s the Internet? What s the Internet?

Proxy Server, Network Address Translator, Firewall. Proxy Server

La couche transport dans l'internet (la suite TCP/IP)

Transcription:

O que é um Sistema Distribuído? Introdução aos Sistemas Distribuídos Um sistema distribuído consiste num conjunto de máquinas que trabalham de forma coordenada e conjunta para resolver um determinado problema. A comunicação é feita por troca de mensagens. SISTEMAS INFORMÁTICOS I, ENG. BIOMÉDICA SLIDES_9 Modelo Típico: Client-Server Exemplo Client-Server Client Request Network Server Client machine Result Server machine 1

Database s File Server DBMS Server TP Monitor Groupware Server Web s Desafios Sistemas Distribuídos Web Browser + HTML & Forms Web Browser + Java HTTP Over /IP Internet Server JSP HTML Documents Transparência Heterogeneidade Flexibilidade Tratamento de falhas Desempenho Escalabilidade Segurança Desenvolvimento de aplicações distribuídas Gestão de sistemas e aplicações distribuídas Integração de diferentes aplicações 2

O que é diferente?... Comunicação: Client-Server Latência na execução de procedimentos Semântica de falha bem diferente APIs de programação distribuída Client: initiates contact with server requests a service from the server, Web: client implemented in browser; e-mail: in mail reader Falta o conhecimento do estado global Relógios não sincronizados Eventos concorrentes /não-determinismo Server: provides requested service to client e.g., Web server sends requested Web page, mail server delivers e-mail Client-Server vs Peer-to-Peer Comunicação Distribuída usando Sockets 3

Networking Endereços IP s Layer Standard apps HTTP FTP Telnet User apps Transport Layer UDP Programming Interface: Sockets Network Layer IP Link Layer Device drivers /IP Stack (http,ftp,telnet, ) Transport (, UDP,..) Network (IP,..) Link (device driver,..) Every host on the Internet is identified by a unique, four-byte Internet Protocol (IP) v4 address IPv4: 4 bytes (32bits) today IPv6: 16 bytes (128bits) the future This is written in dotted quad format like 199.1.32.90 where each byte is an unsigned integer between 0 and 255. Endereços IP Endereços IP 4

Domain Name System (DNS) Numeric addresses are mapped to (and from) names like www.yahoo.com by DNS. Each site runs domain name server software that translates names to IP addresses and vice versa. DNS is a distributed protocol/service. Endereçamento de Sockets: IP address + Port For a process to receive messages, it must have an identifier Every host has a unique 32-bit IP address Q: does the IP address of the host on which the process runs suffice for identifying the process? Answer: No, many processes can be running on same host Identifier includes both the IP address and port numbers associated with the process on the host. Example port numbers: HTTP server: 80 Mail server: 25 FTP: 20,21 Telnet: 23 Exemplo Protocolos de Transporte service: connection-oriented reliable transport flow control congestion control. does not provide timing or bandwidth guarantee. UDP service: unreliable data transfer low latency. does not provide: connection setup, reliability, flow control, congestion control, timing, or bandwidth guarantee 5

Protocolo Como funciona o? All connections are reliable, full-duplex point-to-point. A connection is a byte stream not a message stream. Byte stream means that message boundaries don't exist. The receiving process can't tell how the data was written by the sending process. Establishment and termination - setting up the connection. Sequencing of data. End-to-end reliability (checksums, acks, timeouts). Data is buffered at the layer, since it must be delivered to the application in reliable, sequenced chunks. Protocolo UDP Clients that have one request and one response use UDP Low startup overheads Example DNS Unreliable, does not refer to the presence of undetected errors Data integrity is guaranteed, but delivery and sequence is not. Many times used in non-critical services (e.g. timeof-day service; clock syncronization) Protocolo UDP UDP packets may be lost due to congestion in a router, lost due to buffer overrun in the receiver's buffer, and even duplicated. In all cases their is no indication given to the sending process Packets just disappear! Remember that UDP is: unreliable out-of-order delivery data sent in packets, not streams 6

Métricas a Considerar Data loss some apps (e.g., audio) can tolerate some loss other apps (e.g., file transfer, telnet) require 100% reliable data transfer Timing some apps (e.g., Internet telephony, interactive games) require low delay to be effective Bandwidth some apps (e.g., multimedia) require minimum amount of bandwidth to be effective other apps ( apps ) make use of whatever bandwidth they get Características de Aplicações Data loss file transfer no loss e-mail no loss Web documents no loss real-time audio/video loss-tolerant stored audio/video loss-tolerant interactive games loss-tolerant instant messaging no loss Bandwidth audio: 5kbps-1Mbps video:10kbps-5mbps same as above few kbps up Time Sensitive no no no yes, 100 s msec yes, few secs yes, 100 s msec yes and no Aplicações de Internet e-mail remote terminal access Web file transfer streaming multimedia Internet telephony layer protocol SMTP [RFC 2821] Telnet [RFC 854] HTTP [RFC 2616] FTP [RFC 959] proprietary (e.g. RealNetworks) proprietary (e.g., Dialpad) Underlying transport protocol or UDP typically UDP 7