introduction to networking.… · presentation session transport network data link physical ......

54
Introduction to Networking Chapters 1 and 2 www.classdemo.com

Upload: vuhanh

Post on 07-Aug-2018

226 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Introduction to NetworkingChapters 1 and 2

www.classdemo.com

Page 2: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Outline

• Computer Network Fundamentals• Defining a Network

• Networks Defined by Geography

• Networks Defined by Topology

• Networks Defined by Resource Location

OSI Reference Model

• The TCP/IP Stack

• Common Application Protocols

www.classdemo.com

Page 3: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Computer Network Fundamentals

• The Purpose of Networks• …is to make connections

• File sharing between two computers

• E-mail

• Voice over IP (VoIP), to replace traditional telephony systems

www.classdemo.com

Page 4: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Sample Computer Network

www.classdemo.com

Page 5: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Networks Defined by Geography

• LAN: Local-Area Network

• WAN: Wide-Area Network

www.classdemo.com

Page 6: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

LAN

802.3

802.11x

www.classdemo.com

Page 7: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

WAN

Two geographically dispersed locations

MPLS

ATM

Frame Relay

www.classdemo.com

Page 8: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Networks Defined by Geography

www.classdemo.com

Network Category Description

MAN Covers an area equivalent to a city or other municipality.

CANCovers an area equivalent to an academic campus or business

park. A CAN is typically owned or used exclusively by an entity.

PANConnects two to three computers with cables and is most often

seen in small or home offices.

WPAN

Connects wireless devices in very close proximity but not through

a Wireless Access Point (WAP).

Infrared and Bluetooth are some technologies used for connecting

devices in a WPAN.

Page 9: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Networks Defined by Topology

• Physical VS. Logical • The way components are physically interconnected determines the physical topology.

• The actual traffic flow determines the logical topology.

www.classdemo.com

Page 10: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Physical Star

The computers are physically connect to a centralized device (MAU)

www.classdemo.com

1

2

34

5

Page 11: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Logical Ring

The traffic flow actually loops round-and-round the network.

www.classdemo.com

1

2

34

5

Page 12: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

T-connectorTerminator

Nodes are arranged in a

linear format

Physical Bus

www.classdemo.com

31 2

Page 13: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Physical Ring

Traffic flows in a circular fashion around a closed network loop (that is, a ring).

www.classdemo.com

1

2

34

5

Flow of data is unidirectional

to avoid collisions

Has upstream and

downstream neighbors

Page 14: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Logical Bus

www.classdemo.com

Hub

Page 15: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Hub and SpokeA WAN link from each remote site (that is, a spoke site ) to the main site (that is, the hub site.

www.classdemo.com

Page 16: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Full Mesh

Directly connects every site to every other site.

Highly fault tolerant

n(n-1)/2

www.classdemo.com

Page 17: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Partial -MeshHybrid of the previously described hub-and-spoke topology and full-mesh topology.

Designed to provide an optimal route between selected sites, while avoiding the expense of interconnecting every site to every other site.

www.classdemo.com

Page 18: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Networks Defined by Resource Location

• Centralized

• Client/Server

• Peer-to-Peer

www.classdemo.com

Page 19: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Centralized

Hosts

Terminals

www.classdemo.com

Connect to the host via

terminals or terminal emulators

Page 20: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Client/Server

Commonly used by businesses.

Administration is easier.

www.classdemo.com

Page 21: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Peer – to –Peer Allow interconnected devices (for example, PCs) to share their resources with one another.

Commonly seen in smaller businesses and in homes

www.classdemo.com

Page 22: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

OSI Reference Model

www.classdemo.com

Please Do Not Throw Sausage Pizza Away

Application

Presentation

Session

Transport

Network

Data link

Physical

Sender Receiver

Page 23: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

OSI 7 Layer Model (encapsulation)

www.classdemo.com

Page 24: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

OSI 7 Layer Model (encapsulation)

www.classdemo.com

Page 25: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Application

www.classdemo.com

• To provide services and utilities so that applications can access the network.

Page 26: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Presentation

Encode (Format)

Compress (LZMA)

Encrypt (SSL, TLS)

www.classdemo.com

Page 27: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Session

www.classdemo.com

• A session can be thought of as a conversation that needs to be treated separately from other sessions to avoid intermingling of data from different conversations.

Page 28: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Session

netstat -a

www.classdemo.com

Page 29: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Transport

www.classdemo.com

• Messages are taken from upper layers (Layers 5–7) and are encapsulated into segments for transmission to the lower layers (1–3)

Page 30: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Transport

• TCP

• Connection

• Sequential Numbering

• Windows

• ACK

• UDP

• Connectionless

• Single Segments

• Streaming

• No ACK

www.classdemo.com

Page 31: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

TCP – Windowing/Buffering

www.classdemo.com

• One or more segments are sent at one time, and a receiver can acknowledge the receipt of all the segments in a window with a single acknowledgment.

Page 32: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

TCP Header

www.classdemo.com

Page 33: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

UDP Header

www.classdemo.com

Page 34: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Network

www.classdemo.com

• Primarily concerned with forwarding data based on logical addresses.

Page 35: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Packet Header

www.classdemo.com

Page 36: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Data Link

www.classdemo.com

• Concerned with packaging data into frames and transmitting those frames on the network.

Page 37: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Frame Header

www.classdemo.com

Page 38: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Physical

Concerned with the transmission of bits on the network along with the physical and electrical characteristics of the network.

www.classdemo.com

Page 39: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Physical - Current State Modulation

www.classdemo.com

Page 40: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Physical - Transition Modulation

www.classdemo.com

Page 41: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Physical - Wiring Connectors

www.classdemo.com

Page 42: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Bandwidth Usage

BROADBAND - ANALOG

• Divides the bandwidth into different channels

BASEBAND - DIGITAL

• Uses all available frequencies

www.classdemo.com

Page 43: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Multiplexing Strategy

Time-division multiplexing (TDM)

www.classdemo.com

Page 44: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Multiplexing Strategy

www.classdemo.com

Statistical time-division multiplexing

Page 45: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Multiplexing Strategy • Frequency division multiplexing

www.classdemo.com

Page 46: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

OSI – TCP/IP

www.classdemo.com

Page 47: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Port Numbers

www.classdemo.com

Page 48: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Application Layer Protocols – Pt 1

Protocol Description TCP Port UDP Port

FTP File Transfer Protocol: Transfers files with a remote host (typically requires authentication of user credentials)

20 and 21

SSH Secure Shell: Securely connect to a remote host (typically via a terminal emulator)

22

SFTP Secure FTP: Provides FTP file-transfer service over a SSH connection

22

SCP Secure Copy: Provides a secure file-transfer service over a SSH connection and offers a file’s original date and time information, which is not available with FTP

22

Telnet Telnet: Used to connect to a remote host (typically via a terminal emulator)

23

www.classdemo.com

Page 49: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Application Layer Protocols – Pt 2

Protocol Description TCP Port UDP Port

rsh Remote Shell: Allows commands to be executed on a computer from a remote user

514

DNS Domain Name System: Resolves domain names to corresponding IP addresses

53 53

NetBIOS Network Basic Input/Output System: Provides network communication services for LANs that use NetBIOS

139 137, 138

SMB Server Message Block: used to share files, printers, and other network resources

445

TFTP Trivial File Transfer Protocol: Transfers files with a remote host (does not require authentication of user credentials)

69

www.classdemo.com

Page 50: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Application Layer Protocols – Pt 3

Protocol Description TCP Port UDP Port

DHCP Dynamic Host Configuration Protocol: Dynamically assigns IP address information (for example, IP address, subnet mask, DNS server’s IP address, and default gateway’s IP address) to a network device

67, 68

HTTP Hypertext Transfer Protocol: Retrieves content from a web server 80

HTTPS Hypertext Transfer Protocol Secure: Used to securely retrieve content from a web server

443

SMTP Simple Mail Transfer Protocol: Used for sending e-mail 25

POP3 Post Office Protocol Version 3: Retrieves e-mail from an e-mail server

110

www.classdemo.com

Page 51: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Application Layer Protocols – Pt 4

Protocol Description TCP Port UDP Port

IMAP4 Internet Message Access Protocol Version 4: Retrieves e-mail from an e-mail server

143

NNTP Network News Transport Protocol: Supports the posting and reading of articles on Usenet news servers

119

NTP Network Time Protocol: Used by a network device to synchronize its clock with a time server (NTP server)

123

LDAP Lightweight Directory Access Protocol: Provides directory services (for example, a user directory— including username, password, e-mail, and phone number information) to network clients

389

RTSP Real Time Streaming Protocol: Communicates with a media server (for example, a video server) and controls the playback of the server’s media files

554 554

www.classdemo.com

Page 52: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Application Layer Protocols – Pt 5

Protocol Description TCP Port UDP Port

RDP Remote Desktop Protocol: A Microsoft protocol that allows a user to view and control the desktop of a remote computer

3389

SNMP Simple Network Management Protocol: Used to monitor and manage network devices

161

SIP Session Initiation Protocol: Used to create and end sessions for one or more media connections, including Voice over IP calls

5061 5060

MGCP Media Gateway Control Protocol: Used as a call control and communication protocol for Voice over IP networks

2427, 2727

H.323 H.323 is a signaling protocol that provides multimedia communications over a network

1720

RTP Real-time Transport Protocol: Used for delivering media-based data over networks, such as Voice over IP

5004, 5005 5004, 5005

www.classdemo.com

Page 53: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Analyze a scenario and determine the corresponding OSI layer

Layer Function Hardware / Other PDU

7. Application To provide utilities so that applications can access the network.

Content Switches, Proxy Servers

6. Presentation Encode, Compress, Encrypt PDF, jpg, ASCII, TIFF

5. Session Establish and maintain communications Sockets

4. Transport Ensure reliable delivery of data Gateway / TCP, UDP Segment

3. Network Find the best route Routers / RIP, OSPF, EIGRP, BGP Packet

2. Data Link Addressing, Error Detection, Carrier Sense Switches / Vlans / STP, VTP Frame

1. Physical The electrical characteristics or voltage Hubs, Media Bits

www.classdemo.com

Page 54: Introduction to Networking.… · Presentation Session Transport Network Data link Physical ... server (for example, a video server) and controls the playback of the server’s media

Introduction to NetworkingChapters 1 and 2

www.classdemo.com