Académique Documents
Professionnel Documents
Culture Documents
Chapter 1:
Network Fundamentals
Review
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 2
Introduction to
Networks
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 3
Introduction to Networks
1960 1970: Mainframes + dumb terminals.
1981: IBM PC
Network were introduced to interconnect this distributed
PCs.
A data network is a network that allows computer to
exchange data.
Internetwork is a collection of individual networks
connected by networking devices and function as a large
network (ex. Internet).
First networks were LANs (small geographic area).
WANs were introduced to interconnect these LANs.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 4
Protocols and the
OSI Model
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 5
OSI Model
1984 ISO released the seven-layer OSI Model
Upper layers: Application issues.
Lower layers: Transport issues
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 6
Protocols
A protocol is a set of rules.
Two computers must use the same protocol to
communicate.
Data communication protocol is analogous to human
languages.
OSI model provides a framework for the communication
protocols used between computers.
The most widely used network protocol suite is TCP/IP
AppleTalk (Apple) and SNA (IBM) are two other examples
(rarely used).
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 7
OSI Layers (1/3)
Layer 1: Physical
Electrical and mechanical conditions for activating, maintaining and
deactivating a physical link between devices. Includes voltages levels,
maximum cable length, data rates, connector types.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 8
OSI Layers (2/3)
Layer 3: Network
Routing protocols: Determine the best path to reach a destination
(RIP, EIGRP, OSPF, BGP).
Routed protocols: encapsulates the frames in datagrams (IP).
Datagram: Includes addressing and controls information.
Packet: Pieces of data in which a datagram is divided.
Layer 4: Transport
Concerned with end-to-end connections between the source and
destination
TCP: Connection-oriented, uses sequence numbers.
UDP: Connectionless best-effort transport, only send the data and
relies on upper-layer error-detection mechanisms.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 9
OSI Layers (3/3)
Layer 5 7: Upper layers
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 10
Communication Among OSI Layers
The grouping data used to exchange information at a
particular OSI layer is known as protocol data unit (PDU).
Both sides of peer layers that are communicating must
support the same protocol.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 11
LANs and WANs
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 12
LANs and WANs
LANs: WANs
High Speed Lower speeds (generally)
Inexpensive/One time cost More expensive
User owned Service Provider may be
Limited reach required (monthly fee usually)
Wider reach
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 13
Network Devices
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 14
Terminology
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 15
Hubs and Switches
Hubs:
Works at Layer 1
Lack intelligence, sends all data received in any port to all other ports
All devices connected to it are in one collision domain and one
broadcast domain.
Switches
Works at layer 2
Only frames that are addressed to a specific device are forwarded to
the port on which the device is connected.
Read the source and destination MAC addresses in the frames.
Devices connected in different switch ports are in different collision
domain, but (by default) in the same broadcast domain.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 16
Routers
Layer 3 device.
Allows communication between different LANs though
either WAN or Internet.
Read source and destination logical (IP) address.
Block broadcast and multicast by default.
Devices connected in different port are in different collision
AND broadcast domain.
Can generate broadcast if necessary, but dont pass
received broadcasts.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 17
Introduction to
the TCP/IP Suite
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 18
TCP/IP Suite
Most widely used protocol suite
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 20
TCP/IP Transport Layer Protocols 1/7
Transmission Control Protocol (TCP):
Connection-oriented, end-to-end reliable transmission.
Before sending data, a TCP connection is established.
Data is acknowledged and uses a sequence number.
Any data not received properly is retransmitted.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 21
TCP/IP Transport Layer Protocols 2/7
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 22
TCP/IP Transport Layer Protocols 3/7
Ports Numbers:
Are used by TCP and UDP to distinguishes among multiple
applications running on a single device.
0 1023: Well-known ports (normally protocols).
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 24
TCP/IP Transport Layer Protocols 5/7
Establishing a TCP connection:
Process called Three-Way Handshake
Uses SYN and ACK bits in the code bits fields of the TCP segment.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 25
TCP/IP Transport Layer Protocols 6/7
TCP Windowing:
Process of adjusting the windows size field in a segment.
That field indicates the number of octets a device is willing to accept
before it must send an acknowledgement.
Each host can have different windows size.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 26
TCP/IP Transport Layer Protocols 7/7
Closing a TCP connection:
Process called Four-Way Handshake
Uses Fin and ACK bits in the code bits fields of the TCP segment.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 27
TCP/IP Internet Layer Protocols 1/3
IP:
Routed protocol.
Provides connectionless, best-effort delivery of datagrams (packets).
A unique IP address is assigned to each interface of every device in
the network.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 28
TCP/IP Internet Layer Protocols 2/3
IPv4 Datagrams
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 29
TCP/IP Internet Layer Protocols 3/3
IPv6 Datagrams
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 30
Routing
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 31
Routing
Behavior example
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 32
Routers works at the lower Three OSI Layers
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 33
Routing tables
Contains a list of all networks that are attainable by the
router.
Typically contains:
How the route was learned
Network address of the router from which the route was learned (if
applicable).
Interface to reach the network
Metric of the route
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 34
Routing protocols
Used by routers to exchange routing information.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 35
Addressing
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 36
Physical and logical address
Physical addresses:
MAC addresses.
Is assigned to interface cards when manufacturing.
Does not change
Logical Addresses:
Defined statically by an administrator or dynamically by a server.
Has two main parts:
Network that the device is on.
Device number in that network
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 37
Routing and Network Layer Addresses
Routers primary interest is the network portion of a
destination address.
Compares destination address to its routing table.
If the destination network is directly attached, router
forward the packet to the specific host, using ARP.
Address Resolution Protocol (ARP) is used to find the MAC
address given a specific IP address.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 38
IPv4 Addresses
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 39
IPv4 Address Classes
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 40
Private and Public IPv4 Addresses
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 41
IPv4 Subnets
By default, subnets masks are:
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 42
IPv6 Addresses
128 bits long (opposed to Leading 0s can be
the 32 bits of IPv4) grouped and omitted. At
least one hex digit is
required per group.
Typically notated in
hexadecimal Consecutive groups of 0s
can be grouped and
replaced by :: This can be
only done once.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 43
IPv6 Address Types 1/2
Aggregatable Global Unicast:
Equivalent to public IPv4 addresses
Can be publicly routed
Start with 001 (2000 3FFF. Also noted as 2000::/3)
Link-Local Unicast:
Assigned to all IPv6 devices interfaces
Used specifically for local link traffic
Start with 1111 1110 10 (FE80::/10)
Anycast:
New type in IPv6, replaces the Broadcast address in IPv4
Interfaces from a group of devices are assigned the same Anycast
address.
The closest device to the host, responds.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 45
Switching Types
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 46
Layer 2 switching 1/2
The heart of Layer 2 switch is its MAC address table.
Also known as Content-Addressable Memory (CAM)
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 47
Layer 2 switching 2/2
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 48
Layer 3 switching
A Layer 3 switch is a router with some functions
implemented in hardware.
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 50
Redundancy in Layer 2 Switched Networks
Redundancy is generally desired.
But, in switched networks it can cause several problems:
Broadcast storms
Devices can receive multiplies copies of the same frame
Inaccurate MAC address table
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 51
STP terminology and operation
One root bridge:
Lowest Bridge ID (Priority MAC Address)
All ports in root bridge are Designates (forwarding)
One root port per non root bridge:
Lowest cummulative path cost to the root (higher speed, lower cost)
In case of tie, port that received the lowest Bridge ID.
In case of tie, lowest port ID (port priority port index)
One designated port per segment
Similar election process as root port
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 52
STP Port States
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 53
Rapid STP
Rapid STP (RSTP) is defined in IEEE 802.1w
Faster convergence
RSTP ports can take different roles:
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 55
Virtual LANs
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 56
VLAN Membership
Static:
The administrator specifies in the switch which ports belong to each
VLAN.
If the device is moved, the switch (es) must be reconfigured.
Dynamic:
A VLAN Membership Policy Server (VMPS) is needed.
VMPS information consists of MAC address-to-VLAN map
The device stays in the same VLAN no matter in what port is
connected
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 57
Trunks
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 58
STP and VLANs
Cisco developed per-VLAN Spanning Tree Plus (PVST+)
Allows one instance of STP running per VLAN
PVST+ permits redundant physical links to be used for
different VLANs
Its a load-balancing mechanism
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 59
Summary
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 60
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 61
Chapter 1
2007 2010, Cisco Systems, Inc. All rights reserved. Cisco Public 62