Chat with us, powered by LiveChat CS 6676 Computer Science Computer Networks Questions - Credence Writers
+1(978)310-4246 [email protected]

Description

CS6676: Lecture 2
Peer-to-Peer(P2P)
Peer 2
Peer 1
App
App
Sharable
objects
Peer 3
Peer 4
App
App
P2P: Napster
?
Centralized communication to decentralized communication
?
?
?
?
?
?
3
1, 2
4
Problems?
?
?
?
1) Peers register content directory to the central server
? IP address, content
2) Peer 1 send query an object
3) Central server let Peer 1 know that Peer 2 has the object
? Let Peer 1 know about Peer 2
4) Peer 1 establish connection to Peer 2 and request
the object
5) Peer 2 replies Peer 1 with the object
Single point of failure
Performance bottleneck
Mixed system
?
?
1, 2, 3 (centralized)
4, 5 (decentralized)
Peer 1
5
1
Peer 2
P2P: Gnutella
?
Fully distributed
?
?
?
?
?
No Central server
Query message sent over existing TCP connection
Peers forward Query message
QueryHit sent over reverse path
Flooding cause excessive traffic
?
Limits Scope of TimeToLive (TTL)
Forward!
Peer 2
Peer 1
Query
QueryHit
Query
QueryHit
Found!
Peer 3
Multiple Servers
?
Increase performance and resilience
?
?
Data replicated in multiple servers distribute the load
Ex. Sun NIS(Network Information System)
?
Each NIS server has own replica of password file containing list of users? login
name and encrypted password
Web Proxy Server
?
Proxy caching, store, recently used data objects
?
Increase availability and performance of the service by reducing the load on
the wide-area network and Web servers
Web Applets
?
Client requests and downloads applet code
?
Client interact with the applet, locally
Thin clients and computer servers
?
Thin client
?
?
A software layer that supports a window-based user interface on a computer
(local), while executing application program on a remote computer
Drawback?
?
In case of high interactivities, (CAD, image processing), delay will be increased
Compute server
Network computer or PC
Thin
Client
network
Application
Process
Networking and Internetworking:
Introduction
?
Networks used in distributed systems,
?
?
?
Networking issues for distributed systems,
?
?
?
?
?
?
?
Hardware devices (e.g., router, switch, bridges, hub, repeaters, etc)
Software components (e.g., protocol stacks, communication handlers and
devices, etc)
Performance (e.g., latency, data transfer rate, etc.)
Scalability/reliability
Security
Mobility
QoS
Multicasting ? one to many communication
Users? insatiable access requirements,
?
Wireless networks, high-performance networks, etc
Types of Network
?
Personal Area Networks (PANs)
?
?
Digital devices connected by low-cost, low energy network
Wireless Personal Network is increasingly popular
? Bluetooth
Types of Network
?
Local Area Networks
?
?
?
?
?
?
Computers connected by a single communication medium
(twisted copper wire, coaxial cable, optical fiber)
Segment: section of cable that have many computer connection
Bandwidth shared among computers connected
Larger local networks (such as campus, office building) have multiple segments
interconnected by switches and hubs
Total bandwidth is high, latency is low (May change depending on message traffic)
Wireless Local Area Networks
?
Provide connectivity for mobile devices
Types of Network
?
Wide Area Networks
?
?
?
Carry messages at lower speed
Nodes communicating separated by large distances (different cities, countries ?)
Wireless Wide Area Networks
?
Most mobile phones connected through wireless network
Types of Network
?
Metropolitan Area Networks
?
?
Provide connectivity for cities blocks
Wireless Metropolitan Area Networks
?
Provides wireless connectivity in homes, office buildings
Types of Network
?
Internetworks
?
?
LAN
Communication subsystem which several networks
linked together
Open system, extensible
WAN
LAN
LAN
Transporting messages through network
?
Protocol Layers: Network software is arranged in hierarchy of layers
?
Each layer presents an interface to the layers above, extends underlying
communication system
Message received
Message sent
Layer n
Layer 2
Layer 1
Sender
?
Protocol
?
Communication
medium
Recipient
Set of rules and formats to be used for communications between processes
Transporting messages through network
?
Protocol Stack: Complete set of Protocol layers
Layer
Description
Examples
Application
Protocols that are designed to meet the communication requirements of
specific applications, often defining the interface to a service.
HTTP, FTP , SMTP,
CORBA IIOP
Presentation
Protocols at this level transmit data in a network representation that is
independent of the representations used in individual computers, which may
differ. Encryption is also performed in this layer, if required.
Secure Sockets
( SSL),CORBA Data
Rep.
Session
At this level reliability and adaptation are performed, such as detection of
failures and automatic recovery.
Transport
This is the lowest level at which messages (rather than packets) are handled.
Messages are addressed to communication ports attached to processes,
Protocols in this layer may be connection-oriented or connectionless.
TCP,
Network
Transfers data packets between computers in a specific network. In a WAN
or an internetwork this involves the generation of a route passing through
routers. In a single LAN no routing is required.
IP, ATM virtual
circuits
Data link
Responsible for transmission of packets between nodes that are directly
connected by a physical link. In a WAN transmission is between pairs of
routers or between routers and hosts. In a LAN it is between any pair of hosts.
Ethernet MAC,
ATM cell transfer,
PPP
Physical
The circuits and hardware that drive the network. It transmits sequences of
binary data by analogue signalling, using amplitude or frequency modulation
of electrical signals (on cable circuits), light signals (on fibre optic circuits)
or other electromagnetic signals (on radio and microwave circuits).
Ethernet base- band
signalling,
ISDN
UDP
Source
Encapsulation
Application
Transport
Network
?
Maximum transfer unit
?
?
Destination
Application
Transport
Network
Data Link
Physical
If message exceeds MTU, must be
segmented
Data Link
M message
Segment
?? M
Diagram
?? ?? M
?? ?? ?? M
Frame
Physical
Packet switching vs circuit switching
Data Link
M message
Segment
?? M
Diagram
?? ?? M
Data Link
?? ?? ?? M
Physical
Frame
Network
Physical
Transport Protocol
?
?
Provide logical communication between app processes running on
different hosts
Transport protocols run in end systems
?
?
Sender
? Breaks app messages into segments, passes to network layer
Receiver
`Reassembles segments into messages, passes to app layer
?
?
Reliable, in-order delivery: Transmission Control Protocol(TCP)
?
?
?
Congestion control
Flow control
Connection setup
Transport Layer vs Network Layer
?
Transport layer:
?
?
?
Network layer:
?
?
logical communication between processes
relies on, enhances, network layer services
logical communication between hosts
For example, household analogy: 12 kids (Ann) sending letters to 12
kids (Bill)
?
?
?
?
?
processes = kids
app messages = letters in envelopes
hosts = houses
transport protocol = Ann and Bill
network-layer protocol = postal service
Network Layer
?
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
?
router examines header fields in all IP datagrams passing through it
Network Layer:Two key functions
?
Forwarding:
?
?
Routing:
?
?
?
Move packets from router?s input to appropriate router output
Determine route taken by packets from source to destination
Routing algorithms
Analogy:
?
?
Routing: process of planning trip from source to destination
Forwarding: process of getting through single interchange
Link Layer
?
Layer-2 packet is a frame, encapsulates datagram
?
datagram transferred by different link protocols over different links:
?
?
Link layer implemented in ?adaptor? (a.k.a., network interface card
NIC)
?
?
?
?
e.g. Ethernet on first link, frame relay on intermediate links, 802.11 on last link
Ethernet card, PCMCI card, 802.11 card
Implements link, physical layer
Attaches into host?s system buses
Has responsibility of transferring datagram from one node to adjacent
node over a link
Adaptors Communication
CPU
Memory
physical
?
physical
Sending side:
?
?
?
CPU
Encapsulates datagram in frame
Adds error checking bits, flow control, etc
Receiving side
?
?
Looks for errors, flow control, etc
Extracts datagram, passes to upper layer at receiving side
Memory
TCP Flow Control
?
?
?
?
sender won?t overflow receiver?s buffer by transmitting too much, too
fast
Receiver side of the TCP connection has a receive buffer
app process may be slow at reading from buffer
speed-matching service: matching the send rate to the receiving app?s
drain rate
TCP Flow Control
?
spare room in buffer
?
?
?
?
LastByteRcvd ? LastByteRead
Purchase answer to see full
attachment

error: Content is protected !!