Tutorial&info,networks basics

110
Networking Basics For : Level 1 – Networks and Computer Science Diploma Deanship of Community Services and Continuous Education - Imam University Based on : Cisco Networking Academy – Exploration 1 Instructor : Mahmoud Rabie

description

Tutorial&info,networks basics

Transcript of Tutorial&info,networks basics

Page 1: Tutorial&info,networks basics

Networking Basics

For : Level 1 – Networks and Computer Science DiplomaDeanship of Community Services and Continuous Education - Imam University

Based on : Cisco Networking Academy – Exploration 1

Instructor : Mahmoud Rabie

Page 2: Tutorial&info,networks basics

Grading 15 for Attendance and Participation 35 for the Take-Home Open-Book Exam 50 for the Final Exam

Page 3: Tutorial&info,networks basics

Topics Introduction to Networking Networking Fundamentals Networking Media Communicating over the Network Application Layer Functionality and

Protocols Ethernet and Link Layer

Addressing

Page 4: Tutorial&info,networks basics

Introduction to Networking

Objectives

Page 5: Tutorial&info,networks basics

Requirements for Internet Connection

Page 6: Tutorial&info,networks basics

Network Interface Card (NIC)

Page 7: Tutorial&info,networks basics

TCP/IP Description and Configuration

Page 8: Tutorial&info,networks basics

Testing Connectivity with Ping

Page 9: Tutorial&info,networks basics

Web Browser and Plug-Ins

Page 10: Tutorial&info,networks basics

Troubleshooting Internet Connections

Page 11: Tutorial&info,networks basics

Network Math ISA will be covered well, by Dr.

Baha

Page 12: Tutorial&info,networks basics

IP Addresses and Network Masks

Page 13: Tutorial&info,networks basics

Networking Fundamentals

Objectives

Page 14: Tutorial&info,networks basics

Data Networks

Page 15: Tutorial&info,networks basics

Networking Devices

Page 16: Tutorial&info,networks basics

Network Topology

Page 17: Tutorial&info,networks basics

Network Protocols

Page 18: Tutorial&info,networks basics

Local-area Networks (LANs)

Page 19: Tutorial&info,networks basics

Wide-area Networks( WANs)

Page 20: Tutorial&info,networks basics

Storage-Area Networks (SANS)

Page 21: Tutorial&info,networks basics

Virtual Private Networks (VPNs)

Page 22: Tutorial&info,networks basics

Importance of Bandwidth

Page 23: Tutorial&info,networks basics

Bandwidth Pipe Analogy

Page 24: Tutorial&info,networks basics

Bandwidth Highway Analogy

Page 25: Tutorial&info,networks basics

Bandwidth Measurements

Page 26: Tutorial&info,networks basics

Bandwidth Limitations

Page 27: Tutorial&info,networks basics

Using Layers to Analyze Problems

Page 28: Tutorial&info,networks basics

Using Layers to Describe Data Communication

Page 29: Tutorial&info,networks basics

OSI Model

Page 30: Tutorial&info,networks basics

OSI Layers

Page 31: Tutorial&info,networks basics

OSI Layers

•Provides connectivity and path selection between two host

•Provides Logical address

•No error correction, best effort delivery.

Page 32: Tutorial&info,networks basics

OSI Layers

Page 33: Tutorial&info,networks basics

OSI Layers

Page 34: Tutorial&info,networks basics

OSI Layers

Page 35: Tutorial&info,networks basics

OSI Layers

Page 36: Tutorial&info,networks basics

OSI Layers

Page 37: Tutorial&info,networks basics

Peer-to-Peer Communication

Page 38: Tutorial&info,networks basics

TCP/IP Model

Page 39: Tutorial&info,networks basics

Networking Media

Objectives

Page 40: Tutorial&info,networks basics

Voltage

Page 41: Tutorial&info,networks basics

Resistance and Impedance

Page 42: Tutorial&info,networks basics

Current Flow

Page 43: Tutorial&info,networks basics

Circuits

Page 44: Tutorial&info,networks basics

Coaxial Cable

Page 45: Tutorial&info,networks basics

Shielded Twisted-Pair Cable (STP)

Page 46: Tutorial&info,networks basics

Unshielded Twisted Pair (UTP)

Page 47: Tutorial&info,networks basics

Unshielded Twisted Pair (UTP)

Page 48: Tutorial&info,networks basics

Unshielded Twisted Pair (UTP)

Page 49: Tutorial&info,networks basics

Single Mode Fiber

Page 50: Tutorial&info,networks basics

Multimode Fiber

Page 51: Tutorial&info,networks basics

Optical Media

Page 52: Tutorial&info,networks basics

Wireless LAN Standards

Page 53: Tutorial&info,networks basics

Internal Wireless NIC

Page 54: Tutorial&info,networks basics

Wireless USB Adapter

Page 55: Tutorial&info,networks basics

Modulation

Page 56: Tutorial&info,networks basics

Communicating over the Network

Page 57: Tutorial&info,networks basics

Network Structure Define the elements of communication

3 common elements of communication message source the channel message destination

Define a network data or information networks capable of carrying many

different types of communications

Page 58: Tutorial&info,networks basics

Network Structure Describe how messages are communicated

Data is sent across a network in small “chunks” called segments

Multiplexing

Page 59: Tutorial&info,networks basics

Network Structure Define the components of a network

Network components hardware software

Page 60: Tutorial&info,networks basics

Network Structure End Devices and their Role in the Network

End devices form interface with human network & communications network

Role of end devices: client server both client and server

Page 61: Tutorial&info,networks basics

Network Structure Identify the role of an intermediary

device in a data network and be able to contrast that role with the role of an end device Role of an intermediary device

provides connectivity and ensures data flows across network

Page 62: Tutorial&info,networks basics

Network Structure

Define network media and criteria for making a network media choice

Network media this is the channel over which a message travels

Page 63: Tutorial&info,networks basics

Network Types

Define Local Area Networks (LANs) - A network serving a home, building or

campus is considered a Local Area Network (LAN)

Page 64: Tutorial&info,networks basics

Network Types Define Wide Area Networks (WANs)

LANs separated by geographic distance are connected by a network known as a Wide Area Network (WAN)

Page 65: Tutorial&info,networks basics

Network Types

Define the Internet The internet is defined as a global mesh of interconnected networks

Page 66: Tutorial&info,networks basics

Network Types Describe network representation symbols

Page 67: Tutorial&info,networks basics

Function of Protocol in Network Communication

The importance of protocols and how they are used to facilitate communication over data networks

A protocol is a set of predetermined or formal rules

Page 68: Tutorial&info,networks basics

Function of Protocol in Network Communication

Explain network protocolsNetwork protocols are usedto allow devices to communicate successfully

Page 69: Tutorial&info,networks basics

Function of Protocol in Network Communication

Define different protocols and how they interact

Page 70: Tutorial&info,networks basics

Function of Protocol in Network Communication

Technology independent Protocols -Many diverse types of devices can communicate using the

same sets of protocols. This is because protocols specify network functionality, not the underlying technology to support this functionality.

Page 71: Tutorial&info,networks basics

Layers with TCP/IP and OSI Model

Explain the benefits of using a layered model– Benefits include

• assists in protocol design• fosters competition• changes in one layer do not affect other layers• provides a common language

Page 72: Tutorial&info,networks basics

Layers with TCP/IP and OSI Model

Describe TCP/IP Model

Page 73: Tutorial&info,networks basics

Layers with TCP/IP and OSI Model

Describe the Communication Process

Page 74: Tutorial&info,networks basics

Layers with TCP/IP and OSI Model

Explain protocol data units (PDU) and encapsulation

Page 75: Tutorial&info,networks basics

Layers with TCP/IP and OSI Model

Describe the process of sending and receiving messages

Page 76: Tutorial&info,networks basics

Layers with TCP/IP and OSI Model

Explain protocol and reference models

A protocol model provides a

model that closely matches the structure of a particular

protocol suite.

A reference model provides a

common reference for maintaining consistency within all types of network protocols and services.

Page 77: Tutorial&info,networks basics

Layers with TCP/IP and OSI Model

Define OSI

Page 78: Tutorial&info,networks basics

Layers with TCP/IP and OSI Model

Compare OSI and TCP/IP model

Page 79: Tutorial&info,networks basics

Addressing and Naming Schemes

Explain how labels in encapsulation headers are used to manage communication in data networks

Page 80: Tutorial&info,networks basics

Addressing and Naming Schemes

Describe examples of Ethernet MAC Addresses, IP Addresses, and TCP/UDP Port numbers

Page 81: Tutorial&info,networks basics

Addressing and Naming Schemes

Explain how labels in encapsulation headers are used to manage communication in data networks

Page 82: Tutorial&info,networks basics

Application Layer Functionality and Protocols

Page 83: Tutorial&info,networks basics

Applications – The Interface Between Human and Data Networks

Explain the role of applications, services and protocols in converting communication to data that can be transferred across the data network

Page 84: Tutorial&info,networks basics

Applications – The Interface Between Human and Data Networks

Define the separate roles applications, services and protocols play in transporting data through networks

Page 85: Tutorial&info,networks basics

Describe the role protocols play in networking and be able to identify several message properties that can be defined by a protocol

Applications – The Interface Between Human and Data Networks

Page 86: Tutorial&info,networks basics

The Role of Protocols in Supporting Communication

Describe the roles of client and server processes in data networks

Page 87: Tutorial&info,networks basics

The Role of Protocols in Supporting Communication

List common Application Layers services and protocols

Page 88: Tutorial&info,networks basics

The Role of Protocols in Supporting Communication

Compare and contrast client server networking with peer-to-peer networking and peer-to-peer applications

Page 89: Tutorial&info,networks basics

Features, Operation, and Use of TCP/IP Application Layer Services

Describe the features of the DNS protocol and how this protocol supports DNS services

Page 90: Tutorial&info,networks basics

Describe the features of the HTTP protocol and how this protocol supports the delivery of web pages to the client

Features, Operation, and Use of TCP/IP Application Layer Services

Page 91: Tutorial&info,networks basics

Link Layer Addressing

Page 92: Tutorial&info,networks basics

MAC Addresses and ARP 32-bit IP address:

network-layer address used to get datagram to destination IP

subnet

MAC (or LAN or physical or Ethernet) address: used to get datagram from one interface to

another physically-connected interface (same network)

48 bit MAC address (for most LANs) burned in the adapter

Page 93: Tutorial&info,networks basics

LAN Addresses and ARPEach adapter on LAN has unique LAN address

Broadcast address= FF-FF-FF-FF-FF-FF

=adapter

1A-2F-BB-76-09-AD

58-23-D7-FA-20-B0

0C-C4-11-6F-E3-98

71-65-F7-2B-08-53

LAN)wired or

wireless(

•MAC address allocation administered by IEEE•Manufacturer buys portion of MAC address space (to assure uniqueness)

Page 94: Tutorial&info,networks basics

ARP: Address Resolution Protocol

Each IP node (Host, Router) on LAN has ARP table

ARP Table: IP/MAC address mappings for some LAN nodes

< IP address; MAC address; TTL>

TTL (Time To Live): time after which address mapping will be forgotten (typically 20 min)

Question: how to determineMAC address of Bknowing B’s IP address?

1A-2F-BB-76-09-AD

58-23-D7-FA-20-B0

0C-C4-11-6F-E3-98

LAN

237.196.7.23

237.196.7.78

237.196.7.14

237.196.7.88

Page 95: Tutorial&info,networks basics

ARP protocol: Same LAN A wants to send datagram to B, and B’s MAC address not in A’s ARP

table.

A broadcasts ARP query packet, containing B's IP address Dest. MAC address = FF-FF-FF-FF-FF-FF all machines on LAN receive ARP query

B receives ARP packet, replies to A with its (B's) MAC address frame sent to A’s MAC address (unicast)

A caches (saves) IP-to-MAC address pair in its ARP table until information becomes old (times out)

soft state: information that times out (goes away) unless refreshed

ARP is “plug-and-play”: nodes create their ARP tables without intervention from net administrator

Page 96: Tutorial&info,networks basics

Star topology Nowadays, star topology prevails (يسود) Connection choices: hub or switch

hub orswitch

Page 97: Tutorial&info,networks basics

Ethernet Frame Structure

Sending adapter encapsulates IP datagram (or other network layer protocol packet) in Ethernet frame

Preamble: 7 bytes with pattern 10101010 followed

by one byte with pattern 10101011 used to synchronize receiver, sender

clock rates

Page 98: Tutorial&info,networks basics

Ethernet Frame Structure – Cont.

Addresses: 6 bytes If adapter receives frame with matching destination

address, or with broadcast address (eg ARP packet), it passes data in frame to net-layer protocol

Otherwise, adapter discards frame

Type: indicates the higher layer protocol (mostly IP)

CRC: checked at receiver, if error is detected, the frame is simply dropped

Page 99: Tutorial&info,networks basics

Hubs

Hubs are essentially physical-layer repeaters: bits coming from one link go out all

other links at the same rate no frame buffering Adapters not Hub detect collisions

hub

Page 100: Tutorial&info,networks basics

Interconnecting with hubs Backbone hub interconnects LAN segments Extends max distance between nodes But individual segment collision domains

become one large collision domain

hub

hubhub

Backbone hub

Page 101: Tutorial&info,networks basics

Switch Link layer device

stores and forwards Ethernet frames examines frame header and selectively

forwards frame based on MAC destination address

when frame is to be forwarded on segment, uses CSMA/CD to access segment

Transparent hosts are unaware of presence of switches

Plug-and-play, self-learning switches do not need to be configured

Page 102: Tutorial&info,networks basics

Forwarding

• How do determine onto which LAN segment to forward frame?• Looks like a routing problem...

hub

hubhub

switch1

2 3

Page 103: Tutorial&info,networks basics

Self Learning

A switch has a switch table Entry in switch table:

(MAC Address, Interface, Time Stamp) stale entries in table dropped (TTL can be

60 min) Switch learns which hosts can be reached

through which interfaces when frame received, switch “learns”

location of sender: incoming LAN segment records sender/location pair in switch table

Page 104: Tutorial&info,networks basics

Filtering/ForwardingWhen switch receives a frame:

index switch table using MAC dest addressif entry found for destination

then{ if dest on segment from which frame arrived

then drop the frame else forward the frame on interface

indicated } else flood

forward on all but the interface on which the frame arrived

Page 105: Tutorial&info,networks basics

Switch ExampleSuppose C sends frame to D

• Switch receives frame from from C– notes in bridge table that C is on interface 1

– because D is not in table, switch forwards frame into interfaces 2 and 3

• Frame received by D

address interface

ABEGC

11231

hub

hub hub

switch

A

B CD

EF

G H

I

12 3

Page 106: Tutorial&info,networks basics

106

Switch ExampleSuppose D replies back with frame to C.

• Switch receives frame from from D– notes in bridge table that D is on interface 2

– because C is in table, switch forwards frame only to interface 1

• Frame received by C

hub

hub hub

switch

A

B CD

EF

G H

I

address interface

ABEGCD

112312

Page 107: Tutorial&info,networks basics

107

Switch: Traffic Isolation Switch installation breaks subnet into LAN

segments Switch filters packets:

same-LAN-segment frames not usually forwarded onto other LAN segments

segments become separate collision domains

hub hub hub

switch

collision domain collision domain

collision domain

Page 108: Tutorial&info,networks basics

108

Switches: Dedicated Access Switch with many

interfaces Hosts have direct

connection to switch No collisions; full

duplex

Switching: A-to-A’ and B-to-B’ simultaneously, no collisions

switch

A

A’

B

B’

C

C’

Page 109: Tutorial&info,networks basics

109

Switches vs. Routers Both store-and-forward devices

routers: network layer devices (examine network layer headers)

switches are link layer devices Routers maintain routing tables, implement routing algorithms Switches maintain switch tables, implement filtering, learning

algorithms

Switch

Page 110: Tutorial&info,networks basics

110

Summary Comparison

hubs routers switches

traffi c isolation

no yes yes

plug & play

yes

no

yes

optimal routing

no

yes

no