ASCII Computer Science Code
ASCII Computer Science Code
Image 1:
The resolution = 400 pixels
Color depth = 3 bits
File size in bits = 1200 bits
File size in bytes = 150 bytes
Image 2 :
The resolution = 100 pixels
Color depth = 3 bits
File size in bits = 300 bits
File size in bytes = 37.5 bytes
Image 3 :
The resolution = 400 pixels
Color depth = 2 bits
File size in bits = 800 bits
File size in bytes = 100 bytes
Image size :
Resolution doesn’t increase the file size / actual physical size
Increasing the size / resolution of the picture will spread the pixels apart and hence the quality
will deteriorate .
To ensure the quality of the image , the dpi must increase while you increase the resolution.
The number of possible color representations by 1 pixel = 2number of bits A higher bit depth gives a
greater range of color and a better quality of the image.
RGB : The color spectrum is represented in denary RGB values and in hexadecimal .This is done
because hexadecimal is to the base 16 and not 2 unlike binary.
The color representation is based on the amount of light that can be seen by the user .The
amount of light in the room is luminosity.
Hex to denary :
1)Multiplication method :
Multiply the individual value of each character in the hexadecimal
number * the position of 16’s power
Ex – FB=15*161
COMMUNICATIONS AND THE INTERNET
WIRELESS:
Ethernet cable – Longer the length , longer the time taken and interference
FIBRE OPTIC uses glass and light
Ethernet uses copper wires and electricity.(They are twisted )
Synchronous Data Transmission:
All data transfers are timed to coincide with an internal clock pulse.
There are no gaps in the transmission of the data which is in blocks or one long stream of data.
Latency:
Latency is the time delay between the moment the first byte or packet of a communication
starts and when it is received at its destination.
Protocol:
Certain set of rules relating to communication between devices is called a protocol.
Protocol gateway – a device that converts protocol
Protocol needs to define :
-Standards for physical connections and cabling
-The rate of transmission (bit rate or baud rate)
-Data format
-Whether transmission is synchronous or asynchronous
-Error checking procedures, e.g. odd or even parity
Bit rate and Baud rate :
Bit rate is the number of bits transmitted per second and Baud rate Is the number of times a
signal changes its state.
The baud rate CANNOT be greater than the bit rate .
The bit rate can be greater than the baud rate when the number of times a signal changes in a
second is lesser than the number of bits sent per second.
Bit rate = baud rate x number of bits per signal
BROADBAND:
Bits are sent as variations on the wave
Broadband carries multiple signals on a fixed carrier
wave.
Parts of a packet:
errors : Payload
Error checking
Checking Destination IP , source IP , Protocol , Packet
number
1.Parity Bits
You wont be given the parity bit so you will have to write it.
For 11011000 , the parity bit will be 0 because there are an even number of ones.
TOPOLOGIES
Physical Network:
Physical network is the physical connection of devices to the router.
Logical Network:
Logical network is the path of data transmission in a Network.
Large Area Network & Wide Area Network & Metropolitan Area Network:
A LAN is a collection of nodes , servers or computers connected together over a small
geographic area.
A WAN is a collection of LANs in a larger area.
A MAN or Metropolitan area Network covers a larger area than that of a LAN and smaller area
as compared to WAN.
A PAN is a personal area network.
Network Topologies
Bus Topologies:
Works in a single cable – an arrangement where nodes are connected with a single cable.
-All nodes are connected to a single backbone cable
-Each end of the backbone is connected to either a terminator or a computer which stops
signals from ‘bouncing back’
-Each node is passive
-Data is sent in one direction at a time only
-Only one computer can transmit successfully at any one time
Advantages:
- Inexpensive to set up
Disadvantages
-Limited cable length
-Good for small networks
-Performance degrades with heavy use, owing to data “collisions”
-Poor security
Advantages:
- Easy to isolate problems
- Good performance
- More secure if a switch is used as data is sent only to the recipient
Disadvantages
- Can be expensive to set up because of the length of cable required
- Central device is point of failure
The physical topology of a network defines how the devices are physically connected.
The logical topology defines how the devices communicate across the physical topologies.
CLIENT SERVER MODELS AND PEER-TO-PEER
Peer-to-peer networking
Client-server architecture
Server
Role of the client
-The client sends requests to the server
-Waits for a reply
-Receives the reply
Client-server architecture:
Multiple servers :
IP ADDRESSES :
Every device has to use the same protocols to share data.
TCP/IP – Transmission control protocol/internet protocol is used for inter-working in a network.
IP address classes :
CLASS A:1 -127
CLASS B:128 - 191
CLASS C:192 – 223
CLASS D:224 – 239(Multi cast)
CLASS E:240 – 255(Experimental/research use)
PSTN :
A telephone network utilized to make 2 way voice communications.
Still used today , a duplex data transmission (you don’t have to wait for the other guy to stop
talking)