CEN 263: Computer Networks: International Burch University
CEN 263: Computer Networks: International Burch University
...
○ Algorithms Computer... Computer Networks...
○ Analysis tools Diff kinds of questions - layers
Applications
Network
What the MAC addresses are?
Operating System Data Link layer
How it’s physically linked together?
Hardware What sort of cables you are using, Physical
how long they can be, etc.
Today’s Class
● Organisational Information
● Contents to Cover
● The Basics of Networking
○ TCP/IP and OSI/ISO layer network model
○ Networking Devices:
■ Cables
■ Hubs/switches
■ Routers
■ Servers and Clients
○ The Physical Layer
○ The Data Link Layer
Course Logistics
● Goals ● Course structure/material
○ To understand the network protocols, ○ LMS Course page
architectures and applications ■ Lectures (slides, videos)
○ To understand how networking research ■ The textbook (chapters readings
is done and investigate novel ideas in the + the textbook slides)
area ■ Labs
● Prerequisites ● Grading
○ The course covers basic networking ○ Quiz 10%
concepts ○ Lab Exam 20%
● Textbook ○ Exams: midterm 30%, final 40%
○ Kurose, J. and Ross, K., 2001. Computer ● Readings
networks: A top-down approach. Pearson ○ See Syllabus
Education, pp.419-420.
Contents to Cover
the TCP/IP and the
OSI/ISO network cables, hubs, switches, routers, servers
● Introduction: models,... and clients, setting up a network,...
● The Basics of Networking: moving bits across the wire, cabling,
network ports, Ethernet,...
● The Physical layer: MAC addresses, unicast, multicast,
● The Data Link Layer: broadcast, Ethernet frame,...
IP address, datagrams, encapsulation,
● The Network Layer: address classes, ARP,...
subnetting, masks, binary math, CIDR, routing concepts, routing
● Subnetting & Routing: tables, gateway protocols, RFCs and standards etc.
● Transportation and Application layers: transport layer, TCP segment, control flags and 3-way
handshake, protocols, firewalls, application layer
● Intro to Networking Services: DNS, NAT, DHCP, VPNs, Proxies
● Connecting to the Internet: security, protection, Wireshark, IP configuration, IP analysis
● Troubleshooting: ping and ICMP, traceroute, testing
connectivity, DNS, the cloud, IPv6,...
The Basics of Networking
What is the Internet?
- HW and SW components
- A networking infrastructure
Network Models: TCP/IP vs. OSI/ISO
# Layer Protocol Protocol Data Addressing Device
Unit
Workstation
Server
google.com
Routers Internet
IP
Network SW: client,
server
Network layer
Network Layer
The OSI Model: Overview
1984 OSI/ISO reference model
… to provide set of design standards for
equipment manufacturers so they
could communicate with each other.
The principles of layers:
A layer → new abstraction needed
A layer → well-defined function
The function of a layer → internationally standardised protocols
The layer boundaries → Min info flow across the interfaces
The number of layers →
The Basics of Networking Devices
Networking Devices: Cables
+
RJ45
+
TOOLS
Networking Devices: Cables
Networking Devices: Hubs (if you have them, throw them
away)
HUB
Workstation Workstation
Workstation
Workstation
Networking Devices: Collision Domain
Collision domain
Data
A network segment where
Collision
only one device can communicate
at a time.
HUB
Workstation Workstation
Workstation
Workstation
Networking Devices: Network Switch
Collision domain
A network segment where only one device can communicate at a time.
Data
Hub Collision
Sending data to
machine 3
HUB Sending data to
machine 4
Sending data to Switch Me neither
machine 4
Workstation 1 Workstation 4
Workstation 1
Workstation 4 Me.
Not me.
Core
routers
ISP
Router
Workstation
Laptop
Networking Devices: Routers (2) - Protocols
Border Gateway Protocol (BGP)
Routers share data with each other via this protocol, which lets them learn about the most
optimal paths to forward traffic.
Internet
Internet
Core
routers
ISP
Router
Workstation
Laptop
Networking Devices: Servers & Clients
Clients
DNS Server
Server
Workstation
Internet
Client
Laptop
Phone
Client Mail Server
Layered Network Model Components
● Protocols
● Protocol Data Units
● Addressing
● Devices
The Physical Layer
The Physical
Layer ●
●
Protocol
Data Unit
# Layer Protocol Protocol Addressing Device ● Addressing
Data
Unit ● Device
1 Physical 10 Base Bits - Hub,
T, 802.11 Switch
Sending digital information over a wire
voltage
5V
0V
1 0 0 1 0 0 1 0 =01461
Other media: fiber optics and RF encoding
The PHY Layer: Moving bits across the wire
Sender Receiver
Bit Line coding
encoder decoder
Modulation
Simplex
communication Simplex
(only sends)
...is unidirectional.
10BASE5, 100BASE-TX,
1000BASE-SX Full-duplex
...baseband digital
simultaneous
transmission
The PHY Layer: Network Ports and Patch Panels
RJ45 port
Simplex
communication
...is unidirectional.
10BASE5, 100BASE-TX,
1000BASE-SX
...baseband digital
transmission Patch panel
The Data Link
Layer ●
●
MAC addresses
Ethernet frame
# Layer Protocol Protocol Addressing Device ● Unicast, multicast, broadcast
Data
Unit ● CRC
2 Data Ethernet, Frames MAC Switch
Link Wi-Fi Address
● MAC address
Workstation Workstation
Workstation A Workstation B
Workstation
Workstation
The Data Link Layer: MAC address
A globally unique identifier Organizational Unique Vendor Assigned (NIC
attached to an individual network Identifier Cards, Interfaces)
interface.
24 Bits 24 Bits Size in bits
● 48-bit number: 6 x 2 hex numbers
● 16 digits to represent numbers. >9 => A, B, 6 Hex Digits 6 Hex Digits Size in hex digits
C, D, E, and F represent 10, 11, 12, 13, 14,
and 15 00 60 2F 3A 07 BC Example
281,474,976,710,656
● 2 sections: OUI (first 3 octets) and the last 3
octets
hexadecimal 0 1 2 3 4 5 6 7 8 9 A B C D E F
decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
The Data Link Layer: Ethernet and MAC address
Ethernet uses MAC addresses to ensure that the data it sends has both and address for the
machine that sent the transmission, as well as the one address the transmission was intended
for.
→ each node on that network knows when traffic is intended for it (even on a network segment
acting as a collision domain)
The Data Link Layer: Unicast, multicast, broadcast
Unicast
UNICAST
Sender
… If the least significant bit in the first octet of a destination address is set to one,
it means we’re dealing with a multicast frame.
Broadcast Multicast
BROADCAST
…sent to every device on a LAN Sender Sender
Ethernet broadcast address
FF:FF:FF:FF:FF:FF
4773099563521
CRC
Checksum
number
DATA
IP header /
TCP header
Calculating IP Calculating IP
header TCP header TCP
header header
Checksum Checksum
number number
correct correct
Frame formats
Point to Point Multipoint / Broadcast
Ethernet
Switch
Ethernet Frame
ff:ff:ff:ff:ff:ff:ff:ff
64 - 1500 bytes
1 2 3
Lecture 1 Summary
Magic chart
128 64 32 16 8 4 2 1
27 26 25 24 23 22 21 20
Next Class
● The Network Layer
○ Introduction
○ IP Addresses
○ IP Datagrams and Encapsulation
○ IP Address Classes
○ ARP
○ Looking up IP addresses
● Subnetting
○ Subnet Masks
○ Binary Math
○ CIDR
● Routing
○ Introduction
○ Routing Tables
○