Partial preview of the text
Download OCR GCSE Computer Science notes and more Exams Computer Science in PDF only on Docsity!
OCR GCSE Computer Science- full study notes Contents- Paper 1: -Unit 1- Systems Architecture- pages 2 to 6 -Unit 2- Networks- pages 7 to 20 -Unit 3- System Software and Security- pages 21 to 32 -Unit 4- Ethical and Legal- pages 33 to 38 Contents- Paper 2: -Unit 5- Computational Thinking- pages 39 to 48 -Unit 6- Programming- pages 49 to 57 -Unit 7- Logic and Languages- pages 58 to 65 -Unit 8- Data Representation- pages 66 to 76 1.1-Systems architecture -CPU—the ‘brain’ of the computer- does all the processing Stored program concept -Before 1943- computers stored data to be worked on in memary -Instructions were imputed one at a time 1943-1944- Von Neumann had the idea of storing program instructions and data together- the stored program computer. Fetch-decode-execute cycle. A cycle of 3 operations: -Fetch- causes the next data instruction and any data related to it to be fetched from main memory -Decode- decodes the instructions -Execute- carries out the instruction Components of the CPU -Control Unit (CU)- co-ordinates all activities within the CPU- executes instructions Registers- small but very fast memory locations Arithmetic Logic Unit (ALU)- does the math and deals with Boolean logic/truths Number of cores Core- a complete processing unit within the CPU- has its own ALU, CU and registers -More cares mean more tasks can be completed/worked on at ance- multitasking -Does not affect single or sequential tasks- instructions must be carried out in sequence and they cannot be split up easily between cores Cache memory -Cache- small and very fast memory location in the CPU- faster to access than RAM -Cache stores frequently used instructions instead of the instruction being fetched from RAM each time- speeds up processing -Cache memory is more expensive than RAM- also has a very small capacity (eround SMB) Embedded systems -Embedded system- a small computer within a device with its own RAM, ROM, and CPU Examples- washing machine, satay, cars 1.3- Memory -2 types of main memory- RAM and ROM RAM (Random Access Memory) -Can be read fram and written to -Access is fast and random Usually contains: The Operating System, software in use and the data the software is using (ie. running programs and data) -Volatile- loses contents when power is turned off Virtual memory -Extension to RAM -Volatile Used when RAM is full -Is when secondary storage is used as if it was RAM -Much slower to access than RAM- OS swaps programs in and out of RAM and VM when needed -Can damage SSD health ROM (Read Only Memory) -Read-only- contents cannat be changed or overwritten -Non-volatile- keeps its contents when power is turned off -Stores boot up instructions and MAC addresses on a network car 1.4- Storage -3 types of secondary starage- magnetic, optical, and solid state -All secondary storage is non-volatile ‘Types of storage -Primary- RAM and ROM -Secondary- HHD and SSD. Offline secondary- CD, DVD, Blu-Ray, USB, magnetic tape Secondary storage methods- how they work Optical- lasers read and write data -Magnetic- mechanical parts move over the disk surface to read and write data magnetically Solid state- data is recorded onto solid memory chips Magnetic -Examples- hard disk, magnetic tape Unit 2- Networks 2.1- The Internet and wireless networks -The Internet- a collection of interconnected networks- the Internet isa WAN -World Wide Web- z collection of web pages Wide Area Network (WAN| -Covers a large geographical area -Uses hardware and cables provided by e third party (e.g. BT) Uses cables, telephone lines, satellites, and radio waves to connect -Examples- banks or large companies [Pv addressing -Every network, computer and other device connected to the internet has a unique IP address: e.g. 72.129.214.16 -Number of IPvd addresses is running out Packet switching -Process when data is split into packets of 512 bytes to be sent across 2 network or the Internet -The header of a packet contains: The destination IP address -The sender’s |P address -The sequence/order number of the packet -The total number of packets Error checking data/ a checksum -Packets are sent across the Internet separately via different routes Receiving and reassembling data: The recipient computer re-orders the packets -Each packet is checked for errors -Corrupt or missing packets are requested to be resent -The recipient computer acknowledges each packet received (notifies the sender each time a packet is received) -Any packets not acknowledged efter a set time will be automatically resent by the sender -Routers pass packets across the Internet Domain Name System (DNS! -Allows us to type names (2.g. google.co.uk) into the Internet instead of IP addresses -Translates the web address into an IP address DNS servers -13 DNS ‘root’ servers worldwide- hold all domain names and IP addresses -Other DNS servers lower down the hierarchy hold parts of the database -When a DNS server receives 2 request for an address not in its database, the request is passed on to another server until one server as the matching name and IP IP address changes each time a device is moved from place to place- e.g. if you go on holiday Star topology Switch / Hub Advantages Disadvantages -Fast data transfer- fewer data collisions | -Requires additional hardware- e.g. central switch or server (expensive) -If one connection fails, other devices _| -If the central device fails, the whole are not affected network goes down Mesh -2 types- full mesh and partial mesh Full mesh: Terminal Terminal Partial mesh: Nodes- a connection point that can receive, create, store, and send data in a network -Can act as routers for data Wireless mesh networks -Have potential to pravide Wi-Fi solutions far entire organizations, cities, or countries -Only one node needs a wired internet connection The mare nodes that use the network, the more the signal can travel Network hardware Network Interface Card (NIC)- in your computer -Router or switch- pravides access to a LAN -Network hardware is needed to provide a connection to LAN’s Advantages Disadvantages . No single point of failure ‘Can have redundant connections -Expansion/changes can be done -Lots of cabling needed- expensive without disruption Data can be sent from different devices | Network maintenance is difficult simultaneously Router- sends data packets in the best direction (‘asses on’ packets towards the destination IP address) Hub- central, multi-plug adaptor for computers and printers. When it receives a packet, the hub broadcasts the packet to all devices on the network (it is quite stupi¢) -Switch- smart, multi-plug adaptor- only sends packets to the required device using its MAC address (its smarter than a hub). Reduces network traffic and increases transmission speeds 2.4- Client-server and peer-to-peer networks Client-server mode! -File server- halds data files and manages backups -Print server- organizes printing Mail server- receives emails, detects and blacks spam, distributes emails to clients -Web server- hosts external websites Features of a client-server network -A central server manages security -Some files are held on the central server Some pracessing tasks are done by the server -Suitable for small and large organizations -May require specialist IT staff to administer the network Advantages -Central backups of data on the server -More secure- all the data is one location -Users can log in from any computer on the network Peer- peer network -Has no central management/server Example: Features -Suitable for smaller companies that have less computers No central server to control file backups and security All computers can easily see the files of other camputers -Easy communication (communications do not need to be processed by a server) If a computer/peer is switched off, its data cannot be accessed Advantages -Easier to set up- computers just need to be cabled together -No special software or hardware is required -Individual computers can share hardware- e.g. a printer, router, and modem -Users can easily communicate and share files Disadvantages -Viruses and malware can easily spread- due to there being no central security management -Each computer must have its own backups- data cannot be backed up centrally -Files are not centrally stored and organized- files can be hard to find Comparing client-server and peer-to-peer networks Client-server Peer-to-peer Acentral backup store (i.e. a server) is | Storage is distributed across all aveilable for all clients to use networked devices Security is controlled by a central Security is not centrally managed- server- harder for malware to spread _| malware can easily spread Advantages of cloud computing -Access to applications at any time, from anywhere Everything is stored and run on a separate computer- not much hard drive space is required -Backups are done by the service provider Disadvantages of cloud computing -Handing over important data to other companies worries people -Sensitive data is more vulnerable to hacking and theft You can store a limited amount of data for free- costs money to store anything extra Transmission media The hardware used to transmit data on a network Methods: -Copper cables -Wi-Fi -Fibre optic cables Comparing transmission media ‘Advantages Disadvantages Copper coaxial cables -Has been used for along | -Signals can be affected time (reliable) by magnetic fields -Fairly cheap -Low bandwidth Cables are very heavy Fibre optics -Very fast data -High investment transmission (speed of __| cost/expensive light) -Expensive hardware is Signal stays strong aver | needed (optical long distances transmitters and -Immune to magnetic receivers) fields -Requires very little power/electricity to work More difficult to wire tap than copper cables “No need to lay trailing | -Slower than wired transmission wires (safer) systems (transfers less -Devices can be used date) anywhere if the signal is _| -Signals can be blocked by strong enough physical objects -Fasier to add new -Security is an issue (less devices to the network —_| secure than wired connections) Factors affecting network performance. Bandwidth -Latency -Error rate and collisions Retransmission rate Bandwidth The amount of data that can be carried at any given time -Analogy- the amount of water that can be carried by a pipe at any given time depends an the size of the pipe Latency -Determined by how fast data packets can be delivered -Or the time delay between the moment the packet is sent and when it is received Errors, collisions, and retransmissions -High network traffic can result in data collisions between packets on a network -When packets collide, they become corrupted or are lost -Retransmission is when corrupted packets are re-sent- process can take longer depending on bandwidth and latency POP and IMAP. -POP- Post Office Protocol -IMAP- Internet Message Access Protocol -These email protocals fetch email data and attachments from your remote mail server -POP- downloads the entire message to your device and then deletes it from the mail server -IMAP- only downloads the header until the message is opened- the rest of the message is left on the server TCP/IP -TCP- Transmission Control Protocol: -Breaks up messages into data packets -Reassembles the packets at the destination device -Detects errors in the packets -Resends lost messages -IP protocol- Routes individual data packets The TCP/IP stack -Defines four layers in which different protocols work together to send data packets across a network. Each layer has a different role. “The four layers: Terminal A Router S ‘Computer applicatior Application layer “Transport layer Sends and routes the dats -Netwark layer -Link layer Physical hardwere and cable: Application layer- selects the correct protocol to use- depends on the application being used and what the user is trying to do. Protocol information is passed to the... -Transport layer- creates the connection between two computers- the computers agree on communication settings and the size of the packets sent and received -Data is divided inta packets and numbered, packets are sent and reassembled by the recipient’s transport layer, lost or carrupted packets are resent. The packets are passed on to.. -Netwark layer- where routers operate -Destination addresses are written on to the data packets, to prepare them for transmission. The packets are then sent to... -Link layer- physical hardware that connects the two computers -Includes the NIC and cabling Advantages of layers -They are self-contained- one layer can be edited without affecting the others -Different hardware and software operate on specific layers, which provides easy communication between providers and systems -This means that a manufacturers’ router working on the network layer can operate with another manufacturers’ NIC which is working on the link layer