Defining Networks With The OSI Model
Defining Networks With The OSI Model
2 Communications Subnetwork
3 Layer 2 Switching
4 Layer 3 Switching
Layer Defines
Layer 7 – Application Layer Enables users and applications to access network services
Layer 6 – Presentation Layer Translates data into a common format
Layer 5 – Session Layer Establishes a communication session between devices
Layer 4 – Transport Layer Manages message fragmentation and reassembly
Layer 3 – Network Layer Manages data routing and creating sub networks
Layer 2 – Data Link Layer Provides error-free transfer of data frames
Layer 1 – Physical Layer Physical network media and signal methods
OSI Model Layers
MAC ADDRESS
00:2a:db:38:9c:f1
Layer 2 Switching
What is a switch?
• Switches are central connecting devices
• They use MAC addresses to establish point-to-point connections between
devices
• In contrast, hubs broadcast frames to all connected devices
• Hosts connect to switches by plugging into their ports
A switch port
What is a switch?
• A layer 2 switch is the most
common type of switch used on a
LAN 00:2a:db:38:9c:f1
• Layer 2 switches direct frames on a
LAN based on the MAC address of
each host’s network adapter
• Each port of a switch is mapped to
the MAC address of the device that
is connected
23:5c:f7:da:9c:32
How do layer 2 switches function?
• Layer 2 switches are hardware- 00:2a:db:38:9c:f1 23:5c:f7:da:9c:32
based and use the MAC address of
each host computer’s network
adapter when deciding where to
direct data frames
• Ports on the switch are mapped to
the specific MAC address of the
device attached
AF:C9:A1:12:79:82
Virtual LAN (VLAN)
• Layer 2 switching can also allow for
a virtual LAN (VLAN) to be VLAN2 VLAN1
implemented
• IEEE 802.1Q is the standard that
supports VLANs
• A tag is added to the data frame to
identify the VLAN
VLAN3
How do switches remember MAC addresses?
• Switches map the MAC addresses of
Sample CAM table
connected computers to their ports
in a CAM table Port MAC Address
• CAM stands for Content 1 38-75-2D-72-17-1E
Addressable Memory
2
• The CAM table is stored in the
3 CB-D2-F6-98-45-9D
memory of a switch
• This memory is limited 4 BC-85-1D-22-2E-B4
5
6 65-46-F6-E0-FE-9D
7
8
Layer 3 Switching
Layer 3 – Network Layer
• Controls the operations of routing and switching information to different
networks
• Translates logical addresses or names to physical addresses
• Internet Protocol (IP) is a Network Layer protocol
• Devices that work at the network layer are routers and IP switches
• Network Layer components: IP addresses, subnets
• Unit of measurement: packets
Layer 3 Switches
• Layer 3 switches are different from
Layer 2 switches because they direct
data using IP addresses instead of 192.168.1.1
MAC addresses
• This means they forward packets instead of
frames
• They perform the same functions as
routers
• The benefit of Layer 3 switches
when compared to routers is that 192.168.2.1
they can forward packets faster than
routers
Upper OSI Layers
Layer 4 – Transport Layer
• Ensures messages are delivered error-free, in sequence and with no losses
or duplications
• Protocols that work at this layer:
• segment messages
• ensure correct reassembly at the receiving end
• perform message acknowledgement and message traffic control
• The Transport Layer contains both connection-oriented and connectionless
protocols
• Unit of measurement used: segments or messages
Connection-Oriented Communications
• Require both devices involved in the communication establish an end-to-
end logical connection before data can be sent
• These communications are considered reliable network services
• Packets not received by the destination device can be resent by the sender
I’m sending
ZZZzzzzZZZZzzzzZZZ
something!
Connection-based Protocols
The Transport Layer contains both connection-oriented and connectionless
protocols
• Transmission Control Protocol (TCP) provides a connection-based, reliable, byte-stream service to
programs
• User Datagram Protocol (UDP) provides a connectionless, unreliable transport service
TCP vs. UDP
• TCP transport is used for logging on, file and print sharing, replication of
information between domain controllers, transfer of browse lists, and other
common functions. TCP can only be used for one-to-one communications
• UDP is often used for one-to-many communications, using broadcast or
multicast IP datagrams
2 Communications Subnetwork
3 Layer 2 Switching
4 Layer 3 Switching