Professional Documents
Culture Documents
Network
is all of the components (hardware and software) involved in connecting computers
across small and large distances. { For sharing Information or Devices }
Components
To build a network, you need three types of components:
1- computers.
Provide Applications. ( Host or Server )
2- networking devices.
(Switch, Hub, Bridge, Repeater, Router)
Network Topology
1. Point-to-Point
2. Bus
3. Star
4. Ring
5. Mesh ( full or partial )
•Application, presentation, and session layers are typically part of the user’s
application.
•The transport, network, data link, and physical layers are responsible for moving
information back and forth between these higher layers.
L7 : Application Layer
It provides the interface that a person uses to interact with the application.
L6 : Presentation Layer
Is responsible for defining how information is presented to the user.
This layer defines how various forms of text, graphics, video, and audio information
are presented to the user.
L5 : session layer
Is responsible for setting up and tearing down network connections.
L4 : Transport Layer
Is responsible for ensuring both reliable and unreliable delivery of data.
Divides raw of data streams into segments and add the sequence number to each
segment.
Examples :
L3 : Network Layer
Is responsible for end-to-end delivery of packet across a network.
Defines :
L1 : Physical Layer
Data Encapsulation :
A type of frame is placed into a different type of frame .
1- Repeater:
2- Hub:
• It is a multi-port repeater.
• All devices connected on the hub in the same broadcast domain and in the
same collision domain.
Layer 2 Devices
A- Bridge :
1- Learning Mode :
Through checking Source Address in the frame header ( Source MAC ).
2- Forwarding Mode :
Through checking Destination Address in the frame header ( Destination MAC ).
B- Switch :
It is a multi-port Bridge.
IP Addressing
If a device want to communicate using TCP/ IP it needs an IP Address.
IP Address consists of 32-bit written in dotted-decimal form.
32-bit = 4 byte = 4 octet
xxxxxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx
(0255). (0255). (0255). (0255)
IP Classes:
1- Class A :
1st octet represent network part.
Last 3 octet represent host part.
2- Class B :
1st 2 octet represent network part.
Last 2 octet represent host part.
3- Class C :
1st 3 octet represent network part.
Last octet represent host part.
4- Class D :
Reserved for Multicasting.
5- Class E :
Reserved for Testing & Experimental.
© 2002, Cisco Systems, Inc. All rights reserved. ICND 2.0—0-22
Layer 3 : Network Layer
2- Class B :
1st octet range : 128 191 128 : 10000000
191 : 10111111
1st octet range in Binary form : 10xxxxxx
3- Class C :
1st octet range : 192 223 192 : 11000000
223 : 11011111
1st octet range in Binary form : 110xxxxx
4 - Class D :
1st octet range : 224 239 224 : 11100000
239 : 11101111
1st octet range in Binary form : 1110xxxx
5 - Class E :
1st octet range : 240 255 240 : 11110000
255 : 11111111
1st octet range in Binary form : 1111xxxx
Summary
Class 1st octet Range 1st octet Binary form
A 0 127 0xxxxxxx
Number of hosts -2
1st IP ( Network IP ) & Last IP ( Broadcast IP )
Rule
Host bits = 0000 ( Zeros ) Network IP Invalid IP
Host bits = 1111 ( Ones ) Broadcast IP Invalid IP
Host bits = 0&1 Host IP Valid IP
Subnetting
Taking part of Host bits & assign it to Network Part.
Subnet Mask :
32-bit Mask that differentiate between Network part & Host part.
Continuous of 1’s followed by continuous of 0’s .
1 : represent Network bit.
0 : represent Host bit.
A- 10.0.0.0
1- 255.0.0.0 2- /8.
B- 172.16.0.0
1- 255.255.0.0 2- /16.
C- 192.168.1.0
1- 255.255.255.0 2- /24.
192.168.1.0 /24
/26
/27
Router Function :
1- Packet Switching.
2- Internetwork Communication.
3- Path Selection.
4- Packet Filtering.
Private IP Addressing :
1- Class A:
10.0.0.0 10.255.255.255
1 Network & 224 – 2 host
2- Class B:
172.16.0.0 172.31.255.255
16 Network & 216 – 2 host
3- Class C:
192.168.0.0 192.168.255.255
256 Network & 28 – 2 host
Proxy ARP
When I send data to a remote host ( on a different network ):
Frame SRC MAC (My host MAC) & DST MAC (My Default
Gateway MAC )
© 2002, Cisco Systems, Inc. All rights reserved. ICND 2.0—0-36
Layer 4 : Transport Layer
Transport Layer main function :
Segmenting Application data , Error Recovery & Flow Control.
DHCP UDP 67
TFTP UDP 69
SNMP UDP 161
Windowing :
A source can send X segments before having to wait for an
acknowledgment.
1- Straight-through Cable:
Used to connect DTE to DCE.
DTE : Data Terminal Equipment. (PC, Router)
DCE : Data Circuit Equipment. (Switch, Hub)
2- Cross-Over Cable
Used to connect DTE to DTE
or DCE to DCE