Chapter3 CS NPS
Chapter3 CS NPS
What is a CPU?
CENTRAL UNIT
PROCESSING (CPU)
• Early computers were fed data while the machines were actually running; it wasn’t possible to store
programs or data, which meant they couldn’t operate without considerable human intervention.
• In the mid-1940s, John von Neumann developed the concept of the ‘stored program computer’,
which has been the basis of computer architecture ever since.
• The von Neumann architecture had the following main novel features the concept of a central
processing unit (CPU or processor)
• The CPU was able to access the memory directly
• Computer memories could store programs as well as data
• Stored programs were made up of instructions which could be executed in sequential order.
VON NEUMANN ARCHITECTURE CONTROL BUS
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
MAR
CU
PC
MDR
CIR
ALU ACC
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
Input Output
keyboards, touch screens and printers, monitors and loudspeakers
microphones
VON NEUMANN ARCHITECTURE CONTROL BUS
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
ALU
Input Output
keyboards, touch screens and printers, monitors and loudspeakers
microphones
Input 1 Input 2
ARITHMETIC & LOGIC UNIT
(ALU)
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
ALU
Read and Write operations carried out using the RAM RAM is a type of volatile memory, in that it does not
3 are considerably faster than read/write operations to a 4 retain its contents when the computer is powered
hard disk drive. off.
VON NEUMANN ARCHITECTURE CONTROL BUS
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
MAR
PC
MDR
CIR
ALU ACC
This register stores data which has just been read from memory or
4 Memory Data (Buffer) Register MDR data which is about to be written to memory
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
MAR
CU
PC
MDR
CIR
ALU ACC
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
MAR
CU
PC
MDR
CIR
ALU ACC
Control Bus It carries signals from the control unit (CU) to all the
3 other computer components.
VON NEUMANN ARCHITECTURE CONTROL BUS
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
MAR
CU
PC
MDR
CIR
ALU ACC
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
MAR
CU
PC
MDR
CIR
ALU ACC
Both data and instruction can be stored in The CPU passes the
MDR. In the Fetch–Decode–Execute cycle, The instruction is then decoded instruction as a
the next instruction is fetched from the decoded so that it can be set of control signals to
memory address currently stored in the interpreted in the next part the appropriate
MAR and the instruction is stored in the of the cycle.
components within the
MDR. The contents of the MDR are then
computer system. This
copied to the Current Instruction Register
allows each instruction
(CIR). The PC is then incremented
(increased by 1) so that the next instruction to be carried out in its
can be then be processed. logical sequence.
Fetch-Decode-Execute Step by Step
• The program counter stores the address location of the next instruction to be carried out. This location
number is copied into the memory address register.
• The program counter is incremented by one and this register now stores the next instruction to be
processed.
• The control unit (CU) makes a request to the RAM for the instruction and obtains the address of the
instruction from the MAR by sending a signal along the address bus.
• The data that is being held in the RAM in the correct address is carried along the data bus to the
memory register (MDR).
• Once the instruction arrives at the MDR, it is copied into the current instruction register (CIR).
• The instruction is then decoded in the CIR using the arithmetic logic unit (ALU) and then carried out.
The result of this processing is stored in the accumulator.
Clock Speed, Cache Memory and Cores
• Other components make up part of the CPU and can make a significant difference to the overall
operating speed of a computer.
• While the CPU processes instructions and data extremely quickly, other factors can affect a computer's
performance.
Clock Speed
• Clock speed is an important measure in terms of CPU performance capabilities. This refers to the
number of electrical pulses that the clock inside the CPU can produce every second. This measurement
is made in hertz, and modern clock speeds are usually measured in gigahertz.
• By increasing clock speed, the processing speed of the computer is also increased (a typical current
value is 3.5GHz – which means 3.5 billion clock cycles (Fetch-Decode-Execute a second)
• Overclocking - using a clock speed higher than the computer was designed for. Problems:
• Lead to seriously unsynchronised operations (i.e. an instruction is unable to complete in time
before the next one is due to be executed) – the computer would frequently crash and become
unstable
• Serious overheating of the CPU leading to unreliable performance.
Cores
• The use of a different number of cores can improve computer performance. One core is made up of an
ALU, a control unit and the registers. Many computers are dual core (the CPU is made up of two cores)
or quad core (the CPU is made up of four cores).
• The idea of using more cores alleviates the need to continually increase clock speeds.
One Core
Central Processing Unit (CPU)
MAR
CU
PC
MDR
CIR
ALU ACC
Dual Core
MAR MAR
CU CU
PC PC
MDR MDR
CIR CIR
However, doubling the number of cores doesn’t necessarily double the computer’s performance since we have to take into
account the need for the CPU to communicate with each core; this will reduce overall performance.
Multi Core - 8 cores
Central Processing Unit (CPU) Central Processing Unit (CPU) Central Processing Unit (CPU)
Central Processing Unit (CPU) Central Processing Unit (CPU) Central Processing Unit (CPU)
MAR MAR
CU CU
PC PC
MDR MDR
CIR CIR
Load 10
Add 11
Store 12
Fetch-Decode-Execute Recap
Load 10 101
Add 11 102
Store 12 103
Instruction Set
Operations are made up of opcodes and operands.
Opcode:
- Operational Code
- Gives the CPU a precise job
Load 10
job that is required to
happen
Add 11
Store 12
The opcode are stored on a computer's hard disk and would usually be copied into the main memory
RAM when the computer is powered on. The most regularly used opcodes would then be moved from
the RAM to the cache memory.
Instruction Set
Operations are made up of opcodes and operands.
Load 10
Add 11
Store 12
An operand is the data that is required for the specific job as detailed by the opcode. The operand may
be a piece of data itself, or it may be an address location within the main RAM or register.
Instruction Set
• Example : X86 Instruction Set
• 1503
• Used by Intel Pentium and AMD Athlon CPU
• Instruction Set is not programming code. Instruction sets are the low-level language instructions
that instruct the CPU how to carry out an operation
• Example:
• Python Code -> Instruction Set -> Computer
EMBEDDED SYSTEMS
Processors and Computer System
• Traditionally, we would think of computers as desktop and laptop computers.
• They are referred to as general purpose computers, capable of providing a wide range
of different activities.
User
Interface
Sensors,
actuators
Some lighting systems use Bluetooth light bulbs. This allows the
embedded system to control each bulb independently. Many of
the bulbs available today use LEDs and many come in a number
of colours to change the mood.
Embedded System
• Embedded system tends to be low power devices.
• Calculator uses battery
• Depending on the device, embedded systems are either programmable or non- programmable.
Non-programmable devices need, in general, to be replaced if they require a software upgrade.
Programmable devices permit upgrading by two methods:
• connecting the device to a computer and allowing the download of updates to the
software (for example, this is used to update the maps on a GPS system used in a vehicle)
• automatic updates via a Wi-Fi, satellite or cellular (mobile phone network) link (for
example, many modern cars allow updates to engine management systems and other
components via satellite link).
Amazon Smart Warehouse
https://www.youtube.com/watch?v=IMPbKVb8y8
s&ab_channel=VISION
Amazon Go
https://www.youtube.com/watch?v=zdbumR
6Bhd8&ab_channel=TechInsider
Input
Devices
VON NEUMANN ARCHITECTURE RECAP CONTROL BUS
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
MAR
CU
PC
MDR
CIR
ALU ACC
Input
Keyboards
What it It has a selection of keys that
has all perform different tasks.
MAR
CU
PC
MDR
CIR
Negatives
Touch pad
Stylus
Gaming
Controller
Benefits of optical mouse over
mechanical mouse
No moving parts, which makes it more reliable
Dirt cannot get trapped in any of the
mechanical components
Can work on any surface, eliminates the need
for a special surface
Benefits of wired mouse over
Bluetooth connectivity
No signal loss
Cheaper to operate (eliminated need to
change batteries)
Fewer environmental issues (no need to dispose
of old batteries)
PA S T Y E A R Q U E S T I O N
Touch Screens
What it A touch screen is made of glass and reacts
has to a finger press.
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
MAR
CU
PC
MDR
CIR
ALU ACC
Output
Output Devices
• Output devices are the hardware a computer uses to display or send
out the data that has been processed.
• Input devices that provide the computer with the instructions are
linked to the output devices, so the user can see or hear the results of
those instructions.
• The choice of output device depends on the most appropriate use of
the data that has been processed.
Output Devices
• Monitor
• Touch Screens
• Projector
⚬ DLP Projector
⚬ LCD Projector
• Printer
⚬ Laser Printer
⚬ Inkjet Printer
⚬ 3D Printer
• Speaker
• Actuator
Output Devices
• Monitor
• Touch Screens
• Projector
⚬ DLP Projector
⚬ LCD Projector
• Printer
⚬ Laser Printer
⚬ Inkjet Printer
⚬ 3D Printer
• Speaker
• Actuator
Monitor
• Monitor can display a certain number of pixels
depending on the quality - more pixels mean a better
quality of picture output.
• The larger the monitor the more expensive they tend
to be.
Size in inch
• Modern monitors connect to a computer using high-
definition multimedia interface (HTML) connector)
⚬ Display high definition image and sound using
one cable.
⚬ HDMI is a standard connection port for
audio/visual devices in computers.
Monitor - LED vs LCD
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
MAR
CU
PC
MDR
CIR
ALU ACC
DATA BUS
ADDRESS BUS
Central Processing Unit (CPU)
MAR
CU
PC
MDR
CIR
ALU ACC
Sensor
(Automatic Memory Unit (RAM) Output
Input)
Function of a sensor
Read and measure physical properties from their surrounding.
Function of a sensor
Read and measure physical properties from their surrounding.
Acidity
Temperature Pressure Length
Level
Analogue to Digital
Converter (ADC)
Reason ADC is needed
Computer cannot make sense of physical quantities (Boiling point etc)
Function of an ADC
Convert physical quantities to a digital format. It convert physical values (analogue
data) into digital data.
Digital data
Binary code
Input Ouput:
Release cold air
40 celcius 00101000
ADC Microprocessor
Sensor
This will run constantly!
Input Ouput:
Release cold air
ADC Microprocessor
Sensor
Exam Question
SENSOR
T E M P E R AT U R E MOISTURE
Measures temperature
Measures water levels in, for example,
FUNCTION of the surrounding by soil
sending signal.
SENSOR
HUMIDITY LIGHT
This is slightly different to moisture; this These use photoelectric cells that produce an output (in
measures the amount of water vapour in, for the form of an electric current) depending on the
FUNCTION
example, a sample of air. brightness of the light
• monitor humidity levels in a factory • switching street lights on or off depending on light
manufacturing microchips levels
APPLICATION
• monitor/control humidity levels in the air • switch on car headlights automatically when it gets
in a greenhouse dark
Common Sensors
SENSOR
INFRARED PRESSURE
• turn on car windscreen wipers automatically when it detects • weighing of lorries at a weighing station
rain on the windscreen
APPLICATION • measure the gas pressure in a nuclear reactor
• security alarm system (intruder breaks the infra- red beam)
Common Sensors
SENSOR
SOUND GAS
These are basically microphones that Most common ones are oxygen or carbon dioxide sensors; they
use various methods to detect the gas being monitored and
FUNCTION convert detected sound into electric
produce outputs that vary with the oxygen or carbon dioxide
signals/pulses levels present
• pick up the noise of footsteps in a security system • monitor oxygen and carbon dioxide
• detect the sound of liquids dripping at a faulty
APPLICATION levels in a greenhouse
pipe joint
Common Sensors
SENSOR
PH MAGNETIC FIELD
These measure acidity through These sensors measure changes in magnetic fields –
FUNCTION changes in voltages in, for example, the signal output will depend on how the magnetic
soil field changes
• monitor/control acidity levels in the soil in a greenhouse • Detect magnetic field changes (for example, in
APPLICATION • control acidity levels in a chemical process mobile phones and CD players)
Common Sensors
SENSOR
ACCELEROMETER P ROX IMI T Y
These are sensors that measure acceleration and These sensors detect the presence of a nearby
motion of an application, i.e. the change in velocity. object .
FUNCTION
• Used in cars to measure rapid deceleration and apply • Detect when a face is close to a mobile phone
air bags in a crash
APPLICATION screen and switches off screen when held to the ear
• Used by mobile phones to change between portrait
and landscape mode
Common Sensors
SENSOR
FLOW LEVEL
These sensors measure the flow rate of a moving liquid or
These sensors use ultrasonics (to detect
gas and produce an output based on the amount of liquid
FUNCTION changing liquid levels in, for example, a tank) or
or gas passing over the sensor.
capacitance/ conductivity
• Used in respiratory devices and inhalers in hospitals • Monitor levels in a petrol tank in a car
• Measure gas flows in pipes (for example, natural gas)
APPLICATION • Leak detection in refrigerant (air conditioning)
S E N S O RS A R E U S E D I N B OT H M O N I TO R I N G A N D CO N T RO L
A P P L I C AT I O N S .
Monitoring Controlling
Application Application
1. Security System 1. Control of Street Lighting
2. Monitoring of patients in a hospital 2. Anti-lock braking system
3. Control Heating Systems
4. Chemical Process Control
5. Greenhouse Environmental Control
F LOWC H A RT O F H OW
M O N I TO R I N G A N D
CO N T RO L A P P L I C AT I O N
WO R K
M O N I TO R I N G
A P P L I C AT I O N
- JUST SEND
WA R N I N G
Monitoring system (1) - Security System
• Sensors
• The infrared sensor will pick up the movement of an intruder in the building
• The acoustic sensor will pick up sounds such as footsteps or breaking glass
• The pressure sensor will pick up the weight of an intruder coming through a door or through a window
• The sensor data is passed through an ADC if it is in an analogue form to produce digital data.
• The computer/microprocessor will sample the digital data coming from these sensors at a given frequency.
• The data is compared with the stored values by the computer/microprocessor
• If any of the incoming data values are outside the acceptable range, then the computer sends a signal
• Siren to sound alarm
• Light to start flashing
6. A DAC is used if devices need analogue values to operate them.
• Sensors
• Sensors are attached tto the patient to measure temperature, heart
rate, breathing rate, etc.
• These sensors are all attached to a computer system. It constantly send
data back to the computer system. The sensor data is passed through an
ADC if it is in an analogue form to produce digital data.
• The computer samples the data at frequent intervals.
• The range of acceptable values for each parameter is keyed into the
computer.
• The data is compared with the keyed in values by the
computer/microprocessor.
• If any of the incoming data values are outside the acceptable range, then
the computer sends a signal
• To sound an alram
• If data from the sensors is within range, the values are shown in either
graphical form on a screen and/or a digital read out.
• Monitoring continues until the sensors are disconnected from the patient.
M O N I TO R I N G
A P P L I C AT I O N
- JUST SEND
WA R N I N G
CO N T RO L L I N G A P P L I C AT I O N
- DO SOMETHING
Controlling system (1) - Control of Street Lighting
• The light sensor sends data to the ADC interface. This changes the data into
digital form and sends it to the microprocessor.
• The microprocessor samples the data every minute/5 minutes.
• If the data from the sensor < value stored in memory
• a signal is sent from the microprocessor to the street lamp.
• and the lamp is switched on
• The lamp stays switched on for 30 minutes before the sensor readings are
sampled again
• If the data from the sensor >= value stored in memory
• a signal is sent from the microprocessor to the street lamp
• the lamp is switched off
• The lamp stays switched off for 30 minutes before sensor readings are
sampled again.
Controlling system (2) - Anti-lock braking (ABS) systems
• Anti-lock braking systems (ABS) on cars use magnetic field sensors to stop
the wheels locking up on the car if the brakes have been applied too sharp.
• One of the car wheels rotates too slowly (i.e. it is locking up), The sensor
data is first sent to an ADC to convert the analogue data into digital data.
• The microprocessor checks the rotation speed of the other three wheels. If
they are different (i.e. rotating faster), the microprocessor sends a signal to
the braking system.
• The braking pressure to the affected wheel is reduced.
• The wheel’s rotational speed is then increased to match the other wheels.
• The checking of the rotational speed using these magnetic field sensors is
done several times a second.
• The braking pressure to all the wheels can be constantly changing to prevent
any of the wheels locking up under heavy braking.
Controlling system (3) - Central Heating Systems
• The required temperature is keyed in and this is stored in the microprocessor memory (this is called the
pre-set value).
• The temperature sensor is constantly sending data readings to the microprocessor.
• The sensor data is first sent to an ADC to convert the analogue data into digital data.
• The digital data is sent to the microprocessor.
• The microprocessor compares this data with the pre-set value.
• If the temperature reading >= pre-set value then no action is taken.
• If the temperature reading < pre-set value, then a signal is sent
• To an actuator (via a DAC) to open the gas valve to the heater
• To an actuator (via a DAC) to turn on the water pump
• The process continues until the central heating is switched off.
Controlling system (4) - Chemical process control
Requirement: A certain chemical process only works if the temperature is above 70°C and
the pH (acidity) level is less than 3.5. Sensors are used as part of the control system. A heater is used to heat the
reactor and valves are used to add acid when necessary to maintain the acidity.
Steps:
• Temperature and pH sensors read data from the chemical process.
• This data is converted to digital using an ADC and is then sent to the computer
• The computer compares the incoming data with pre-set values stored in memory
• Temperature:
• If the temperature < 70°C, a signal is sent to switch on the heater.
• If the temperature >= 70°C, a signal is sent to switch off the heaters
• PH
• If the pH > 3.5, then a signal is sent to open a valve and acid is added
• If the pH <= 3.5, then a signal is sent to close this valve
• The computer signals will be changed into analogue signals using a DAC so that it can control the heaters and
valves
• This continues as long as the computer system is activated.
Controlling system (5) - Greenhouse environment control
EXAM QUESTION
Answer
Data
Storage
Secondary Storage
Memory Unit (RAM) / ROM
(HDD, SSD, Removable Disk, CD)
Consists of many chips. Each ship contain millions of Make use of flip flops
transistor (switch) and capacitor (holds the bits of which hold each bit of
information). memory
There are 2
Needs to be refreshed (The capacitor needs to be types of RAM
Doesn’t need to be constantly refreshed
re-charged every 15 microseconds) otherwise it technologies
would lose its value.
Advantages: Advantages:
• Much less expensive than SRAM • Faster data access
• Consume less power than SRAM
• Higher memory capacity than SRAM
Common types of RAM Used in memory cache
Consists of many chips. Each ship contain millions of Make use of flip flops
transistor (switch) and capacitor (holds the bits of which hold each bit of
information). memory
There are 2
Needs to be refreshed (The capacitor needs to be types of RAM
Doesn’t need to be constantly refreshed
re-charged every 15 microseconds) otherwise it technologies
would lose its value.
Advantages: Advantages:
• Much less expensive than SRAM • Faster data access
• Consume less power than SRAM
• Higher memory capacity than SRAM
Common types of RAM Used in memory cache
Consists of many chips. Each ship contain millions of Make use of flip flops
transistor (switch) and capacitor (holds the bits of which hold each bit of
information). memory
There are 2
Needs to be refreshed (The capacitor needs to be types of RAM
Doesn’t need to be constantly refreshed
re-charged every 15 microseconds) otherwise it technologies
would lose its value.
Advantages: Advantages:
• Much less expensive than SRAM • Faster data access
• Consume less power than SRAM
• Higher memory capacity than SRAM
VON NEUMANN ARCHITECTURE CONTROL BUS
DATA BUS
Central Processing Unit (CPU)
ADDRESS BUS
MAR
CU
PC
SRAM MDR
CIR
ALU ACC
Secondary Storage
(HDD, SSD, Removable Disk, CD)
it cannot be changed or written to.
Compare and
Can be written to and read from Contrast Data stored cannot be altered
Used to store data, files, programs, part Used to store BIOS and other data needed at start
of OS currently in use up
RAM ROM
Compare and
Can be written to and read from Contrast Data stored cannot be altered
Used to store data, files, programs, part Used to store BIOS and other data needed at start
of OS currently in use up
RAM ROM
Compare and
Can be written to and read from Contrast Data stored cannot be altered
Used to store data, files, programs, part Used to store BIOS and other data needed at start
of OS currently in use up
RAM ROM
Compare and
Can be written to and read from Contrast Data stored cannot be altered
Used to store data, files, programs, part Used to store BIOS and other data needed at start
of OS currently in use up [start-up instructions]
Memory
0 8
0 9
Primary memory
2 10
• directly addressable by the CPU
3 11
• part of the CPU/motherboard
• contains RAM/ROM/cache 0 12
0 13
Secondary storage
• not directly addressable by CPU
• non-volatile devices
• often external to computer
Description RAM [ √ ] ROM [√ ]
Secondary Storage
(HDD, SSD, Optical Disk)
Secondary Storage:
Allow users to store applications, data and files.
Non volatile.
Slower access time by the CPU
Used to store data. Data is Consist of electromagnets that
stored in a digital format on the are used to read data from or
magnetic surfaces of the disks. write data to the platters. A
The platters can spin about number of read-write heads can
7000 times a second. access all of the surfaces which
can be used to store data. moves
50 times a second
A sector on a given track will contain a fixed
number of bytes.
ELECTROMAGNET
PLAT TER TRACK AND SEC TOR
HEADS
Unfortunately, hard disk drives have
very slow data access when
compared to, for example, RAM.
Many applications require the read-
write heads to constantly look for
the correct blocks of data; this
means a large number of head
movements. The effects of latency
then become very significant.
Latency is defined as the time it
takes for a specific block of data on
a data track to rotate around to the
read-write head.
When a file or data is stored on a HDD,
the required number of sectors needed
to store the data will be allocated.
However, the sectors allocated may not
be adjacent to each
other. Through time, the HDD will
undergo numerous deletions and editing
which leads to sectors becoming
increasingly fragmented resulting in a
gradual deterioration of the HDD
performance (in other words, it takes
longer and longer to access data).
Defragmentation software can improve
on this situation by ‘tidying up’ the disk
sectors.
Removable hard disk drives are
essentially HDDs external to the
computer that can be connected to
the computer using one of the USB
ports. In this way, they can be used
as a back-up device or another way
of transferring files between
computers.
DESCRIPTION
red laser
laser
binary =
binary = 1
0
land
pit
27 GB (Single Layer)
700MB
50 GB (Dual Layer)
4.7 GB
Virtual
Memory
Part of the memory in HDD or SSD when we need more memory - RAM
• All of this will continue to occur until RAM is no longer being over-utilised by the competing
programs running in memory.
• Virtual memory gives the illusion of unlimited memory being available. Even though RAM is full,
data can be moved in and out of the HDD/SSD to give the illusion that there is still memory
available.
• In computer operating systems, paging is used by memory management to store and retrieve data
from HDD/SSD and copy it into RAM.
• However, accessing data in virtual memory is slower so, as mentioned earlier on in this chapter, the
larger the RAM the faster the CPU can operate. This is one of the benefits of increasing RAM size as
far as possible.
Main benefits of virtual memory
• Programs can be larger than physical memory and can still be executed
• Eliminates wasting money with data that is not being used
• Reduces the need to buy and install expensive RAM memory
Disk thrashing
When using HDD for virtual memory the main drawback is Disk Thrashing. As main memory fills, more
and more data needs to be swapped in and out of virtual memory leading to a very high rate of hard
disk read/write head movements; this is known as disk thrashing. If more and more time is spent on
moving data in and out of memory than doing any processing, then the processing speed
of the computer will be considerably reduced. A point can be reached when the execution of a process
comes to a halt since the system is so busy moving data in and out of memory rather than doing any
actual execution – this is known as the thrash point. Due to large numbers of head movements, this can
also lead to premature failure of a hard disk drive.
Thrashing can be reduced by installing more RAM, reducing the number of programs running at a time
or reducing the size of the swap file. Another way of reducing this problem is to make use of a solid
state drive (SSD) rather than using HDD.
Cloud Storage
A method of data storage where data is stored on remote servers.
Instead of saving data on a local hard disk or other storage device, a user can save their data ‘in the
cloud’.
Advantages Disadvantages
Client files stored on the cloud can be accessed at any If the customer/client has a slow or unstable internet
time from any device anywhere in the world provided connection, they would have many problems
internet access is available accessing or downloading their data/files
• Cheaper per unit of data stored, it will be better value for the company to
purchase.
WIRELESS NETWORK
INTERFACE CARD (NIC)
They use wireless connectivity utilising an
antenna to communicate with networks via
microwaves
INTERNET PROTOCOL (IP) ADDRESS
WHEN A ROUTER CONNECTS TO THE INTERNET IT IS GIVEN A
UNIQUE PUBLIC IP ADDRESS
254.26.38.77
254.25.28.77
254.16.48.102
WHEN A DEVICE CONNECTS TO A PRIVATE NETWORK, A ROUTER ASSIGNS A PRIVATE
IP ADDRESS TO IT. THAT IP ADDRESS IS UNIQUE ON THAT NETWORK, BUT MIGHT BE
THE SAME AS AN IP ADDRESS ON A SEPARATE NETWORK.
254.25.28.6
254.25.28.12 254.25.28.13
254.25.28.1
SUPPLIED BY ISP
ALL THE DEVICES CONNECTED TO THAT ROUTER HAVE THE SAME PUBLIC IP ADDRESS AS THE ROUTER BUT EACH HAVE
THEIR OWN DIFFERENT PRIVATE IP ADDRESSES ON THAT NETWORK.
ON MY MAC
ON MY IPHONE
CONNECTED TO THE SAME WIFI
IP ADDRESS FORMAT - IPV4
DD.DD.DD.DD
• EACH DIGIT RANGE FROM 0-255
• EACH DIGIT = 8 BITS
• EACH DIGIT IS SEPARATED BY DOT
• 4.3 BILLIONS COMBINATION
EG
252.25.28.77
CAN BE REPRESENTED IN HEXA TOO..
IP ADDRESS FORMAT - IPV6
HHHH:HHHH:HHHH:HHHH:HHHH:HHHH:HHHH:HHHH
• EACH DIGIT RANGE FROM 0-65536 / 0000 - FFFF (HEXA)
• EACH DIGIT = 16 BITS
• EACH DIGIT IS SEPARATED BY COLON
• COMBINATIONS? 65535 POWER OF 8 (DON'T COUNT)
EG
A8FB:7A88:FFF0:0FFF:3D21:2085:66FB:F0FA
WHY IS IPV6 NEEDED?
SOME POSSIBLE ANSWERS
• REMOVES THE RISK OF IP ADDRESS COLLISIONS
• HAS BUILT-IN AUTHENTICATION CHECKS
(STORES ADDITIONAL VALUE IN THE HEADER
USING THE PAYLOAD)
• IPV6 HAS BEEN DESIGNED TO ALLOW THE
INTERNET TOEGGROW IN TERMS OF THE
NUMBER OF HOSTS AND POTENTIAL INCREASE
IN THE AMOUNT OF DATA TRAFFIC
Static IP Address
Static vs Dynamic
USED BY
1.REMOTE SERVERS WHICH ARE HOSTING A IP Address
WEBSITE
2. AN ONLINE DATABASE
ADVANTAGE:
ALLOW FOR FASTER UPLOAD AND
DOWNLOAD SPEEDS
Static IP Address Dynamic IP Address
Static vs Dynamic
USED BY DYNAMIC HOST CONFIGURATION PROTOCOL
1.REMOTE SERVERS WHICH ARE HOSTING A IP Address (DHCP) I USED BY THE ISP TO AUTOMATICALLY
WEBSITE ASSIGN AN IP ADDRESS TO A DEVICE
2. AN ONLINE DATABASE
ADVANTAGE: ADVANTAGE:
ALLOW FOR FASTER UPLOAD AND GREATER PRIVACY SINCE THEY CHANGE
DOWNLOAD SPEEDS EACH TIME
A USER LOGS ON
THEN, HOW TO UNIQUELY IDENTIFY A DEVICE
ON A LAN?
Media Access Control (MAC) Address
Function
Uniquely identify a computer on a Local Area Network
(LAN)
Format
NN - NN - NN - DD - DD - DD
Manufacturer Code Serial Number
Eg. 00 - 1C - B3 - 4F - 25 - FF
Universally Administered Locally Administered
MAC Address (UAA) MAC Address (LAA)
254.26.38.77
254.25.28.77
254.16.48.102
ROUTER FUNCTION 2: TAKES DATA TRANSMITTED IN ONE FORMAT FROM A
NETWORK (WHICH IS USING A PARTICULAR PROTOCOL) AND
CONVERTS THE DATA TO A PROTOCOL AND FORMAT UNDERSTOOD BY
ANOTHER NETWORK, THEREBY ALLOWING THEM TO COMMUNICATE.
254.26.38.77
254.25.28.77
ROUTER SINCE EVERY COMPUTER ON THE SAME NETWORK HAS THE SAME PART OF AN
INTERNET PROTOCOL (IP) ADDRESS, THE ROUTER IS ABLE TO SEND THE DATA
PACKET TO THE APPROPRIATE SWITCH, AND THE DATA WILL THEN BE
DELIVERED TO THE CORRECT DEVICE USING THE
MAC DESTINATION ADDRESS
00 - 1C - B3 - 4F - 25 - FF
DESTINATION:
254.25.28.77
00 - 1C - B3 - 4F - 26 - FF
254.25.28.77
EXAM QUESTION
EXAM QUESTION
EXAM QUESTION
EXAM QUESTION