Exams - material covered and links to prior exams
past exams:
CPSC 424/624 Exam #1
You can use 1 8.5x11' cheat sheet (front and back). You can write (or type) anything on it. Other than this, the test is close book, close notes. You will need a calculator. You can not share cheat sheets or calculators.
I will ask you questions that cover the material presented in
class or related to material from the text book or additional
reading. Questions related to the quizes, labs, and
exercises are fair game.
As you prepare for the exam, please pay particular attention to:
- Unix background - OS as well as programming.
- OS concepts: signals, processes, scheduling
- Programming: signals, forks, process termination
(i.e., zombie processes)
- Slides from OSConcepts-ch18.pdf : make sure that you are
familiar with (and understand) up through slide 26.
- Basic knowledge of Linux
- All material shown on the slides, presented in class, covered in the text is
fair game
- Commands to be familiar with (there are other commands we
have talked about....anything we covered is fair game)
- apt-get, apt-cache
- find
- grep
- sudo
- ping
- ifconfig (for wireless, try iwconfig)
- arp
- tcpdump
- Unix scheduler: review the basics of OS scheduling and make sure you can apply this background to Linux.
- nice/renice, the concept of 'aging'
- bash scripts
- Be familiar with the examples from our class exercises and homework.
- Networks:
- Data Communications slides: be familiar (to the level
discussed in class or presented in the slides) with
- Data communications over physical mediums, the basic
properties of physical mediums that are important: data
rates, propagation delay, impairment
- Concept of frequency division multiplexing and time
division muxing (FDM and TDM)
- Definition of bandwidth (i.e., 'channel bandwidth in units
of hertz) versus channel data rates versus application
throughput
- Definition of a frame, the frame format of an Ethernet
frame
- Concepts: error detection and error recovery.
- Protocols and Layering slides:
- OSI layered model, be able to state roughly the function
of each layer
- What is internetworking? What is the
'Internet' ? A set of independent networks that
collectively serve as a single network, abiding to a set of
standard network architectures and protocols referred to as
'TCP/IP'.
- TCP/IP Review: Focus on the address material
- Terms host and router
- what is a host: a computer that can communicate
over a TCP/IP network
- how does an address relate to a host: In general,
one address is assigned per network interface.
- A host that is connected to >1 networks is referred
to as multi-homed. It would have 2 IP addresses
assigned to it
- Three types of IP addresses: unicast, multicast,
broadcast
- when is a host a router? If it is able to forward
a packet that arrives at one interface to a second
interface
- TCP/IP v4 basic classful addressing
- Identify the class of an IP address, identify the
network id and the host id.
- For a given address, identify how many hosts can connect
directly to the network
- TCP/IP v4 broadcasts and special addresses
- ARP is covered
- Text book
- Chapter 2 up to section 2.4 AND 2.6
- Chapter 3 (although I won't ask anything that is specific to
any OS other than Ubuntu)
- Chapter 4 (same comment as above)
- Chapter 11, just 11.1 and 11.2
- Chapter 14, just sections 1- 7
- Papers: I will ask a set of short answer, true/false, or
fill in the blank questions based on general concepts introduced
in these papers.
- Unix Time-Sharing paper
- The Reincarnation of Virtual Machines
- The "Overview of TCIP/IP Protocols and the Internet"
- 624 students
- "Towards Fair and Efficient SMP Virtual Machine Scheduling"
- I will ask one or two additional questions that are at an appropriate level for graduate students.
Review topics / questions:
- Using one or more commands and filters, list the files in /var on your VM that are larger than 5 Mbytes. The list should be sorted by file size (largest first). You must do this using a single line of commands. Just show the first 3 lines of results
- Solution (the following lines would all go in your results.txt output file) :
- sudo find /var -size +2M | xargs ls -lS
- -rw-r--r-- 1 root root 71655424 Apr 20 09:23 /var/cache/apt-xapian-index/index.2/postlist.DB
- -rw-r--r-- 1 root root 54943744 Apr 20 09:23 /var/cache/apt-xapian-index/index.2/termlist.DB
- -rw-r--r-- 1 root root 44975761 Apr 20 09:22 /var/cache/apt/pkgcache.bin
- Using ifconfig, find the maximum transmission unit of the ethernet interface that is used to connect to the Internet (i.e., the interface that is assigned a 10.0.2.15 address).
- Solution (the following would go in your results.txt file)
- The results of ifconfig show the MTU is 1500 bytes.
- jjm@jjm-VirtualBox:~$ ifconfig
- eth0
- Link encap:Ethernet HWaddr 08:00:27:92:97:44
- inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
- inet6 addr: fe80::a00:27ff:fe92:9744/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:5009 errors:0 dropped:0 overruns:0 frame:0 TX packets:2192 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5655842 (5.6 MB) TX bytes:193359 (193.3 KB)
- Other examples....
- Simple use of grep and awk...
- Given a 5 line bash script, coding it, making it work.
- And then take that script and make a simple change...
- Question that requires the use of tcpdump ...
CPSC 424/624 Exam #2
NOTE: This exam was given as a take home exam. It was open book, open notes, open Internet. Just needed to work on your own!!
As you prepare for the exam, please pay particular attention to:
- Performance and Analysis
- Probability: You should be able to answer basic questions related to PDF/CDFs, random variables
- Networking:
- The ipstuff.pdf: classful addresses, subnetworking, ARP, IP datagram frame formats, forwarding, and fragmentation
- ICMP/UDP headers (We have not yet covered TCP)
- Make sure you are able to identify fields in tcpdump traces that might be in any header (IP header, ICMP, or UDP header).
- Private networks (using private IP addresses, and NAT for connected private networs to the Internet)
- traceroute, nmap, netcat
- Sockets programs:
- Lastest UDPEchoV1-2.tar.gz, perfTool.tar.gz .....
- List of chapters and sections from the text book that we covered (note: some of this material I did not go over in class):
- Chapter 5 (signals, process states, ps and top commands, runaway processes)
- Chapter 9 (cron)
- Chapter 11 (syslog and logging, just sections 11.1 and 11.2)
- Chapter 14 (sections 14.1 through 14.8, 14.10-14.12although don't worry about discussion specific to Linux distros other than Ubuntu)
- Chapter 15 (just up through section 15.1)
- Chapter 22 (just up through section 22.3 and section 22.8, 22.11,22.12, 22.16,22.17. Note that we will cover 22.4-22.7,22.10 after Exam2)
- Less focus on Bash compared to Exam 1
- Security
- CIA:
- Review the class notes (Security CIA link and CyberSecurity html page),
- Crypto: the cyrpto paper (Lectures from Rutgers..."Cyrptographic communication and authentication"), chapters in our text (noted below), Rivest Public Key paper,
- pseudo random number generators - concepts.
- Be familiar with the ciphers discussed, in the reading, or used in any homework/quiz.
- Authentication -
- Be familiar with the 'Hacking Basics' paper and to the solution posted for HW4 question 3.
- Papers to be covered:
- "Overview of TCIP/IP Protocols and the Internet"
CPSC 424/624 Final Exam
NOTE: The final is comprehensive. It will cover all material from the course, from week 1 through week 16. The exam is closed book, notes, computer except you can bring a calculator (please do so!!) and you can have a two page cheat sheet : two 8.5' x 11' pages with anything you want on the front and back.
Note: see the update below related to exam2
Additional material not listed in the previous lists...unless otherwise stated assume that you should be familiar with the topic to the level discussed in class as well as to the level used in exercises and homework.
- RNG's- pay attention to the HW4 questions #1/2 !!
- TCP- we spent only a small amount of time of TCP. Any questions would follow closely to what was covered in class or in the exercises and hw.
- Nmap: be familiar with the tool and how/why we use it to the level discussed in class and used in exercises and homework.
- Chapter 6 sections 6.1, 6.3, 6.4, 6.5. Make sure you are familiar with setuid/getuid commands, chmod, umask, chown,chgrp.
- Lecture topics on access control and user authentication (topics on Hacking covered to the level of detail presented by John and in the exercise/quiz he assigned)
- Exam 2 (the take home):
- Questions from sections 1 and 2 are similar to some of what you will see on the final. Use these questions to help you prepare.
- Question 3 was waaaaaayyyyy overly complicated. Here's what to pay attention to
- Q3.1 and 3.4 are reasonable and should make sense to you
- Q3.2 and Q3.3 - the purpose was to have you get familiar with TCP traces and to further your understanding of TCP. The only questions related to Q3.2 and Q3.3 I will ask will be related to the information from a tcpdump trace and tying it to basic knowledge of TCP.
- As an example, I might show you lines from the SUM1 summary trace (see the solution!!)
- 1493759382.552540 IP 130.127.49.7.80 > 192.168.2.100.48440: Flags [.], seq 1461:2881, ack 128, win 65535, length 1420: HTTP
- And I might ask questions like:
- Sketch out the two end points of the socket by identifying each endpoints IP address and port number.
- Given this is from a wget from a VM to a dept. server, explain why or why not the vantage perspective of this tcpdump (i.e., where the tcpdump was obtained) is located at the dept. machine rather than at the VM.
- I blank out the length field of the second line and ask you to find the length - you should see that tcpdump is telling us the packet contains sequence numbers 1461 through 2881. Take the difference to see that the lenght is 1420 bytes.
- Don't get bogged down in the details of the answer provided for Q3.2/Q3.3....anything I ask related to TCP will be very straightforward!!.
- For 624 students:
- There will be one or more questions specifically for 624 students.
Hints and items to help you focus
- There will be Bash questions. You won't have to write a Bash script from scratch. Rather I'll show some script code and ask you what certain lines do and to make straightforward enhancments.
- Any sockets programming questions will be directly related to the UDPEcho2 program
- On your crib sheet, make sure you write down the formats for IP and ICMP packets. You should be comfortable with tcpdump traces
last updated: 5/3/2017