Chapters 1-2 Advanced Network
Chapters 1-2 Advanced Network
Topic1: Internetworking
1
All Rights reserved For JUST
Communications and Services
Certifications
2
All Rights reserved For JUST
Cisco Icons and Symbols
3
All Rights reserved For JUST
Networking Devices
Equipment that connects directly to a network segment is referred to
as a device.
Network devices include all the devices that connect the end-user
devices together to allow them to communicate.
4
All Rights reserved For JUST
A hub creates one collision
domain and one broadcast
domain
Connects a group of Hosts
5
All Rights reserved For JUST
Switch & Bridges breakup
collision domains
Don’t misunderstand…
bridges/switches are used to
segment networks,
but they will not isolate
broadcast or multicast
packets.
6
All Rights reserved For JUST
Routers create Internetworks
Routers are used to connect networks together
Route packets of data from one network to another
Cisco became the de facto standard of routers because of their high-quality
router products
Routers, by default, break up a broadcast domain
7
All Rights reserved For JUST
LANs
8
All Rights reserved For JUST
WANs
9
All Rights reserved For JUST
Bandwidth
10
All Rights reserved For JUST
Internetworking Devices
11
All Rights reserved For JUST
Internetworking Models
12
All Rights reserved For JUST
13
All Rights reserved For JUST
Why do we need the OSI Model?
To address the problem of networks increasing in size and in number, the
International Organization for Standardization (ISO) researched many network
schemes and recognized that there was a need to create a network model
This would help network builders implement networks that could communicate
and work together
14
All Rights reserved For JUST
Don’t Get Confused.
ISO - International Organization for Standardization
15
All Rights reserved For JUST
The OSI Reference Model
Transport
Network
Data Flow
Layers
Data-Link
Physical
18
All Rights reserved For JUST
Layer 7 - The Application Layer
7 Application This layer deal with
networking applications.
6 Presentation
5 Session Examples:
4 Transport Email
Web browsers
3 Network
2 Data Link PDU - User Data
1 Physical
Each of the layers have Protocol Data Unit (PDU)
19
All Rights reserved For JUST
Layer 6 - The Presentation Layer
22
All Rights reserved For JUST
Layer 3 - The Network Layer
Sometimes referred to as the “Cisco Layer”.
7 Application End to End Delivery
Provide logical addressing that routers use for path
6 Presentation determination
Segments are encapsulated
5 Session Internetwork Communication
Packet forwarding
4 Transport Packet Filtering
Makes “Best Path Determination”
3 Network Fragmentation
1 Physical
23
All Rights reserved For JUST
Layer 2 - The Data Link Layer
Performs Physical Addressing
7 Application This layer provides reliable transit of data
across a physical link.
6 Presentation Combines bits into bytes and
bytes into frames
5 Session Access to media using MAC address
Error detection, not correction
LLC and MAC
4 Transport Logical Link Control performs Link
establishment
3 Network MAC Performs Access method
2 Data Link
1 Physical PDU - Frames
Preamble DMAC SMAC Data length DATA FCS
24
All Rights reserved For JUST
Layer 1 - The Physical Layer
7 Application
6 Presentation
5 Session
This is the physical media through
4 Transport which the data, represented as
electronic signals, is sent from the
3 Network source host to the destination host.
2 Data Link
Move bits between devices
1 Physical Encoding
PDU - Bits
25
All Rights reserved For JUST
Data Encapsulation
Application
Presentation
Session
PDU
Upper-Layer Data
Transport Segment
TCP HeaderUpper-Layer Data
Network Packet
IP Header Data
Physical Bits
0101110101001000010
26
All Rights reserved For JUST
OSI Model Analogy
Application Layer - Source Host
Call your friend and make sure you have his correct
address.
29
All Rights reserved For JUST
OSI Model Analogy
Transport Layer - Source Host
Your friend calls you and tells you he got all 3 boxes
and he is having another friend named Ali reassemble
the bicycle. 36
All Rights reserved For JUST
OSI Model Analogy
Session Layer - Destination
37
All Rights reserved For JUST
OSI Model Analogy
Presentation Layer - Destination
40
All Rights reserved For JUST
Types of Transmission
Unicast
Multicast
Broadcast
41
All Rights reserved For JUST
Type of Transmission
42
All Rights reserved For JUST
Broadcast Domain
A group of devices receiving broadcast frames
initiating from any device within the group
43
All Rights reserved For JUST
Collision
44
All Rights reserved For JUST
Collision Domain
45
All Rights reserved For JUST
Physical Layer
Defines
EIA/TIA-232
• Media type
Ethernet
802.3
Physical
V.35
• Connector type
• Signaling type
802.3 is responsible for LANs based on the carrier sense multiple access
collision detect (CSMA/CD) access methodology. Ethernet is an example
of a CSMA/CD network.
46
All Rights reserved For JUST
Physical Layer: Ethernet/802.3
10Base2—Thin Ethernet
10Base5—Thick Ethernet
Host
Hub
10BaseT—Twisted Pair
Hosts
47
All Rights reserved For JUST
Device Used At Layer 1
Physical
A B C D
49
All Rights reserved For JUST
Layer 2
MAC Layer—802.3
Number of Bytes 8 6 6 2 Variable 4
Preamble Destination Address Source Address Length Data FCS
Ethernet II
uses “Type”
0000.0C xx.xxxx here and
does not use
IEEE Assigned Vendor 802.2.
Assigned
MAC Address
synchronize senders and receivers
50
All Rights reserved For JUST
Devices On Layer 2 (Switches & Bridges)
Data-Link
1 2 3 4 OR 1 2
Switch
Memory
• Each segment is its own
collision domain.
• Broadcasts are forwarded
to all segments.
52
All Rights reserved For JUST
Layer 3 : Network Layer
Network
IP, IPX
• Defines logical source
and destination
Frame Relay
Data-Link
addresses associated 802.2
HDLC
with a specific protocol
Ethernet
• Defines paths through
network
Physical
802.3
EIA/TIA-232
V.35
53
All Rights reserved For JUST
Layer 3 : (cont.)
Logical
Address
172.15.1.1
Network Node
Route determination occurs at this layer, so a packet must include a source and
destination address.
Network-layer addresses have two components: a network component for internetwork
routing, and a node number for a device-specific address. The example in the figure is
an example of an IP packet and address.
54
All Rights reserved For JUST
Layer 3 (cont.)
Address Mask
172.16.122.204 255.255.0.0
172 16 122 204
Binary
Address 10101100 00010000 01111010 11001100
255 255 0 0
Binary
Mask 11111111 11111111 00000000 00000000
Network Host
55
All Rights reserved For JUST
Device On Layer 3
Router
• Broadcast control
• Multicast control
• Optimal path determination
• Traffic management
• Logical addressing
• Connects to WAN services
56
All Rights reserved For JUST
Layer 4 : Transport Layer
• Distinguishes between
upper-layer applications
Transport
• Establishes end-to-end
connectivity between TCP UDP SPX
applications
• Defines flow control
Network
• Provides reliable or IP IPX
unreliable services for data
transfer
57
All Rights reserved For JUST
Reliable Service
Sender Receiver
Synchronize
Acknowledge, Synchronize
Acknowledge
Connection
Connection Established
Established
Data Transfer
(Send Segments)
58
All Rights reserved For JUST
Transport Layer Overview
Transmission
Transmission Control
Control Connection-
Application Protocol
Protocol (TCP)
(TCP) Oriented
Transport User
User Datagram
Datagram Connectionless
Protocol
Protocol (UDP)
(UDP)
Internet
Data-Link
Physical
59
All Rights reserved For JUST
TCP Segment Format
Bit 0 Bit 15 Bit 16 Bit 31
Options (0 or 32 if Any)
Data (Varies)
60
All Rights reserved For JUST
Port Numbers
F T S D T S R
T E M N F N I
Application P
Layer
P L T S T M
N P P P
E
T
21
21 23 25 53
53 69
69 161 520 Port
Numbers
Transport
Layer TCP UDP
61
All Rights reserved For JUST
TCP Port Numbers
Source
Source Destination
Destination …
…
Port
Port Port
Port
Telnet Z
Host A Host Z
62
All Rights reserved For JUST
TCP Port Numbers
63
All Rights reserved For JUST
TCP Three-Way Handshake/Open
Connection
Host A Host B
Send SYN
1 (seq = 100 ctl = SYN)
SYN Received
64
All Rights reserved For JUST
Windowing
65
All Rights reserved For JUST
TCP Simple Acknowledgment
Sender Receiver
Send 1
Receive 1
Send ACK 2
Receive ACK 2
Send 2
Receive 2
Send ACK 3
Receive ACK 3
Send 3
Receive 3
Window Size = 1 66
All Rights reserved For JUST
TCP Sequence and
Acknowledgment Numbers
Source
Source Destination
Destination Sequence
Sequence Acknowledgment
Acknowledgment …
…
Port
Port Port
Port
I just
sent number
I just got number
11.
11, now I need
number 12.
ourceSource Dest. Ack.
Dest. Seq. Seq. Ack.
23
23 1028
1028 100
100 11
11
1028
1028 23
23 11
11 101
101 Source Dest. Seq. Ack.
23
23 1028
102867 101
101 12
12
All Rights reserved For JUST
Windowing
68
All Rights reserved For JUST
Windowing
69
All Rights reserved For JUST
Transport Layer Reliable Delivery
70
All Rights reserved For JUST
Flow Control
Another function of the transport layer is to provide
optional flow control.
71
All Rights reserved For JUST
Flow Control
72
All Rights reserved For JUST
TCP vs UDP
73
All Rights reserved For JUST
User Datagram Protocol (UDP)
User Datagram Protocol (UDP) is the connectionless transport protocol in the
TCP/IP protocol stack.
UDP is designed for applications that do not need to put sequences of segments
together.
75
All Rights reserved For JUST
How They Operate
Hub Bridge Switch Router
Collision Domains:
1 4 4 4
Broadcast Domains:
1 1 1 4
76
All Rights reserved For JUST
Topic 2: Ethernet Networking and
Data Encapsulation
77
All Rights reserved For JUST
Institute of Electrical and Electronics Engineers
(IEEE) 802 Standards
IEEE 802.1: Standards related to network management.
IEEE 802.2: General standard for the data link layer in the OSI
Reference Model. The IEEE divides this layer into two sublayers -- the
logical link control (LLC) layer and the media access control (MAC)
layer.
IEEE 802.3: Defines the MAC layer for bus networks that use
CSMA/CD. This is the basis of the Ethernet standard.
IEEE 802.4: Defines the MAC layer for bus networks that use a token-
passing mechanism (token bus networks).
78
All Rights reserved For JUST
Ethernet Networks in Review
79
All Rights reserved For JUST
Collision Domains
the Ethernet term collision domain refers to a
network scenario wherein one device sends a
frame out on a physical network segment forcing
every other device on the same segment to pay
attention to it.
80
All Rights reserved For JUST
Broadcast Domains
Broadcast domain refers to a group of devices on
a specific network segment that hear all the
broadcasts sent out on that specific network
segment
81
All Rights reserved For JUST
CSMA/CD
Ethernet networking uses a protocol called Carrier Sense Multiple Access with
Collision Detection (CSMA/CD), which helps devices share the bandwidth
evenly while preventing two devices from transmitting simultaneously on the
same network medium. CSMA/CD was actually created to overcome the
problem of the collisions that occur when packets are transmitted from
different nodes at the same time.
82
All Rights reserved For JUST
Simplex, Half-duplex, full-duplex
84
All Rights reserved For JUST
Ethernet at the Data Link Layer
Ethernet at the Data Link layer is responsible for
Ethernet addressing, commonly referred to as
MAC or hardware addressing. Ethernet is also
responsible for framing packets received from the
Network layer and preparing them for
transmission on the local network through the
Ethernet contention-based media access method.
85
All Rights reserved For JUST
Ethernet Addressing
Here’s where we get into how Ethernet addressing works. It uses the
Media Access Control (MAC) address burned into each and every
Ethernet network interface card (NIC). The MAC, or hardware, address
is a 48-bit (6-byte) address written in a hexadecimal format.
86
All Rights reserved For JUST
Binary to Decimal and Hexadecimal Conversion
With binary numbering, which is really pretty simple. The digits used
are limited to either a 1 or a 0, and each digit is called a bit, which is
short for binary digit. Typically, you group either 4 or 8 bits together,
with these being referred to as a nibble and a byte, respectively.
87
All Rights reserved For JUST
Hex to binary to decimal chart
88
All Rights reserved For JUST
Binary, Hex, decimal conversion
89
All Rights reserved For JUST
Ethernet at the Physical Layer
10Base-T (IEEE 802.3) 10 Mbps using category 3 unshielded twisted pair (UTP) wiring
100Base-TX (IEEE 802.3u) 100Base-TX, most commonly known as Fast Ethernet,
100Base-FX (IEEE 802.3u) Uses fiber cabling 62.5/125-micron multimode fiber.
1000Base-CX (IEEE 802.3z) Copper twisted-pair, called twinax, is a balanced coaxial
pair that
1000Base-T (IEEE 802.3ab) Category 5, four-pair UTP wiring up to 100 meters long and
up to 1 Gbps.
1000Base-SX (IEEE 802.3z) The implementation of 1 Gigabit Ethernet running over
multimode fiber-optic cable
1000Base-LX (IEEE 802.3z) Single-mode fiber that uses a 9-micron core and 1300 nm
laser and can go from 3 kilometers up to 10 kilometers.
1000Base-ZX (Cisco standard) 1000BaseZX, or 1000Base-ZX, is a Cisco specified standard
for Gigabit Ethernet communication.
10GBase-T (802.3.an) 10GBase-T is a standard proposed by the IEEE 802.3an committee
to provide 10 Gbps connections over conventional UTP cables,
90
All Rights reserved For JUST
Ethernet Cabling
You need to really understand the following
three types of cables:
• Straight-through cable
• Crossover cable
• Rolled cable (Console)
91
All Rights reserved For JUST
Fiber Optic
Fiber-optic cabling has been around for a long time and has some solid
standards. The cable allows for very fast transmission of data, is made of
glass (or even plastic!), is very thin, and works as a waveguide to transmit
light between two ends of the fiber. Fiber optics has been
used to go very long distances, as in intercontinental connections, but it is
becoming more and more popular in Ethernet LAN networks due to the
fast speeds available and because, unlike UTP, it’s immune to interference
like cross-talk.
92
All Rights reserved For JUST
Data Encapsulation
When a host transmits data across a network to another device, the data goes through a
process called encapsulation and is wrapped with protocol information at each layer of
the OSI model. Each layer communicates only with its peer layer on the receiving device.
To communicate and exchange information, each layer uses protocol data units (PDUs).
These hold the control information attached to the data at each layer of the model. They
are usually attached to the header in front of the data field but can also be at the trailer,
or end, of it.
93
All Rights reserved For JUST
PDU and layer addressing
94
All Rights reserved For JUST
The Cisco three-Layer
Hierarchical Model
95
All Rights reserved For JUST
The Cisco three-Layer
Hierarchical Model
The core layer is literally the core of the network. At the top of the hierarchy, the
core layer is responsible for transporting large amounts of traffic both reliably
and quickly.
The distribution layer is sometimes referred to as the workgroup layer and is the
communication point between the access layer and the core. The primary
functions of the distribution layer are to provide routing, filtering, and WAN
access and to determine how packets can
access the core, if needed.
The access layer controls user and workgroup access to internetwork resources.
The access layer is sometimes referred to as the desktop layer. The network
resources most users need will be available locally because the distribution layer
handles any traffic for remote services
96
All Rights reserved For JUST
Question & Answer
97
All Rights reserved For JUST