computer networks chapter one: overview prepared by: dr. bahjat qazzaz book: computer networking a...

53
Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose & Keith Ross Third Edition

Upload: alban-sutton

Post on 27-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Computer Networks

Chapter One: Overview

Prepared By: Dr. Bahjat Qazzaz

Book: Computer NetworkingA Top-Down Approach Featuring the Internet

By: James Kurose & Keith RossThird Edition

Page 2: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Overview: Index

• Internet: Services and protocols

• Network Edge: End system, client, servers

Connection/less services

• Network Core: Circuit vs Packet switching

Datagram NW & Virtual Circuit

NW

• ISP and Backbones

Page 3: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Overview: Index

• Delay and loss in packet-switched NW

• Protocol Layers: Layered architecture

• Summary

Page 4: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Overview: Internet

• The Internet: Is a worldwide network that interconnects millions of computing devices. (or a collection of different types of networks).

• The devices can be: PCs, Workstations,

• Also, PDAs, TV, mobile computers, cell phones,

Page 5: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Overview: Internet

• Moreover, automobiles, environmental sensing devices, home electrical and security systems.

• These devices are referred to as:– Hosts or– End systems

لشبكة – تخطيط ارسم أن يجب آآلن

Page 6: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Overview: Internet

• End systems are connected together by Communication Links (not directly) of different types:– Copper wire, fiber optics, Coax, radio

spectrum– Different links can transmit data at different

rates (called Transmission rate and measured in bits/second).

Page 7: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Overview: Internet

• End systems (Hosts) are connected through intermediate devices known as: Packet Switches

• A packet switch takes a chunk of information arriving on one of its incoming communication link and forward it on one of its outgoing communication link.

• The chunk of information is called Packet• Example of packet switches: Routers

Page 8: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Overview: Internet

• A Router is an electronic device (e.g. computer) that forwards packets toward their ultimate destination.

• The communication links and packet switches between sending host and receiving host is called route or path

• Internet uses packet switching technique rather than dedicated path between hosts

Page 9: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Overview: Internet

• ISP (Internet Service Provider): End systems access the internet through ISPs.

• Examples of ISPs– Local Telephone company (e.g Paltel)– Corporate Company– University…etc

• Hosts can access the NW through: Dial-up modem, ADSL, High-speed LAN, Wireless

Page 10: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Overview: Internet

• To allow users to access worldwide Internet content:– Local ISP (Lower-tier ISP) is interconnected to

National ISP– And the National ISP (Upper-tier ISP) is

interconnected to International ISP

• An upper-tier ISPs consist of high-speed routers interconnected with high-speed fiber-optic links

• Each ISP network is managed independently, runs IP protocols, has name and IP address

Page 11: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Overview: Internet

• End systems and packet switches run protocols that control the sending and receiving of information within the Internet

• The TCP (transmission Control Protocol) and IP (Internet Protocol) protocols (Known as TCP/IP) are two of the most protocols in the Internet.

• IP protocol specifies the format of the packets that are sent and received among routers and end systems.

Page 12: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Internet services

• Distributed Applications: The Internet allows distributed applications running on its end systems to exchange data with each other. Applications include: E-mail, remote login, distributed games, video streaming, …etc

• The Internet provides two services to its distributed applications:– Connection oriented reliable service &– Connection unreliable service

Page 13: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

TCP/IP Network, and in particular the Internet, provide two types of services to end-system applications

• Connection oriented– It guarantees that data transmitted from a

sender to a receiver will eventually be delivered to the receiver in order and in its entirety.

• Connectionless– It does not make any guarantees about

eventual delivery!!! The distributed app. Makes use of one of

these applications.

Page 14: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

What is a Protocol

• A protocol defines the format and the order of messages exchanged between two or more communicating entities, as well as the actions taken on the transmission and/or receipt of a message or other event

Page 15: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

What is a Protocol

• all communication activity in Internet governed by protocols

• Examples:

Hi

Hi

Got thetime?

2:00

TCP connection request

TCP connectionresponse

<file>

time

Page 16: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Protocol examples:

• Hardware-implemented protocols in the NIC of two physically connected computers: control the flow of bits on the wire between the two NICs.

• Congestion-control protocols in end systems: control the rate at which packets are transmitted between sender and receiver

Page 17: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Protocol examples:

• Protocols in routers: determine a packet’s path from source to destination.

Page 18: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Web example!!

• What does happen when you request a web page?– You type a URL of a web page into a browser– Your computer will send a connection request

message to the web server and wait for reply– The server receives your connection request and

return a connection reply message– Your computer now sends the name of the web page

it wants to fetch from the web server– The web server sends the web page to your computer

Page 19: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

The Network Edge

• End Systems, Clients, and Servers– Computers connected to the Internet are

called end systems, because they sit at the edge of the Internet.

– End systems are referred to as Hosts because they host application programs (e.g. web server prog, e-mail server prog, web browser prog

– Hosts are also can be divided to clients and servers

Page 20: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Client/Server paradigm

• A client program is a program running on one end system that requests and receives a service from a server program

• A server program is a program listening on a connection waiting for a request and replying for the request.

• !!!!! Notice the difference between sw & hw

Page 21: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Application examples:

• Web, E-mail, File transfer, remote login (Telnet), and many other applications follow the

Client / Server Paradigm

Since the client program runs on a computer and the server program runs on another, these applications are called

Distributed Applications

Page 22: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Application examples:

• Notice that:

An application may behave as a

Client and server at the same time

• For example PeerToPeer (P2P) file sharing applications:

• It works as a client when it requests a file from another peer, and works as a server when it sends the file to another peer.

Page 23: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Connection and connectionless

1. Connection oriented & handshaking (by sending control messages)

It comes with services:– Reliable data transfer (ack.)– Flow control (No overwhelming)– Congestion control (prevents entering in

gridlock)– It has the name: Transmission Control

Protocol (TCP)

Page 24: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Connection and connectionless

2. Connectionless– No handshakig (just sending when ready)

– E.g. MM App.

Page 25: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Structure• Host or End-System

– a computer that a user logs into to do work– attached to network, not part of network (usually)

• Subnet – everything between hosts– transport data from one host to another

Page 26: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Subnet• Point-to-Point

– Two machines, one at each end of a “wire”– Often many point-to-points in a subnet

Page 27: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Subnet• Broadcast

– Many (3+) machines connected by a common link– When one “speaks”, all hear

• Multicast targets only some• Unicast send to only one

Page 28: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Types of Network Structures

• LAN - Local Area Network

• MAN - Metropolitan Area Network

• WAN - Wide Area Network

• Wireless / Mobile Networks

Page 29: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Local Area Networks (LANs)

• Small geographic regions (e.g., building(s))

• High data rates (10-100 Mbps and up)– Much higher than connection to ISP

• Low cost (thousands of dollars)

• Typically broadcast

Page 30: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Metropolitan Area Networks (MANs, not MEN)

• Medium-size geographic regions (e.g., entire cities)

• Still no switches, single “wires”

• Example: local cable system

• IEEE 802.6--Distributed Queue Dual Bus (DQDB)– Uses two broadcast buses, one for each

direction

Page 31: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Wide Area Networks (WANs)

• Larger geographic distance (e.g. entire countries)

• Low data rates (56 kbps - 1.5 Mbps (T1), bundle T1 links to get higher rates),

• High cost (tens or hundreds of thousands of dollars per year)

• The Internet is a specific WAN

Page 32: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Internetworking

• The connection of different types of networks

• The Internet

Page 33: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Core: Circuit switching and Packet switching

• Circuit-switched networks:– The resources needed along a path to provide

for communication between the end systems are reserved for the duration of the communication session.

– So, when two host want to communicate, the network establishes a dedicated end-to-end connection between them.

Page 34: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Core: Circuit switching and Packet switching

• Packet-switched networks:– The resources are not reserved ahead of the

time. Instead, the resources are allocated on demand. So, a session’s message may have to wait (at the sending buffer) for access to a communication link (suffering a delay)

Page 35: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Core: Multiplexing in circuit-switched networks

• A circuit in a link can be implemented in one of the two ways:

Frequency-Division Multiplexing (FDM)

Or

Time Division Multiplexing (TDM)

Page 36: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Core: Frequency-Division Multiplexing

• FDM: The frequency spectrum of a link is shared among the connections. That is, each circuit continuously gets a fraction of the bandwidth.

Page 37: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Core: Time-Division Multiplexing

• TDM: Time is divided into frames of fixed duration, and each frame is divided into fixed number of time slots, then the networks dedicate the whole bandwidth during the time of the slot to the connection.

Page 38: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Core: FDM vs TDM

• FDM: – is wasteful during silent period– Is static

• TDM: leads to increment in the number of users

Example in: end of Page 17

Page 39: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Core: Packet switching

• In modern networks:– Messages are broken into packet– Each packet travels through communication

link and packet switch (router) at full rate (best efforts).

– Most packet switches use

Store-And-Forwards technique

Page 40: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Core: Packet switching

• Store-and-forward:– The entire packet is received by the switch– It is checked for errors then,– It is forwarded to its destination.– Of course, this technique introduces some

delay. (S&F delay)– Output buffer or output queue (queuing delay)– Packet loss

Examples of page: 19+20+21

Page 41: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Core: Packet switching

• Two classes of packet-switched networks

Datagram networks

And

Virtual-circuit networks

They differ in whether their switches use destination address or virtual-circuit numbers to forward packets toward their destination

Page 42: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Core: Packet switching

• Datagram networks:– The network that forwards packets according

to host destination address is called datagram network.

– The internet is a datagram network.

Page 43: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Core: Packet switching

• Virtual circuit networks:– The network that forwards packets according

to virtual circuit numbers called virtual-circuit network.

– This is done by giving a VC ID to end systems and to each and every switch along the VC’s source-to-destination path.

– The x.25, frame relay, and ATM are all examples of packet-switching technologies that use virtual-circuit.

Page 44: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Network Taxonomy

Telecommunicationsnetworks

Circuit-switchednetworks

Packet-switchednetworks

FDM TDMNetwork with

VCsDatagramNetworks

Page 45: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Access Network and Physical Media

• Now we want to consider Access Networks: the physical link(s) that connect an end system to its edge router, which the first router on a path from end system to any other distant end system.

• Access links include:– Fiber– coaxial– Twisted pair– Radio spectrum

Page 46: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Access Network and Physical Media

Access networks can be classified into 3 categories:

• Residential Access: connecting home end systems to the NW

• Company Access: connecting end systems in a business or educational institution into the network

• Wireless Access: connecting end systems (that are often mobile) into the NW

Page 47: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Access Network and Physical Media

• Residential Access:

Forms of residential access:– Dial-up modem

• Over analog telephone line• Twisted-pair, two modems, point-to-point• Converts from analog to digital and vice versa• Slow (56Kbps)

• New broadband tech. provides higher bit rate– Digital subscriber line (DSL) (more in Europe)– Hybrid fiber-coaxial cable (more in USA)

Page 48: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Access Network and Physical Media

• Residential Access:

New broadband tech. provides higher bit rate– Digital subscriber line (DSL) (more in Europe)

• Access is provided by a telephone company• It runs over existing twisted-pair telephone lines• It receives and sends data at much higher rates, theoritically,

over 10Mbps from ISP to home (download) and 1Mbps from home to ISP (Up-load). In practice 1to 2 Mbps download, and hundreds of Kbps upload.

• It uses FDM

• DSL divides the communication link into 3 frequency bands:– Downstream channel(50khzto 1Mhz), upstream(4khzto50khz),

two-way telephone channel (0 to 4khz) band.

Page 49: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Access Network and Physical Media

• Residential Access:

New broadband tech. provides higher bit rate– Hybrid fiber-coaxial cable (more in USA)

• Extension of cable network used for broadcasting cable tv• Cable head end broadcasts through a NW of Coaxial cable

and amplifiers to residence. Fig 1-10. (fiber node is used), then coaxial cable can support 500 to 5000 homes

• Cable modems are used, it is normaly an external device connected to the PC through Ethernet-port (chapter 5)

• Provides downstream and upstream.• The cable is shared, multiple access protocols (e.g. CSMA)

are used

Page 50: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Access Network and Physical Media

• Company Access– Companies and universities use LAN to connect an

end system to the edge router– Different techs are used (ethernet is prevalent)– Ethernet operates at 10M, 100M, 1G and 10 Gbps.– Twisted-pair copper wire or coaxial cable– Shared medium, but recently switched ethernet tech.– The edge router routs packets that have destination

address outside of the LAN.

Page 51: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Access Network and Physical Media

• Wireless Access• More eople have PCs, mobiles, and PDAs• Two types: wireless LAN, and wide-area wireless access

network.

– In wireless LAN• Users transmit packets to a base station (or receive from it)• The base station is within a radius of a few tens of meters• The station is typically connected to wired network.• Wireless LANs is based on IEEE 802.11 technology (Also

known as Wireless ethernet and Wi-Fi).• It provides a shared transmission rate of 11Mbps.

Page 52: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Access Network and Physical Media

• Wireless Access– WAP: wireless access protocol

• Users can make use of portable phone infrastructure, accessing base station that are up to 10s of kilometers away.

• WAP is widely used in Europe, i-mode in Japan• Instead of HTML, wap phones use a special mark

up language WML(Wap Markup Language).

Page 53: Computer Networks Chapter One: Overview Prepared By: Dr. Bahjat Qazzaz Book: Computer Networking A Top-Down Approach Featuring the Internet By: James Kurose

Physical Media

• Go to the layering architecture then back