building a network with osi

72
Building a Network with OSI Chapter 3

Upload: garron

Post on 08-Jan-2016

38 views

Category:

Documents


0 download

DESCRIPTION

Building a Network with OSI. Chapter 3. Contents. Explain the major functions of network hardware Describe the functions of network software Define each of these functions as part of the OSI seven-layer model. Overview. The Big Job. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Building a Network with OSI

Building a Network with OSI

Chapter 3

Page 2: Building a Network with OSI

Contents

• Explain the major functions of network hardware• Describe the functions of network software• Define each of these functions as part of the OSI

seven-layer model

Page 3: Building a Network with OSI

Overview

Page 4: Building a Network with OSI

The Big Job

• Whenever you have a big job to do, it helps to break it down into discrete chunks or functions– For example, moving your family from one city to

another could be broken down into:• What to move• How to pack• How to load the van• How to unload the van

• The job of moving data from one place to another is also a big job

Page 5: Building a Network with OSI

OSI Seven-Layer Model

• The big job of moving data from one place to another is broken down into functions defined by the OSI Seven-Layer Model

Page 6: Building a Network with OSI

Case Study Example

• Let’s look at the process of networking from a conceptual viewpoint– Assume we are just

trying to move a file from one PC to another in a small office

– One of the workers has just completed a new employee handbook

– She needs to transfer the Word document to the other worker for review

Page 7: Building a Network with OSI

Case Study Example

• The file could be copied to a diskette and handed over to the other worker – called Sneakernet – but that’s not necessary today

• The document may be transferred using the network

• The next section examines the various hardware required

Page 8: Building a Network with OSI

Let’s Get Physical

Page 9: Building a Network with OSI

Cables

• Most networks use a cable like that shown as a physical channel to move the bits of data

Unshielded Twisted Pair (UTP) cable

Uses 4 wires: 2 for sending and 2 for

receiving data

Page 10: Building a Network with OSI

Hubs

• Each computer system has a cable leading to a device called a hub– Usually located in a

closet• The hub sends the data

received from one system to all the other systems attached to it

Page 11: Building a Network with OSI

Network Interface Card

• Network Interface Cards (NICs – pronounced “Nicks”) are installed in PCs

• Network cables are attached to the NICs

Page 12: Building a Network with OSI

NIC to Hub Connections

• Cables run from the NIC in the PC to a jack on the wall

• Cables run through the walls to the closet where they connect to a hub

Page 13: Building a Network with OSI

Network Cabling System

Page 14: Building a Network with OSI

Network Interface Cards

• Since all the networked systems are connected to the same hub, each system must have a unique identifier

• Media Access Control (MAC) address– A unique address burned

into a ROM chip on the network card

– Each MAC address is 12 hex characters or 48 bits in length

MAC address printed on surface of chip – it’s

burned inside the chip.

Page 15: Building a Network with OSI

MAC Addresses

• MAC addresses are 48 bits long• Usually represented using hexadecimal

characters (12 hex digits = 48 bits)– Here’s a typical MAC address:

004005-607D49

Identifies the manufacturer

Unique serial number determined by the manufacturer

No two MAC addresses are ever the same!

Page 16: Building a Network with OSI

WINIPCFG

• Used on Windows 98/Me systems to view network configuration

MAC address

Brian Schwarz
Is there a way to get a cleaner screen snapshot?
Page 17: Building a Network with OSI

ipconfig /all

• Used on Windows NT/2000/XP systems to view network configuration

MAC address

Page 18: Building a Network with OSI

Bits

• A MAC address is a series of ones and zeros called bits

• Data is sent using pulses of electricity, light, or radio waves

Brian Schwarz
the second bullet seems out of place here - I don't think talking about MAC addresses is the best place to introduce the concept of different signalling types. Accurate information - I just don't think the flow works. Maybe split into multiple slides or hold off discussing signalling technologies unitl you get to Ethernet and Wireless?
Page 19: Building a Network with OSI

Frames

• Data is sent across the network in frames• Frames are discrete chunks of data

Page 20: Building a Network with OSI

Fields

• Frames are made up of fields that contain information

• Frames typically contain the recipient’s MAC address, the sender’s MAC address, the data itself, and a cyclic redundancy check (CRC) for error checking

Page 21: Building a Network with OSI

Data

• What is inside the data part of the frame?– It could be part of a file, a print job, a web page,

anything– NICs do not care what the data, or payload, is

Page 22: Building a Network with OSI

Frame Size

• Different networks use different sizes of frames• Many frames hold about 1500 bytes of data• The sending software breaks up large amounts

of data into smaller chunks• The receiving station must then put the chunks

back together in the proper order

Page 23: Building a Network with OSI

Processing Framesq

• All devices on the network see the frame, but only the device that it is addressed to will process it– Every frame

is received by every NIC

– The MAC address is used to decide if the frame belongs to a given device

Brian Schwarz
Brian Schwarz
the text in this diagram is way too small - maybe this should be two different slides?
Page 24: Building a Network with OSI

Getting Data on the Cable

• Only one system may speak at a time since the cable is shared

• Processes are used to keep two NICs from talking at the same time

Page 25: Building a Network with OSI

Getting To Know You

• How does the sending NIC know the MAC address of the NIC to which it is sending data?

• Most of the time the two devices have talked before, so the destination MAC address is already known

• If the MAC address is not known, then a broadcast message is sent over the network– The destination device will respond by sending its

MAC address– A broadcast MAC address is FF-FF-FF-FF-FF-FF

Brian Schwarz
The speaker notes on this page make no sense to me. The IP address in no way replaces the MAC - you need both.
Page 26: Building a Network with OSI

Moving Frames – Step 1

• The sending system’s network software hands some data to the NIC

• The NIC begins building a frame

Brian Schwarz
The text here is way too small, and the diagram is a bit too busy.
Page 27: Building a Network with OSI

Moving Frames – Step 2

• After the NIC creates the frame, it adds the CRC and data to it

• It also puts its MAC address and the destination’s MAC address in the frame

Page 28: Building a Network with OSI

Moving Frames – Step 3

• When no other NIC is using the cable, it sends the frame through the cable

Page 29: Building a Network with OSI

Moving Frames – Step 4

• The frame propagates down the wire to the hub• The hub creates a copy of the frame to send to

every other system

• The receiving device processes the frame

Page 30: Building a Network with OSI

Moving Frames – Step 5

• The receiving station checks the CRC value in the frame– If the value matches what it should, then the NIC

sends the data portion to the network operating system for processing

– If the value does not match, the frame has errors and must be resent

Page 31: Building a Network with OSI

Beyond the Single Wire – Network Software

Brian Schwarz
This title doesn't make sense to me for the slides that immediately follow.
Page 32: Building a Network with OSI

Beyond the Single Wire

• What if one system is using a modem to dial into the network?

• What if one of the systems is a Macintosh?

Page 33: Building a Network with OSI

Routers

• A single network with single hub can only support up to 1,024 computers before the network becomes too slow

• Routers are used to chop large networks up into smaller ones

Brian Schwarz
The 1024 limit on PCs is a hard theoretical limit on Ethernet "up to about" is too wishy-washy
Brian Schwarz
Shouldn't you talk about bridges before you get to routers?
Page 34: Building a Network with OSI

Network Protocols

• Network protocols define rules for how systems are addressed, how to chop data up into chunks, how to deal with routers, and so on

• As a network grows a more universal addressing method than MAC addresses is needed– TCP/IP are the most popular universal addressing

protocols

Page 35: Building a Network with OSI

TCP/IP

• Transmission Control Protocol (TCP)• Internet Protocol (IP)– Gives each device on the network a unique numeric

identifier– IP addresses consist of four 8-bit numbers– Each 8-bit number ranges from 0 to 255

• 192.168.4.232

– No two systems on the same network share the same IP address

Brian Schwarz
a slide showing the binary would be helpful here.
Page 36: Building a Network with OSI

DHCP

• IP addresses must be manually configured on each device

• Or they may be automatically configured using Dynamic Host Configuration Protocol (DHCP)

• Each system in a network has two addresses– MAC address burned into a chip on the NIC– IP address configured through software

Brian Schwarz
this makes it sound like IP is the only way you can have a network - they need to at least conceive of IPX and NetBEUI.
Page 37: Building a Network with OSI

Sample Network with Addresses

Page 38: Building a Network with OSI

Packets

• The network software creates a packet that contains the sending and receiving IP addresses along with the data

• The packet is enclosed within a frame that contains the sending and receiving MAC addresses

IP packet IP packet with frame added

IP packet in a frame

Brian Schwarz
"IP packet with frame added" makes it sound like the frame is inside the IP packet, not vis versa.
Page 39: Building a Network with OSI

Connecting to the Internet

• To connect the local network to the Internet a router is needed

• The local hub is connected to the router• The router is connected to the Internet through a

phone line• The phone line uses a different kind of frame, so

the router strips the frame and creates a new one

Brian Schwarz
lots of bad assumptions here - in particular the assumption that the router will always connect to a phone line, that each hub will directly connect to the router. I would kill this slide or completely rewrite it.
Page 40: Building a Network with OSI

Connecting to the Internet

Adding a router to the network

Router removing network frame and adding one for telephone line

Page 41: Building a Network with OSI

Moving through the Internet

• The router strips off the MAC addresses and uses the type of addressing the phone company uses instead

• The frame uses the IP address to guide it to the receiving system

• The receiving router strips off the telephone frame and adds the MAC address for the receiving system

• The NIC strips off the MAC header and hands the frame off to the NOS

Brian Schwarz
Again, way too many assumptions about the phone company being your connection to the internet. Not true for a signifcant number of home users, but even more questionable with regard to corporate networks. you can argue that the phone company handles a lot of the other kinds of connections (T1, etc) but I'm concerned that your planting a misconception here that you'll have to correct down the road.
Page 42: Building a Network with OSI

Assembly and Disassembly

• Most data is much larger than a single frame• Network protocols chop up the data into smaller

packets and gives each one a sequence number• The sequence numbers are used by the receiving

system to put the packets back in order and to assemble them

• Transmission Control Protocol (TCP) is one such protocol

Page 43: Building a Network with OSI

Sessions

• If the receiving system also has a printer to share on the network, then it may receive packets for print jobs as well as packets for files

• The sending system must also contact the receiving system to make sure it is ready to handle a print job as well

• The software that handles these processes is called session software

Page 44: Building a Network with OSI

Multiple Sessions

Single session

Multiple sessions

Brian Schwarz
text in diagrams is way too small.
Page 45: Building a Network with OSI

Standardized Formats

• Macintoshes and PCs use very different formats• Standardized formats have been created that

allow very different operating systems to exchange data

Brian Schwarz
formats for what? Data?
Page 46: Building a Network with OSI

VPNs

• Virtual Private Networks (VPNs) enable a user away from the office to connect to the corporate network via the Internet

Page 47: Building a Network with OSI

Encryption

• Many networks encrypt data to prevent unauthorized access

• Both the sending and receiving system must know the encryption method used

Page 48: Building a Network with OSI

Network Applications

• Users use network applications to exchange data on a network– My Network Places in

Windows for files– Internet Explorer or

Netscape Navigator for web pages

– Outlook Express for e-mail

Page 49: Building a Network with OSI

Copy a File Across a Network

• The next few slides illustrate a typical process that takes place to copy a file from one machine to another over the network

Page 50: Building a Network with OSI

My Network Places

• The receiving station finds the remote file using My Network Places

Brian Schwarz
Your subject in this sentence should be "the user" - network neighborhood is a display tool and doesn't find anything.
Page 51: Building a Network with OSI

Moving the Word Document

• Drag and drop the Word document from My Network Places to the Desktop

Page 52: Building a Network with OSI

Disassembly

• The sending system chops the packet into segments and assigns sequence numbers

Page 53: Building a Network with OSI

Addressing

• Each packet is assigned addresses

Page 54: Building a Network with OSI

Assembling the Frame

• The NIC adds a frame around each packet containing the MAC addresses

Page 55: Building a Network with OSI

Grabbing the Frame

• When the network cable is not busy, the frame is sent down the wire

• Every NIC looks at the frame. Only the receiving device grabs it

Page 56: Building a Network with OSI

Checking the CRC

• The receiving station checks the CRC to make sure the frame doesn’t have an error

• It then strips off the frame header and passes it up to the next layer

Page 57: Building a Network with OSI

Missing Packets

• If one of the packets is missing, the receiving device asks for it to be resent

Page 58: Building a Network with OSI

It’s Amazing!

• Once the document has been reassembled, it is sent to the proper application

• It’s amazing but almost all of this process is not seen by the user

Page 59: Building a Network with OSI

The OSI Seven-Layer Model

Page 60: Building a Network with OSI

Early Networking

• In the early days of networking each company designed the networking process from the ground up

• These proprietary systems could not talk to each other

• For networking to grow a model needed to be created to standardize the process

Page 61: Building a Network with OSI

OSI Model

• The International Organization for Standardization (ISO) proposed the Open System Interconnection (OSI) Model

• The OSI Model is a seven-layer model that describes the networking process

Page 62: Building a Network with OSI

OSI’s Seven Layers

Layer 7 Application

Layer 6 Presentation

Layer 5 Session

Layer 4 Transport

Layer 3 Network

Layer 2 Data Link

Layer 1 Physical

Page 63: Building a Network with OSI

Modular Design

• Each protocol is designed to deal with a specific layer

• Each protocol needs to know how to interface with the layer immediately above and below it

Page 64: Building a Network with OSI

Layer 7 - Application

• Defines a set of tools that programs may use to access the network– HTTP– FTP– Microsoft APIs

Page 65: Building a Network with OSI

Layer 6 - Presentation

• Presents data from the sending system in a form that applications on the receiving system can understand– ASCII and Unicode text formats– Encryption– Compression

• Translates between different machine languages

Page 66: Building a Network with OSI

Layer 5 - Session

• Manages the connections between machines on the network– Connections may be for file transfers, for print jobs,

for e-mail, or many other possibilities

• Allows machines to keep track of who they are talking to

Page 67: Building a Network with OSI

Layer 4 - Transport

• Breaks up data it receives from the upper layers into smaller pieces for transport

• On the receiving side the packets are reassembled from lower layers

• Provides for error checking• Layer 4 is a pivotal layer in the process

– Lower layers are concerned with moving data from point A to point B

– Upper layers deal with the data

Page 68: Building a Network with OSI

Layer 3 - Network

• Helps to get packets from network to network by adding unique identifiers (like IP addresses) to the packets

Page 69: Building a Network with OSI

Layer 2 – Data Link

• Defines the rules for accessing and using the Physical layer

• Specifies the rules for identifying devices• Determines which machine may use the network

at a given time• Checks for errors

Page 70: Building a Network with OSI

Layer 1 - Physical

• Defines the physical form taken by data when it travels across a cable– Defines how ones and zeros are turned into actual

electrical signals on a wire, light pulses on a fiber optic cable, or radio waves in a wireless network

Page 71: Building a Network with OSI

NICs and Layers

• Network Interface Cards work at both layer 2 and layer 1– When it is said that a NIC is a layer 2 device, keep in

mind that it also functions as a layer 1 device

Page 72: Building a Network with OSI