# NUS Guides, Reviews & Notes — Full Text
> A list of reviews, guides and study notes for NUS Students. These modules will be graded on Workload, Organization, Learning, Enjoyment and Usefulness.
- **Canonical site:**
- **Pages:** 48
- **Generated:** 2026-12-05
This file contains the complete text of every content page on the site in Markdown. Each section starts with the page title and metadata, followed by the page content. Relative links within a section resolve against that section's canonical URL.
---
# About this page
- **Canonical URL:** https://nus-guide.com/about/
- **Published:** 2024-01-01
- **Last modified:** 2024-11-11
- **Author:** Junhua
- **Tags:** about
- **Keywords:** about
- **Words:** 176
> This is a collection of review, notes and guides that I have compiled over the year for others to refer to them easily.
## Introduction
This page is a collection of notes/reviews that I have taken over the years.
I have decided to put them up here so that others can refer to them easily.
To find out more about the other contents that I post, feel free to visit my main website at [https://jh123x.com](https://jh123x.com "jh123x.com")
More reviews will be back ported in the future.
**Note:** For modules that are too old, I will only upload the tools I have and relevant links.
## Review Criteria
The modules will be graded on these criteria:
1. Workload: How heavy is the workload?
2. Organization: How well is the module organized?
3. Learning: How much did I learn from the module?
4. Enjoyment: How much did I enjoy the module?
5. Usefulness: How useful is the module?
Each of these criteria will be graded on a scale of 1 to 10.
## Contribution
If you want to contribute to the reviews here or have any suggestions, feel free to message me on [Linkedin](https://www.linkedin.com/in/junhua-wen/ "Junhua Wen Linkedin").
## How its made
This website is made using the following technologies:
1. [Hugo](https://gohugo.io/ "Hugo")
2. [Hugo PaperMod theme](https://github.com/adityatelange/hugo-PaperMod "Hugo PaperMod Theme")
3. [Canva](https://www.canva.com/ "Canva")
4. [Netlify](https://www.netlify.com/ "Netlify")
---
# ALS1010 Learning to Learn Better
- **Canonical URL:** https://nus-guide.com/post/als1010-learning-to-learn-better/
- **Published:** 2024-01-24
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** ALS1010
- **Keywords:** ALS1010, Learning to Learn Better, NUS
- **Words:** 705
> A Review of ALS1010 Learning to Learn Better AY20/21 Semester 1 at NUS including module information, useful links, ratings and resources for the module.
## Module Information
This module presents techniques for learning derived from a scientific understanding about how we acquire,process and apply information and skills.
The module distils fundamental findings from the science of learning into simple, pragmatic methods to improve learning inside and outside of classrooms.
These methods include steps to build motivation and conditions for improving learning in both long and short-term contexts.
Learners will be introduced to the methods via 12 short videos.
By contributing to weekly Zoom sessions learners will see how the methods work first-hand.
By engaging in reflective tasks, they will decide which methods can be applied to their own learning in the future.
~ ALS1010 Module Notes
### Schedule
I took this module in AY20/21 Semester 1.
- Venue: Online Classroom
- Lecture Time: 6pm to 8pm on Wednesdays
- Lecturer: [Professor Robert Kamei](https://www.duke-nus.edu.sg/directory/detail/robert-kamei "Professor Robert Kamei") and [Dr Fung Fun Man](https://chemistry.nus.edu.sg/people/fung-fun-man/ "Dr Fung Fun Man")
### Module Breakdown
1. Zoom attendance, participation & Forum posts (30%)
2. 3 Surveys (20%)
1. In weeks 3, 6 & 11
3. Learning Plan (20%)
1. Due in Week 5
4. Updated Learning Plan
1. Due in Week 10
5. Course Reflection Slide
1. Due in Week 13
This module is CS/CU and does not have a letter grade.
### Prerequisite
There are no prerequisites for this module.
### Module Details
This module teaches us how to learn better and cover the following topics
1. Holistic Learning Framework
2. Meta-cognitive Strategies
3. Goal Setting
4. Self-Regulation
5. Motivation
6. Perfecting Practice
7. Memory Learning Techniques
8. Repetition
9. Interleaving
10. Making connections
11. Grit and Resilience
12. Learning and Sleep
13. Learning with Others
### Lectures
The lectures are conducted online via Zoom.
There are only 8 lectures throughout the whole semester
```mermaid
gantt
dateFormat YYYY-MM-DD
title Module Timeline
section Topics
Intro : lesson1, 2020-08-19, 7d
HLF : lesson1, 2020-08-19, 7d
Goal Setting : lesson2, 2020-08-19, 14d
Metacognitive Learning Strats: lesson3, 2020-08-26, 21d
Self-Regulation : lesson4, 2020-09-09, 35d
Attention & Focus : lesson5, 2020-10-14, 7d
Sleep : lesson6, 2020-10-21, 7d
Collab : lesson7, 2020-10-28, 7d
Wrap Up : lesson8, 2020-10-28, 7d
```
### Learning Plan
The course provided a template for us to design our own learning plan.
These are the parts of the learning plan that we must complete.
1. Aspirational Goals
- Lifetime ambitions
2. SMART Goals
- Specific
- Measurable
- Achievable
- Relevant
- Time-based
3. Strategic Working Document
- SMART Goals
- Plan
- Implement
- Evaluate
4. Calendar
- Translate our plans into actions
### Reflection Slide
For the reflection slide, we are required to reflect on the following and place the information on a single slide.
1. Key Takeaways from the module
- What are some changes in our behavior?
- What are some real-life examples where we can apply the learning strategies we learnt?
- How does these strategies fit into the Holistic Learning Framework?
2. Reflection
- What was our `state` of learning before this module?
- What have we learnt in this module?
- What sources of motivation did we gain?
- Where can we apply these strategies in real life?
3. Acknowledgements (Optional)
## Ratings
### Workload (6/10) Moderate
I feel that as a 2 MC module, the workload is quite high.
There are weekly zoom meetings and videos to watch.
There are also deadlines that we have to meet for the learning plan and reflection slide.
### Organization (8/10)
The module was quite well organized.
Each topic is somewhat related to the previous topic and the topics are arranged in a logical order.
### Learning (9/10)
I feel that I have learnt a lot from this module.
These strategies are very useful and I have been applying them to my other modules as well.
If you have some spare MCs to clear in year 1, I would recommend this module and apply these techniques for your other modules.
### Enjoyment (6/10)
I felt that the module was quite enjoyable.
However, due to my other commitments, this module resulted in me skipping dinner every week.
### Usefulness (10/10)
The content of this module is very useful.
I have been applying these techniques to my other modules and I feel that I have been learning better.
I would recommend this module to anyone who has some spare MCs to clear.
## Overall (8/10)
Overall, I feel that this module is very useful and I have been applying these techniques to my other modules.
If you have some spare MCs to clear in year 1, I would recommend this module and apply these techniques for your other modules.
## Useful Links
1. [NUSMods](https://nusmods.com/courses/ALS1010/learning-to-learn-better "ALS1010 Learning to Learn Better")
## Other Reviews
1. [GG.com](https://theggdotcom.blogspot.com/2021/07/nus-module-review-als1010-als1020-learning-to-learn-better-learning-to-choose-better.html "GGDotCom Review")
2. [Chloe's Review](https://yuelunchloe.blogspot.com/2021/06/als1010als1020-learning-to-learn.html "Chloe's Review")
---
# CFG1002 Career Catalyst
- **Canonical URL:** https://nus-guide.com/post/cfg1002-career-catalyst/
- **Published:** 2024-01-28
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CFG1002, Career Catalysts, NUS, National University of Singapore
- **Words:** 625
> A review of CFG1002 Career Catalyst AY19/20 Semester 1 at NUS including module information, useful links, ratings and places to look for resources.
## Module Information
Career Catalyst (CFG1002) is a 6-week module that aims to prepare you for your future career.
It will help undergraduate students like yourselves take personal ownership for creating a
career path that is meaningful to you, and to develop a strategy to maximize your time at the
university.
Practically, you will also go through the process of crafting an effective resume and cover letter
and learn techniques of interviewing and elevator pitch which can be used at career networking
events.
Through this journey, you will develop greater self-awareness (of your personal interests,
strengths and developmental areas) and gain knowledge of and exposure to various diverse
career opportunities and pathways. You will also learn the importance of planning for an
internship early, excelling as an intern and discovering how it can be a crucial link to your future
career.
~ Course Administration document
This course is CS/CU graded.
### Schedule
- Lectures: 6pm to 8pm on Wednesdays (For 6 weeks)
- Venue:
I took the version of this module that runs for the 1st 6 weeks of the semester.
This module is run by the CFG (Centre for Future-ready Graduates) team.
### Module Breakdown
- In class Quizzes + Lecture Attendance **40%**
- Setup Talent Connect Profile **10%**
- Resume Score on VMock **50%**
```mermaid
mindmap
root((Total 100%))
Participation 40%
In Class Quizzes
Attendance
Talent Connect Profile 10%
Resume Score on VMock 50%
```
### Pre-requisites
There are no pre-requisites for this module.
### Module Details
- Insights on hiring trends based on GES
- Career Planning
- CAR Statements
- Structuring our Resume
- Personal Branding
- An Elevator pitch
- Maintaining a Professional Online Presence
- Interviews and Selection Processes
- Frameworks and Techniques to use
- Networking
- Excelling as an intern.
### Seminars
For each of the seminar, the content is quite heavy if we want to absorb all of it fully.
We are also not allowed to miss any of the Seminars to pass the module.
### Assignments
The main assignments for the module are:
1. Setting up our Talent Connect Profile
2. Create a resume and get a score on VMock
For the talent connect profile, we have to fill in our details.
It kinds of feels like a LinkedIn Profile.
As for the resume, we have to create a resume and submit it to VMock.
It took be about 6 iterations of my resume in order to get a score > 90 points.
I felt that this is very useful as it helps us to get a good resume that we can use for our future job applications.
## Ratings
### Workload (4/10) Moderate
The workload for this module is on the moderate side.
However, as the module only runs of half a semester, the workload is similar to a ~3MC module.
There are 6 lectures that are 2 hours each.
On top of the lectures, there were different assignments that we have to complete for the module.
### Organization (8/10)
The module is well organized.
It is an entire package that helps us to prepare for our future career/ internships.
The concepts that I have learnt during the module is still applicable to me even after I have completed the module.
### Learning
As the learning is more on the soft skill side.
It is very hard to give a grade/ rating for this category.
### Enjoyment (6/10)
I felt that the timing of the module is during dinner time, which is not very enjoyable.
### Usefulness (10/10)
This module is very useful as it helps us to prepare for our future career/ internships.
## Overall
Overall, I would recommend that everyone who wants to prepare for their future career/ internships to take this module.
It is a very good use of time as it literally helps us to prepare a decent resume during the module.
## Useful Links
- [NUSMods](https://nusmods.com/courses/CFG1002/career-catalyst "CFG1002 Career Catalyst")
- [Official Website](https://nus.edu.sg/cfg/students/career-ready/career-skills/career-catalyst "CFG1002 Career Catalyst")
### Other Reviews
- [Alan's Review](https://newworldforalan.blogspot.com/2019/06/module-review-cfg1002-ay1819-semester-2.html "CFG1002 Career Catalyst Review")
- [Cafebear's Review](https://takefivee.wordpress.com/2021/06/24/cfg1002-career-catalyst/ "CFG1002 Career Catalyst Review")
---
# CFG1003 Financial Wellbeing Introduction
- **Canonical URL:** https://nus-guide.com/post/cfg1003-financial-wellbeing-introduction/
- **Published:** 2022-12-28
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CFG1003, Financial Wellbeing-Introduction, NUS, National University of Singapore
- **Words:** 317
> A Review of CFG1003 Financial Wellbeing Introduction AY22/23 Semester 1 at NUS including module information, useful links, ratings and resources for the module.
## Module information
CFG1003 Financial Wellbeing-Introduction at the National University of Singapore (NUS) is a module that teaches us how to manage our finances.
Please note that this module is 0MCs and CS/CU Graded.
To pass, you will have to achieve 100% in the online course.
### Schedule
This module is own time own target.
It is available as an online course.
If you rush through the module, it will take approximately 2 hours.
### Module breakdown
Online course using PayMoolah **100%**
### Prerequisites
There are no prerequisites for this module.
### Module details
The objectives are:
1. Understand the fundamentals of managing your money including first things first principles around money decision-making.
2. Explore topics such as the five pillars of money, automation, good and bad debt and explore the pathways to savings and investing.
3. Know how to develop a plan for a flourishing life with core financial management practices, while managing the stresses of money in one’s daily life.
### Online course
The online course is similar to ones which you might see in Coursera or Udemy.
We can learn at our own pace and our own time.
### Ratings
### Workload 0/10
There is only one online course to complete.
The workload is very very light.
### Organization 7/10
This module is well organized.
### Enjoyment 6/10
The module was engaging but not as engaging as it can be if it was held in person.
### Usefulness 8/10
The content was very useful and provides many tips on how to save money by creating a budget.
They even provide a template for us to fill in.
### Overall 7/10
Overall I found this module useful and great for anyone who wants to take it.
I will recommend this module to those who want to learn more about budgeting as well as those interested in Financial Wellbeing - Art and Science of Investing (CFG1004) as it is a prerequisite for that module.
### Useful links for CFG1003 information
1. [CFG Website](https://nus.edu.sg/cfg/students/career-ready/soft-skills/financial-wellbeing "CFG Website for CFG1003")
---
# CFG1004 Art and Science of Investing
- **Canonical URL:** https://nus-guide.com/post/cfg1004-financial-wellbeing---art-and-science-of-investing/
- **Published:** 2023-02-07
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CFG1004, Financial Wellbeing - Art and Science of Investing, NUS, National University of Singapore
- **Words:** 492
> A Review of CFG1004 Financial Wellbeing - Art and Science of Investing AY22/23 Semester 2 at NUS including module information, links, ratings and resources.
Taken in AY22/23 Sem 2
## Module information
In The Art and Science of Investing, we look at the science behind investing and the art of designing an investment strategy that will lead to your flourishing life.
This course will equip you with the foundational knowledge of core principles of Financial management, investing psychology and investing fundamentals via a blended learning approach comprising of six interactive e-lessons and live ‘Ask-Me-Anything’ sessions with industry professionals.
There is no examination for this module, but you are required to complete all assessment components by the stipulated deadlines in order to pass this module.
Important: Non-submission of any assessment component will result in a CU grade.
### Schedule
This module is own time own target.
It is available as an online course.
If you rush through the module, it will take approximately 1 day.
### Module breakdown
Online course using PayMoolah **100%**
### Prerequisites
[CFG1004 Financial Wellbeing - Introduction](/post/cfg1003-financial-wellbeing-introduction/ "CFG1003 Review")
### Module details
The objectives are
By completing the lessons and activities in this course, you will:
1. Learn about the role and concepts of investing in good financial management and achieving life goals
2. Understand how to maximize your financial management and investment journey with the 8 forms of capital model
3. Protect your investment journey with the Financial Emotional Resilience model
4. Design your personal money narrative
5. Understand the different stages of financial maturity
6. Learn about investment instruments
7. Learn how to set up a brokerage account and the fundamentals of portfolio building
8. Design your financial, investment portfolio and strategy
There are also 2 AMA sessions which we can attend and ask any questions we have in mind about investing.
For this semester, the AMA sessions are on `16/2/2023` and `22/3/2023`.
All components are to be completed by **26 Mar (Sun), 23:59** with no deadline extensions.
### Online course
The online course is similar to the ones which you might see in Coursera or Udemy.
We can learn at our own pace and our own time.
### Assignments
1. 3 MCQ quizzes (**20% each**)
2. 3 Self-Reflection Assignments (**10% each**)
3. 1 Discussion on conNectUS forum (**10%**)
## Ratings
### Workload 3/10 (Low Workload)
This is a step up from the previous module ([CFG1003](/post/cfg1003-financial-wellbeing-introduction/ "CFG1003 Review")).
The workload is still very light.
### Organization 8/10
The module is well organized.
Every topic is clearly explained and relates to the next topic.
### Enjoyment 6/10
Similar to CFG1003, this module is enjoyable but would be better if it was conducted in person.
### Usefulness 9/10
The content is very useful and provides us with a concrete strategy on how to invest.
Within this module, we will be taught:
1. Growth Investing
2. Value Investing
Which are 2 great strategies for us to kick start our investment journey.
The module also teaches us about the 8 forms of capital and the financial emotional resilience model and changed my impression of investing in general.
### Overall 8/10
Overall, I found this module useful for anyone who is interested in investing and not sure how to start.
### Useful links for CFG1004 information
1. [CFG Website](https://nus.edu.sg/cfg/students/career-ready/soft-skills/financial-wellbeing "CFG Website for CFG1004")
---
# CFG3001 Career Advancement
- **Canonical URL:** https://nus-guide.com/post/cfg3001-career-advancement/
- **Published:** 2023-02-07
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CFG3001, Career Advancement, NUS, National University of Singapore
- **Words:** 499
> A review of CFG3001 Career Advancement AY22/23 Semester 2 at NUS including module information, useful links, ratings and resources for the module.
Taken in AY22/23 Sem 2
## Module information
This blended learning module aims to equip penultimate year and graduating students with (1) advanced career preparation skills to increase their career opportunities; and (2) essential workplace success skills to excel in their first graduate job. This module integrates an e-learning component and a live component (face-to-face workshop or webinar) and is structured around five topics. Through this module, students would be better prepared to create their personal branding to strategically position themselves for job applications, gain new career opportunities and expand their network and, more importantly, to succeed at their future careers.
### Schedule
This module is own time own target.
It is available as an online course.
If you rush through the module, it will take approximately 2 days.
### Module breakdown
Online course **100%**
### Prerequisites
There are no prerequisites for this module.
This module is only available to Year 3 and Year 4 students.
### Module details
The objective of the modules are:
1. Define your brand
2. Communicate your brand via Resume and Online Profile
3. Networking: Strategies to Connect for Career Success
4. Essential Interview Skills for Graduates
5. Supercharge your first 90 days at work
6. Etiquette for The Office and Remote working
### Online course
The online course is similar to the ones which you might see in Coursera or Udemy.
We can learn it at our own time and own pace.
### Assignments
1. Informational Interview Invitation **10%**
2. VMock Interview Report **20%**
3. VIPS Worksheet **10%**
4. Reflection Journal **30%**
5. conNectUS Profile **10%**
6. Respond and Comment on Forum **10%**
## Ratings
### Workload 4/10 (Low Workload)
The workload is not too bad but a little high for a 2MC module.
The online course is not too long but the informational interview is very time consuming as you have to find willing alumni and schedule a time to meet them for the informational interview.
### Organization 8/10
This module is well organized. At the start it shows us what a job seeker can do to perform better in interviews and securing a job.
Following which, it teaches us what to do to become a better employee during our times at work as well as the expected etiquette in the workplace.
### Enjoyment 5/10
This module is enjoyable but there are some components which are more time consuming.
### Usefulness 8/10
The module shows us to to setup our online profiles (LinkedIn, Indeed, TalentConnect, etc) to leave a better impression and how to write a resume that will stand out from the rest.
It also includes tips on writing cover letters and even a template for us to use.
It also shows us a way to work on ourselves and improve our interviewing skills as well as our workplace etiquette.
### Overall 7/10
Overall, I found this module useful for anyone who wants the following:
1. Create a better online profile
2. Write a better resume / cover letter
3. Improve their interviewing skills
4. Learn how to perform better and be more professional at work
5. Learn about workplace etiquette
## Useful Links for CFG3001
1. [CFG3001 Official CFG Page](https://nus.edu.sg/cfg/students/career-ready/job-search-effectiveness/career-advancement/e-module "CFG3001 Official CFG Page")
2. [CFG3001 NUSMods](https://nusmods.com/modules/CFG3001/career-advancement "CFG3001 NUSMods")
---
# CP2106 Independent Software Development Project
- **Canonical URL:** https://nus-guide.com/post/cp2106-independent-software-development-project/
- **Published:** 2024-01-28
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CP2106, Independent Software Development Project, NUS, National University of Singapore
- **Words:** 607
> A review of CP2106 Independent Software Development Project AY19/20 Special Term at NUS including module information, links, ratings and resources.
## Module Information
Orbital provides a platform for students to gain hands-on industrial experience for computing technologies related to students’ own interests. Done in pairs of two, Orbital students propose, design, execute, implement and market their project to peers and faculty. Peer assessment and critique of others’ projects are key components of the courses’ deliverables.
~ NUSMods Module Information
This module is on a pass/fail basis.
### Schedule
- Flexible Schedule
- Venue:
- For most of the module, you can do the course online.
- For the final presentation, you will have to go down to NUS to present your project.
There are 3 main events
1. Liftoff (Start of the module)
2. Mission Control
3. Splashdown (End of the module)
### Module Breakdown
- Lift Off
- Milestones 1, 2, 3
- Splashdown
```mermaid
gantt
title Orbital
dateFormat MM-DD
axisFormat %m-%d
Section Liftoff
Proposal: 05-11, 7d
Section Milestone 1
Ideation: 05-18, 15d
Section Milestone 2
Prototyping: 06-01, 28d
Section Milestone 3
Extensions: 06-29, 28d
Section Splashdown
Splashdown: 08-26, 7d
```
### Pre-requisites
- CS1010 or any of its variants OR CS1101S
- Must not have completed CS2103T or any of its variants
### Module Details
There are on concrete details on what you have to do for this module.
We have the freedom to decide on what projects that we want to work on for 3 months.
I will definitely recommend everyone to take on more complicated projects on a tech stack that you want to learn.
If the project is not sufficiently complicated, you will not be able to learn much from the project/not get accepted by the module.
During the project, we will have an advisor that will guide us through the project.
If we need any technical help, we can approach them to ask for help as well as their opinions on the project.
### Liftoff
For lift off, the main task was to submit a proposal for the project that you want to work on.
1. You have to find a partner to work with.
2. You have to submit a proposal for the project that you want to work on.
3. For artemis teams, we have to also create a poster and video for the project.
The deadline for the Artemis teams is earlier at 14th May instead of 18th May.
### Milestones
For each of the milestones, you have to submit a report for the milestone.
The report includes the following:
1. What you have done for the milestone
2. Information on our project
For the last milestone, you have to submit a video for the project.
## Ratings
### Workload (~ Varies)
The workload for this module depends on the project that you are working on and may vary from person to person.
### Organization
Similar to the workload, the organization of this module depends on the project that you are working on and may vary from person to person.
### Learning (10/10)
As we are able to choose what we want to work on.
It empowered me to learn the stuff that I wanted to learn for a long time.
It really help me to learn something that I am interested to know more about.
### Enjoyment (10/10)
I enjoyed taking this module a lot as I am able to program something that I am interested in.
I have learnt a lot of concepts about design and programming that I have not learnt before in traditional university lessons.
### Usefulness (~ Varies)
The usefulness of this module depends on the project that you are working on and may vary from person to person.
## Overall
For anyone who wants to take this module.
Please apply for the module in the semester before (Around March).
## Useful Links
- [Official Module Website](https://orbital.comp.nus.edu.sg/ "CP2106 Independent Software Development Project")
- [My Orbital Project: Space Invaders](https://jh123x.com/projects/orbital/ "Orbital Project: Space Invaders")
### Other Reviews
- [Bernard's Review](https://bernardteo.me/nus/CP2106.html "CP2106 Independent Software Development Project")
---
# CP4101 B.Comp. Dissertation
- **Canonical URL:** https://nus-guide.com/post/cp4101-b.comp.-dissertation/
- **Published:** 2023-11-27
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CP4101, cp4101, B.Comp. Dissertation, NUS, National University of Singapore, Final Year Project
- **Words:** 1671
> A review of CP4101 B.Comp. Dissertation AY22/23 Semester 1 and Semester 2 at NUS including module information, links, ratings and resources for the module.
Taken in AY22/23 Sem 1 to AY22/23 Sem 2
## Module information
The individual project dissertation provides the opportunity for a student to demonstrate independence and originality and to apply knowledge learnt in courses to a reasonably large problem requiring analytical and/or design and/or experimental effort. Students taking this course must work independently on a research project or applied research project, under the supervision of staff. Please see the Nature of Projects to get an idea of the broad classifications to which a proposed project belongs to.
The project demonstrates a student's work ethic, level of initiative, determination and innovative ways of solving problems. It also tests a student's ability to adapt to work in a research or a large scale project environment involving design and development, or take up an individually challenging problem requiring innovative solution and able to think laterally when difficulties are encountered. The project also provides scope for student to use their skill in technical project execution and management, and to think and seek solutions when difficulties are encountered, as each student is largely responsible for their own programme of work.
The project is expected to kindle interest in research in students and motivate them to undertake research work through higher studies by joining our PhD programme. The applied research work carried out in these projects has enabled some of our students to start their own start-up companies through our incubation centre or otherwise.
Continual assessment - Student is required to submit a report at the end of first semester into the project. The supervisor and main evaluator would assess on student's performance and also on his/her competence and attitude towards the project.
On completion of the project a student is required to submit a dissertation describing the project work, and give an oral presentation before a panel of examiners, in a seminar environment.
~ From the [Official Website](https://www.comp.nus.edu.sg/programmes/ug/project/fyp/ "CP4101 B.Comp. Dissertation Module Website on NUS SoC Website")
### Schedule
The project spans over a period of 2 semesters. With approximately 400 hours of work across the 2 semesters.
### Prerequisites
1. Must complete 70% of the MCs required for the degree programme to take CP4101.
2. Must have attained the CAP requirements of the selected FYP Project.
### Module Details
This module is 12 MCs and is letter graded.
These are the tasks that we have to complete for the module:
1. Project Update Form (If required)
2. CA Report
3. CA Presentation
4. Final Report
5. Final Presentation
6. Submit E-Copy or Report
7. Submit Feedback of Final Report
### Proposing your own projects
There are 3 different ways to get a FYP Project
1. Proposal by Academic Staff
- Prof Projects
2. Proposal by Industry
- Projects by Industry
3. Proposal by Student
- Self proposed project by yourself / other students
## Signing up
### Timeline
There are 3 different rounds of FYP Project Selection.
1. Round 1: Week 7 of the previous semester
2. Round 2: Week 10 of the previous semester
3. Manual Registration: Week 13 of previous semester up to week 1 of FYP Semester
For more information, you can visit the [Official Project Selection Schedule](https://www.comp.nus.edu.sg/programmes/ug/project/fyp/select/ "FYP Selection Schedule")
### Project Selection
1. Go onto [Project Admin](https://mysoc.nus.edu.sg/~projadm/ "NUS Project Admin Website")
2. Login to the website
3. Browse through the list of projects
## My Personal Experience
### My Circumstances
During the semester preceding my Final Year Project (FYP), I embarked on my exchange program that broadened my horizons.
However, this meant I missed both Round 1 and Round 2 of the Official FYP selection period, adding an unexpected twist to my academic journey.
Undeterred, I took the initiative to reach out to several professors via email, expressing my eagerness to contribute to their projects.
Through a stroke of luck, I secured my top-choice project.
### My Project Decisions
As someone who specialized in Software Engineering and Computer Security, I was looking for a project that are within these 2 fields.
However, as I had some research experience during my internship after my exchange project.
I was not looking to do a research based project.
My criteria for selecting a project were as follows:
1. Not research based
2. Software Engineering or Computer Security related
While browsing through the different projects on the [Project Admin](https://mysoc.nus.edu.sg/~projadm/ "NUS Project Admin Website"), I manage to find a project on Visual Python: A Visual Programming Language for Python.
I felt that the project was very meaningful and would be a good fit for me.
Thus, I reached out to Prof. Alan who was the supervisor for the project.
He scheduled a meeting with me to see if I am a right fit for the project.
Lucky for me, he agreed to let me take on the Project.
I am still very grateful for this opportunity to work on this project.
### Starting experience
My project started a little earlier than the typical FYP start date (during the summer holidays in June).
This meant that I had to juggle between my internship and my FYP project.
It was a brownfield project that was started by the previous FYP student.
The code base is fully written in ReactJs.
To start off the project, Prof. Alan had me start on some small tasks to get me familiar with the project.
He event scheduled a meeting with the previous FYP student to get me up to speed with the project.
After the meeting, I had to plan the project timelines and milestones that I wanted to achieve.
During this period of time, progress was slow and there was not much being accomplished.
### During Semester
After my internship ended, I was able to focus on my FYP project.
At this point, I was more familiar with the code base and was able to channel more of my time to improving the project.
My FYP partner also joined me during this period of time on the project.
We had weekly meetings with Prof Alan to update him on our progress and to get his feedback on our work.
Prof Alan would try out what we had implemented and gave us his genuine feedback and suggestions on how we can continue the project.
We had many opportunities to try different ways to implement the features that we require and discover for ourselves what works and what does not.
We also learnt lessons from other similar projects that have taken off and tried to incorporate their ideas into our project.
During this period of time, we had the opportunity to learn:
1. React JS
2. Nginx
3. Docker
4. CI/CD
5. Netlify Integration
6. Linux Scripting
These skills were invaluable to me even after graduation.
### Reports
Prof Alan was also very kind in helping us vet through our reports before the official submission deadlines.
Here is what I used in my project report.
Please take this as a guide as every project might have a different format that is required / more suitable.
If you have any questions, you can reach out to your professors or your FYP supervisor.
For the CA project, the format of the report is as follows:
1. Introduction
- Abstract of the report
2. Literature Review & Existing Tools
- Literature Review of other similar projects and their pros & cons
3. Progress of the project so far
- What we have done during the previous semester
- Design Decisions
- Tech Stack and why we choose to use them
- Strengths & Limitations of our project
4. Research Plan for the Next Semester
- What we plan to do for the next semester
5. References
- References used in the report (APA format)
6. Appendices
- Full list of features implemented
- Timeline of the project
- Full tech stack of the project
For the final project, the format will be longer:
1. Introduction
- Abstract of the report
- Motivation
- Objectives
2. Related Works
- Literature review of other projects
- The other projects' strengths and limitations
3. Features of our current project
- Including screenshots and how to use them
4. Design Decisions
- Why we choose to use certain tech stack vs others
5. Testing
- Test methodology
- Heuristic Evaluation
- Software testing
- User testing
- Results of the tests
6. Conclusion
- Summary of the project
- Future work
- Limitations of the project
7. References
8. Appendices
- Timeline for entire FYP
- Tech Stack used
- Other useful information
### Presentations
As the presentation was done for both me and my FYP partner, we had to kind of de-conflict on what we wanted to present.
We decided to focus on the sections which we have implemented during the semester.
The presentation is basically a condensed version of the report with the areas that you want to zoom in a little more.
The presentation was done in front of Prof Alan and our reviewing professors.
Be prepared to answer questions from the reviewing professors.
## Ratings
### Workload (7/10)
The workload is moderately high.
I spend most of my afternoons during FYP.
The time is mostly spent on:
1. Implementing the features
2. Deployment of the project
3. Making design decisions
4. Optimization / Refactoring of the code base
### Organization (N/A)
The organization of the project depends on us and how we plan it.
Prof Alan was very helpful in helping us plan the project and giving us feedback on our plans.
At the end of the day, we have to decide on what features we want to do and how we want to implement them.
We have to strike a balance between the features that we want to implement and the time that we have to implement them.
### Enjoyment (8/10)
I enjoyed doing the FYP project a lot.
I was able to learn a lot of new skills and apply them to the project.
I also enjoyed working with Prof Alan and my FYP partner.
The project guided me through the whole process of a software project from start to finish.
### Usefulness (8/10)
The skills learnt during the project was very useful for my current job and future software engineering jobs.
### Overall (8/10)
Overall, I really enjoyed taking this module.
I was able to learn a lot of new skills and apply them to the project.
However I feel that if you can graduate 1 semester earlier, you should do so instead and earn some job experience instead.
Expected Grade: A
Actual Grade: A+
If you have any more questions about CP4101, feel free to reach out to me on [Linkedin](https://www.linkedin.com/in/junhua-wen/ "Junhua Wen's Linkedin Profile").
## Useful Links
1. [CP4101 B.Comp. Dissertation Module Website](https://www.comp.nus.edu.sg/programmes/ug/project/fyp/ "CP4101 B.Comp. Dissertation Module Website on NUS SoC Website")
2. [NUSMods](https://nusmods.com/courses/CP4101/b-comp-dissertation "CP4101 B.Comp. Dissertation Module Page on NUSMods")
3. [My FYP: Visual Python](https://jh123x.com/projects/visualpython/ "Visual Python Final Year Project")
4. [Project Admin](https://mysoc.nus.edu.sg/~projadm/ "NUS Project Admin Website")
5. [FYP Selection Schedule](https://www.comp.nus.edu.sg/programmes/ug/project/fyp/select/ "FYP Selection Schedule")
---
# CS1010X Programming Methodology
- **Canonical URL:** https://nus-guide.com/post/cs1010x-programming-methodology/
- **Published:** 2024-11-26
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CS1010X, Programming Methodology, NUS, National University of Singapore
- **Words:** 651
> A review of CS1010X Programming Methodology AY18/19 Semester 2 at NUS including module information, useful links, ratings and places to look for resources for the module.
## Module Information
This course introduces the fundamental concepts of problem solving by computing and programming using an imperative programming language. It is the first and foremost introductory course to computing and is equivalent to CS1010, CS1010S and CS1010E Programming Methodology. The course will be taught using the Python programming language and topics covered include problem solving by computing, writing pseudo-codes, basic problem formulation and problem solving, program development, coding, testing and debugging, fundamental programming constructs (variables, types, expressions, assignments, functions, control structures, etc.), fundamental data structures: arrays, strings and structures, simple file processing, and basic recursion.
~ NUSMods
## Prerequisites
- Not a current undergraduate.
- Have not taken any of the CS1010 Variants
## General review
I would definitely recommend anyone who can take this module to take this module.
Here are some of the pros and cons of taking CS1010X before school begins
### High Workload of CS1010 Variants
CS1010 and its variants are known for being high in workload and hard to cope with during the school term.
By taking CS1010X instead of the various CS1010 variants before the start of the school term,
we can dedicate more of our time to learning the foundations of programming before the school starts.
### Settling into the pace of school before the start of university
This can also be taken as an opportunity to ease yourself into the pace of school.
Especially for Singaporean guys who has to serve their national service, this is a good time to get used to studying life again.
By taking a lower workload before the school term, it will make the 1st term less scary.
### A chance to really learn its contents
Taking CS1010x before the start of school also allows us to learn the content more deeply.
Instead of having to juggle multiple courses, you only have to worry about this single course.
The module is quite content heavy and some of the concepts require some time (especially for those new to programming) to grasp.
This is the perfect opportunity to learn the content fully with the additional time that we have.
## Trade-offs
Of course, taking CS1010X comes with some trade-offs that you may have to consider.
By taking CS1010X before the school term, you are sacrificing your time to enjoy your free time before the start of university life.
If you are the type who wants to enjoy life before school starts, taking CS1010X may not be for you.
## How to do well
To perform better for CS1010X, I would encourage you to do more of the side quests and the past year papers.
There are some of the past year papers [below](#past-year-papers "Past year papers")
## What to do after CS1010X
**This was available during my time as a CS1010X student, I am not sure if it is still available now.**
After taking CS1010X, if we perform well enough, we will also have the opportunity to take CS2030 and/or CS2040 during the special term.
This is a 6 weeks course which will cover almost the full content of CS2030 and CS2040.
For those who are interested in finishing their degree earlier, this may be worth it to take up.
Please do note that the intensity of the modules are quite high as they are compressed to 6 weeks, please ensure that you are free during the whole duration.
## Useful Links
These links below may also be useful for other CS1010 Variants
- [NUSMods](https://nusmods.com/courses/CS1010X/programming-methodology "NUSMods")
- [iBlocs page to sign up](https://www.nus.edu.sg/ibloc/iBLOC.html "iBlocs page")
### Notes
1. [Time Complexities](./time-complexities.pdf "time complexity")
2. [CS1010X Repository by mclsun](https://github.com/mclsun/CS1010X "CS1010X repo")
## Past Year Papers
1. [CS1010S Finals Nov 2013](./cs1010s-final-solutions-nov13.pdf "CS1010S Finals 2013")
2. [CS1010FC Finals Jun 2014](./cs1010fc-final-solutions-jun14.pdf "CS1010FC Finals 2014")
3. [CS1010S Finals Apr 2014](./cs1010s-final-solutions-apr14.pdf "CS1010S Finals 2014")
4. [CS1010S Finals Nov 2014](./cs1010s-final-solutions-nov14.pdf "CS1010S Finals 2014")
5. [CS1010FC Finals Jun 2015](./cs1010fc-final-solutions-jun15.pdf "CS1010FC Finals 2015")
6. [CS1010S Finals Apr 2015](./cs1010s-final-solutions-apr15.pdf "CS1010S Finals 2015")
7. [CS1010S Finals Apr 2016](./cs1010s-final-solutions-apr16.pdf "CS1010S Finals 2016")
8. [CS1010S Finals Apr 2017](./cs1010s-final-solutions-apr17.pdf "CS1010S Finals 2017")
9. [CS1010S Finals Apr 2018](./cs1010s-final-solutions-apr18.pdf "CS1010S Finals 2018")
10. [CS1010S Finals Apr 2019](./cs1010s-final+solutions-apr19.pdf "CS1010S Finals 2019")
11. [CS1010S Finals Nov 2015](./cs1010s-final-solutions-nov15.pdf "CS1010S Finals Nov 2015")
12. [CS1010S Finals Nov 2016](./cs1010s-final-solutions-nov16.pdf "CS1010S Finals Nov 2016")
13. [CS1010S Finals Nov 2017](./cs1010s-final-solutions-nov17.pdf "CS1010S Finals Nov 2017")
14. [CS1010S Finals Nov 2018](./cs1010s-final-solutions-nov18.pdf "CS1010S Finals Nov 2018")
15. [CS1010X Finals Jun 2016](./cs1010x-final-solutions-jun16.pdf "CS1010X Finals Jun 2016")
16. [CS1010X Finals Jun 2017](./cs1010x-final-solutions-jun17.pdf "CS1010X Finals Jun 2017")
17. [CS1010X Finals Jun 2018](./cs1010x-final-solutions-jun18.pdf "CS1010X Finals Jun 2018")
### Other Reviews
1. [Zanblade's Review](https://zanblade.wordpress.com/2020/01/02/nus-ibloc-2018-cs1010x-review/ "Zanblade's review")
2. [MarcuStudioz's Review](https://www.youtube.com/watch?v=rRN_1JA5Oi0 "MarcuStudioz's Review")
---
# CS1231 Discrete Structures
- **Canonical URL:** https://nus-guide.com/post/cs1231-discrete-structures/
- **Published:** 2023-11-26
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CS1231, Discrete Structures, NUS, National University of Singapore
- **Words:** 342
> A review of CS1231 Discrete Structures AY19/20 Semester 1 at NUS including module information, useful links, ratings and places to look for resources for the module.
## Module Information
This course introduces mathematical tools required in the study of computer science. Topics include: (1) Logic and proof techniques: propositions, conditionals, quantifications. (2) Relations and Functions: Equivalence relations and partitions. Partially ordered sets. Well-Ordering Principle. Function equality. Boolean/identity/inverse functions. Bijection. (3) Mathematical formulation of data models (linear model, trees, graphs). (4) Counting and Combinatoric: Pigeonhole Principle. Inclusion-Exclusion Principle. Number of relations on a set, number of injections from one finite set to another, Diagonalisation proof: An infinite countable set has an uncountable power set; Algorithmic proof: An infinite set has a countably infinite subset. Subsets of countable sets are countable.
~ NUSMods
## Personal thoughts
Personally, I feel that this module is an IQ test and is very new to me.
During the previous education phases in my life, I have not touched anything related to logic.
The different laws of boolean algebra and how to manipulate them felt really weird for me.
Individually, each of the laws made sense.
However, when using them in conjunction, it does not seem intuitive to me initially.
During the start of the semester, I had to use a lot of time to understand each of them at the deeper level.
The extra time spent really helped me understand the topics which were taught later.
The mid terms for my semester was really easy, many of my friends also scored very well.
However, the finals are really hard, during the paper collection, many students had an empty last page for the final question.
We are allowed to bring a 2 page cheat sheet.
Some of the cheat sheets can be found in the links section below.
I actually expected myself to score lower but somehow got a B+.
The bell curve gods have answered my prayers.
- Expected Grades: B
- Actual Grades: B+
### Useful Links
1. [NUSMods](https://nusmods.com/courses/CS1231/discrete-structures "CS1231 Discrete Mathematics")
### Notes
1. [Summarized Cheat sheet](./CS1231_Condensed_Notes_unofficial.pdf "Summarized Cheat Sheet")
### Textbooks
1. [Discrete Math with applications](./Discrete_Mathematics_with_Applications.pdf "Discrete Math with applications")
2. [Introduction to Advanced Mathematics](./Connie%20M.%20Campbell-Introduction%20to%20Advanced%20Mathematics_%20A%20Guide%20to%20Understanding%20Proofs-Cengage%20Learning%20(2011).pdf "Introduction to advanced mathematics")
3. [CS1231 Ref Book](./CS1231%20-%20Ref%20Book.pdf "CS1231 Ref book")
4. [Handbook of Discrete and combinatorial mathematics](./_PMTF2~D.PDF "Handbook of Discrete and combinatorial mathematics")
### Papers
1. [Assignment 1 Answer](./assign1_ans_post.pdf "Assignment 1 Ans")
2. [Assignment 2](./assign2_qns.pdf "Assignment 2")
3. [Exam 17 S1](./CS1231_exam_17s1.pdf "CS1231 Exam 17 S1")
4. [Exam 19/20 S1](./exam_questions.pdf "Exam 19/29 S1")
### Other Reviews
1. [ZhongJun's Review](https://reviews.zhongjun.me/computing/cs1231-discrete-structures "Zhong jun's review")
2. [Bernard's Review](https://bernardteo.me/nus/CS1231.html "Bernard's Review")
---
# CS2030 Programming Methodology II
- **Canonical URL:** https://nus-guide.com/post/cs2030-programming-methodology-ii/
- **Published:** 2023-11-26
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CS2030, Programming Methodology II, NUS, National University of Singapore
- **Words:** 482
> A review of CS2030 Programming Methodology II AY18/19 Special Term at NUS including module information, useful links, ratings and places to look for resources for the module.
## Module Information
This course is a follow up to CS1010. It explores two modern programming paradigms, object-oriented programming and functional programming. Through a series of integrated assignments, students will learn to develop medium-scale software programs in the order of thousands of lines of code and tens of classes using object oriented design principles and advanced programming constructs available in the two paradigms. Topics include objects and classes, composition, association, inheritance, interface, polymorphism, abstract classes, dynamic binding, lambda expression, effect-free programming, first class functions, closures, continuations, monad, etc.
~ NUSMods
### Pre-requisites
1. CS1010 / equivalent
### Schedule
- Lecture: 2 hours
- Recitation: 1 hour
- Lab: 2 hours
### My CS2030 experience
Before I dive into my ratings for this module, let me describe my experience while taking this module.
I took CS2030 during the special term after taking my CS1010X course from iBlocs.
The special semester lasted for 6 weeks, with 2x the normal workload from every week.
However, the content that we had to cover was a slightly cut down version of the full CS2030 (based on comparing notes with my friends who had to take the full version)
### How I feel about my journey
During my CS2030 course, I initially felt very crammed as I had to go from 0 java experience to coding in java within the 1st 2 weeks.
The fast pace of the course really helped as the time to wait in between sessions were very short.
I was able to recall most of the content which has been taught from the previous session.
This empowered me to build on the knowledge that I have learnt from the previous weeks.
Pre-reading some of the lecture notes really helped me to understand the content that the professor was going through.
I've also made some life long friends along the way (From the same batch of CS1010X students who have decided to take CS2030)
1 thing to note is that 1 of my school camps has clashed with the lesson slots and I skipped the lesson for the camp.
This required me to do some catch up for the lessons that I missed.
As the timeline is quite tight, I did not have much time to do the catch up.
### Verdict
Please consider taking this course if any of the following applies to you
1. You want to graduate school early
2. You want to learn the contents of CS2030 better
3. You do not have a lot of activities planned during the special term period.
For those who have plans to skip > 1 lesson, please do not take this as it may be hard to catch up on the content given the short timeline.
## Useful Links
1. [NUSMods](https://nusmods.com/courses/CS2030/programming-methodology-ii "CS2030 NUSMods")
### Papers
1. [CS2030 Midterms Practice Assessment AY1819](./CS2030%201819%20S4%20Practice%20Assessment.pdf "CS2030 Practice Assessment AY1819")
2. [CS2030 1718 Special Term](./1718-ST-CS2030.pdf "CS2030 1718 Special Term")
3. [CS2030 1718 Sem1](./1718SEM1-S2030.pdf "CS2030 1718 Sem 1 Paper")
4. [CS2030 1718 Sem2](./1718SEM2-CS2030.pdf "CS2030 1718 Sem 2 Paper")
5. [CS2030 1819 Sem1](./1819SEM1-CS2030.pdf "CS2030 1819 Sem 1 Paper")
6. [CS2030 1819 Sem2](./1819SEM2-CS2030(Sec%20B).PDF "CS2030 1819 Sem 2 Paper")
7. [CS2030 1819 S4 Final Assessment](./CS2030%201819%20S4%20Final%20Assessment%20Ans.pdf "CS2030 S4 Final Assessment")
8. [CS2030 1819 Make up exam](./CS2030%201819%20S4%20Make%20Up%20Answer.pdf "CS2030 S4 Make up exam")
### Other Reviews
1. [Zhongjun's Review](https://reviews.zhongjun.me/computing/cs2030-programming-methodology-ii "Zhongjun's CS2030 review")
2. [Livingbutamireally's Review](https://livingbutamireally.tumblr.com/post/638680426335141888/embed "livingbutamireally's CS2030 Review")
---
# CS2101 Effective Communication For Computing Professionals
- **Canonical URL:** https://nus-guide.com/post/cs2101-effective-communication-for-computing-professionals/
- **Published:** 2024-01-26
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CS2101, Effective Communication For Computing Professionals, NUS, National University of Singapore
- **Words:** 442
> A review of CS2101 Effective Communication For Computing Professionals AY20/21 Semester 1 at NUS including module information, links, ratings and resources.
## Module Information
This course aims to equip students with the skills needed to communicate technical information to technical and nontechnical audiences, and to create comprehensible software documentation. A student-centric approach will be adopted to encourage independent and collaborative learning while engaging students in team-based projects. Students will learn interpersonal and intercultural communication skills as well as hone their oral and written communication skills. Assessment modes include a variety of oral and written communication tasks such as reports, software guides, oral presentations, software demonstrations and project blogs.
~ NUSMods
This module can be S/U-ed.
### Schedule
I took this module in AY20/21 Semester 1.
- Venue: Online Classroom
- Lecture Time: 4pm to 6pm on Mondays & Thursdays
- Teaching Staff: [Ms Toh Peiying Amy](https://www.nus.edu.sg/celc/our-people/academic-staff-part-time/ "Academic Staff (Part-Time) | Centre for English Language Communication")
### Module Breakdown
1. CA1 Team Meeting **15%**
2. CA2 Oral Presentation **15%**
3. CA3 Oral Presentation 2 **20%**
4. CA4 User Guide **20%**
5. CA5 Critical Reflection Writing **15%**
6. Class Participation **15%**
### Pre-requisites
- QET Pass/Exemption
- You have to take this module together with CS2103T/CS2113T
### Module Details
- Introduction to the Module
- Principles of Communication
- Writing Audience-centric Email Messages
- Audience Engagement in Oral Presentations
- Building Strong Teams
- Conducting Productive Team Meetings
- Giving and Responding to Feedback
- Writing Reader-Centric User Guides
- Writing Reader-Centric Developer Guides
- Conveying Technical Information to Non-technical Audiences
- Tech and Project Portfolios
- Writing Progress Reports
- An Approach to Writing Critical Reflections
### Sectional Teaching
There are 2 sectional teaching sessions per week.
Each session is 2 hours long.
The lessons are conducted in an interactive format, with students working in groups to complete tasks.
The groups that we will be working with are the same groups as the ones we will be working with for CS2103T.
## Ratings
### Workload (7/10) Moderate
The workload is moderate.
This is similar to [ES2660](/post/es2660-communicating-in-the-information-age/ "ES2660 Review") in terms of workload.
### Organization (8/10)
I feel that the module is well organized.
The module is well structured and the content is well organized.
### Learning (6/10)
I feel that the module is not very useful.
As someone who is not into writing, this is really not for me.
### Enjoyment (5/10)
I feel that the module is not very enjoyable.
Languages are not my cup of tea.
### Usefulness (7/10)
The module is useful for those who are interested in writing.
It is also useful for those who are interested in improving their writing skills.
## Overall
Overall, I would recommend this module to those who are interested in writing.
It is a core module for Computer Science students, so you have to take it anyway.
Was planning to S/U this module, but I got an A- for it, so I didn't.
- Expected Grade: `B+`
- Actual Grade: `A-`
## Useful Links
- [NUSMods](https://nusmods.com/courses/CS2101/effective-communication-for-computing-professionals "CS2101 NUSMods")
- [CS2101 Schedule](./CS2101%20schedule.docx "CS2101 Schedule")
## Other Reviews
1. [Bernard's Review](https://bernardteo.me/nus/CS2101.html "CS2101 Review by Bernard")
2. [Bryan's Review](https://www.codingcucumbers.com/website/nus-cs2101 "CS2101 Review by Bryan Ho")
3. [Russell's Review](https://russelltankm.com/blog/uni/cs2101-effective-communication-for-computing-professionals "CS2101 Review by Russell Tan")
---
# CS2102 Database Systems
- **Canonical URL:** https://nus-guide.com/post/cs2102-database-systems/
- **Published:** 2024-01-13
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CS2102, Database Systems
- **Words:** 965
> A Review of CS2102 Database Systems AY20/21 Semester 2 at NUS including module information, useful links, ratings and resources for the module.
## Module Information
The aim of this course is to introduce the fundamental concepts and techniques necessary for the understanding and practice of design and implementation of database applications and of the management of data with relational database management systems. The course covers practical and theoretical aspects of design with entity-relationship model, theory of functional dependencies and normalisation by decomposition in second, third and Boyce-Codd normal forms. The course covers practical and theoretical aspects of programming with SQL data definition and manipulation sublanguages, relational tuple calculus, relational domain calculus and relational algebra.
~ Taken from NUSMods
### Schedule
I took this module in AY20/21 Semester 2.
- Venue: Online Classroom
- Lecture Time: Friday 12pm to 2pm (Online)
- Tutorial Time: Thursday 2pm to 3pm (Physical)
- Lecturer: [Prof. Chan Chee Yong](https://www.comp.nus.edu.sg/~chancy/ "Prof. Chan Chee Yong's Homepage") and [Prof. Xiao Xiaokui](https://www.comp.nus.edu.sg/~xiaoxk/ "Prof. Xiao Xiaokui's Homepage")
### Module Breakdown
1. Tutorial Participation **2%**
2. Assignments **10%**
3. Team Project **28%**
4. Midterm Exams **20%**
5. Final Exams **40%**
### Prerequisites
- CS1231 or MA1100
- CS2030 or CS2040
### Module Details
It is a module that teaches the fundamentals of database systems.
It covers the following topics:
1. Relational Algebra
2. SQL
3. Entity-Relationship Data Model
4. Application Development with SQL
5. Schema Refinement
### Lectures
Lectures are conducted online synchronously.
They are also recorded and uploaded to LumiNUS every week.
The lectures are ok but I felt that it was a bit too fast paced for someone new like me.
### Tutorials
Tutorials are face to face and are conducted in a tutorial room.
Each tutorial starts from Week 3.
Each student is pre-assigned a question on the tutorial sheet to present in class.
The answers for the tutorials must be submitted online (Monday 9am) before the tutorial.
For each of the questions, one of the assigned students will be randomly selected to present the answer in class.
**Note:** Not all questions will be discussed in the tutorial.
The workload for this section was very high for me as I took a lot of time to understand the concepts which were presented.
### Assignments
There are 2 assignments in this module.
1. SQL assignment (Due in Week 8)
2. Schema Refinement (Due in Week 12)
#### SQL Assignment
We are given a set of questions where we are given what we need to output.
We are required to write the answer that will result in the output using relational algebra expression.
For example, we are given the following question:
```
Find all engineers who spend more than 10 hours per week on some project.
The schema of the output table is (eid).
```
```
Answer: project{eid}(select{hours>10}(works))
```
### Midterm Exams
Midterms was held on 26th March 2021 (Friday) from 12pm to 2pm.
It is closed book with 1 A4 cheat sheet and conducted face to face using Examplify.
What was weird about the midterms was that there was no partial marking, meaning that if you miss out a small part of the question, you will get 0 marks for that question.
We were also given opportunities to correct our syntax errors and resubmit our answers after the exams.
However, if the changes were too big, our marks will be deducted accordingly.
### Finals
Finals was held on 30th April 2021 (Friday) from 9am to 11am.
It is closed book with 1 A4 cheat sheet and conducted face to face using Examplify.
Similar to the midterms, there was no partial marking.
### Project
The goal of the project is to develop a database application using PostgreSQL.
We are to complete the application with ONLY SQL and PL/pgSQL.
Each project team consists of 4 members each which we can choose.
We must decide on our teams at the end of week 3.
If we are unable to form teams, we will be assigned to a team by the professors.
Here are the deadlines for the project:
1. Project Team Registration (Week 3)
2. Submission of ER Data Model Design (Week 6)
3. Submission of Project Report & Code (Week 12)
4. Project Evaluation (Week 13)
I felt that I put in way too much time into the project compared to what they expected us to put in.
The project evaluation was not as in depth as what I would have thought.
We over-engineered it with a testing framework to check all of our functions and fix the functions while we were at it.
My Team's Project: [Project URL](https://github.com/Jh123x/cs2102-project "CS2102 Project")
## Ratings
### Workload (8/10)
The workload for this module was very high which is typical for a 2k CS module.
There were a lot of assignments and tutorials to do every week.
On top of grasping the new concepts, we also had to do a lot of practice to get good at it.
### Organization (7/10)
I feel that the module is well organized in terms of content.
Each topic is related to the previous topic and the lecture notes are very well written.
However, the same cannot be said for the midterms and finals.
The midterms and finals were very poorly organized.
The partial marking scheme resulted in many students scoring around the same grade (1-2 marks difference between large percentiles).
I feel that it is not a suitable assessment of our understanding of the content.
### Enjoyment (3/10)
Due to the large workload, I did not enjoy this module very much.
I felt that the midterms and finals were very stressful due to the administration of the exams.
### Usefulness (8/10)
I feel that this module is very useful for anyone who wants to be a software engineer or a data scientist.
It teaches you the fundamentals of database systems which is very important in the industry.
### Overall (8/10)
Due to the COVID-19 pandemic, I feel that the module was not conducted very well.
- Expected Grade: B
- Actual Grade: B
## Useful Links
1. [CS2102 NUSMods](https://nusmods.com/courses/CS2102/database-systems "CS2102 NUSMods")
### Textbook
1. [Database Management Systems](https://xuanhien.files.wordpress.com/2011/04/database-management-systems-raghu-ramakrishnan.pdf "Database Management Systems")
2. [Database System Concepts Seventh Edition](https://www.octawian.ro/fisiere/situri/asor/build/html/_downloads/1fcab53a6d916e39c715fc20a9a9c2a8/Silberschatz_A_databases_6th_ed.pdf "Database System Concepts")
3. [Database Systems: The Complete Book](https://people.inf.elte.hu/miiqaai/elektroModulatorDva.pdf "Database Systems: The Complete Book")
### Cheatsheet
1. [Hanming's Cheatsheet](https://github.com/zhuhanming/nus-notes-cheatsheets/blob/master/cs2102/CS2102%20Midterms%20Cheatsheet.pdf "Hanming's Cheatsheet")
2. [Matt's Doc](https://crazoter.github.io/My-Docs/docs/markdown/CS2102/ "Matt's Doc")
### Projects
1. [My Team's Project](https://github.com/Jh123x/cs2102-project "CS2102 Project")
2. [Another CS2102 Project](https://github.com/cs2102-project-team53/cs2102-project-team53 "CS2102 Project")
### Other Reviews
1. [Zhongjun's Review](https://reviews.zhongjun.me/computing/cs2102-database-systems "Zhongjun's Review")
2. [Justin's Review](https://aksarapinus.wordpress.com/2021/01/10/cs2102-database-systems/ "Aksara's Review")
3. [Zanblade's Review](https://zanblade.wordpress.com/2020/12/23/year-3-sem-1-ay2020-2021-module-reviews/ "Zanblade's Review")
---
# CS2103T Software Engineering
- **Canonical URL:** https://nus-guide.com/post/cs2103t-software-engineering/
- **Published:** 2024-01-27
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CS2103T, Software Engineering, NUS, National University of Singapore
- **Words:** 786
> A review of CS2103T Software Engineering AY20/21 Semester 1 at NUS including module information, useful links, ratings and resources for the module.
## Module Information
This course introduces the necessary conceptual and analytical tools for systematic and rigorous development of software systems. It covers four main areas of software development, namely object-oriented system analysis, object-oriented system modelling and design, implementation, and testing, with emphasis on system modelling and design and implementation of software courses that work cooperatively to fulfill the requirements of the system. Tools and techniques for software development, such as Unified Modelling Language (UML), program specification, and testing methods, will be taught. Major software engineering issues such as modularization criteria, program correctness, and software quality will also be covered.
~ NUSMods
### Schedule
- Venue: Online (Zoom)
- Lectures: 4pm to 6pm on Fridays
- Tutorial: 5pm to 6pm on Wednesdays
- Professor: Taken Under [Prof Damith Chatura Rajapakse](https://www.comp.nus.edu.sg/~damithch/ "Prof Damith Chatura Rajapakse")
### Module Breakdown
- Individual Project **20%**
- Group Project **45%**
- Exam **30%**
- Tutorial Participation **5%**
The have a helpful diagram for the full breakdown of the module
```mermaid
mindmap
root((100%))
Participation 5%
Individual Project 20%
Implementation 10%
Documentation 5%
Project Management 5%
Team Project 45%
Design 5%
Implementation 10%
Documentation 10%
QA 10%
Project Management 10%
Exam 30%
Part I MCQ: 30%
```
The breakdown for the module can be found on their website: [CS2103 AY2021 Semester 1](https://nus-cs2103-ay2021s1.github.io/website/ "CS2103 AY2021 Semester 1")
### Pre-requisites
- CS2030 Programming Methodology II (and its variants)
- CS2040 Data Structures and Algorithms (and its variants)
### Module Details
- Java
- Object-Oriented Programming
- Software Engineering Tools
- Modeling
- Requirements
- Documentation
- Project Management
- Testing
- Applications domains
### Tutorial
The tutorials are conducted online via Zoom.
It is handled by 2 TAs and each tutor works with 2 teams.
It is usually conducted in a flipped classroom format.
He asks all of us to answer the tutorial questions through PM to him before he goes through some of the common misconceptions that some of us might have answered.
We are not expected to ask Tech help / admin information during the tutorial from the TAs but get the information through the use of forum/from the Professor directly.
### Lectures
The lectures were also done using zoom and some topics have pre-recorded lectures.
Attendance for the **1st** lecture is compulsory and the rest are optional.
Lecture slides will be uploaded to the module website after the lecture.
### Individual Project
The individual project is a simple project that is done individually.
The goals of the project is to learn:
1. Java
2. Object Oriented Programming
3. Java IDEs
4. Git/Github
5. Project Automation Tools
6. Code Quality Tools
The project is to build a personal assistant chatbot that helps us keep track of different tasks.
Each week, there are different features that we have to implement.
At the end of the project, we will have a UI and a chat box that we can interact with the bot.
If you want to see what I have implemented, take a look [here](https://jh123x.com/projects/ultron/ "Ultron Project")
### Group Project
The group project is a more complicated project that is done in groups of 6.
The goals of the project is to learn:
1. Working as a team
2. Process/Workflow
3. Documentation
4. Project Management
5. Quality Assurance
This is a brownfield project based on [Address book Level 3](https://se-education.org/addressbook-level3/ "Address book Level 3").
There are 2 stages of peer evaluation for the group project.
To take a look at what my team has implemented for the module, take a look [here](https://jh123x.com/projects/mcgymmy/ "Mc Gymmy Project")
## Ratings
### Workload (8/10) High workload
The module has a relatively high workload for a 4 MC module (Similar to other 2k CS modules).
I spent most of my time coding for the individual and group project for the whole semester.
### Organization (8/10)
The module is very well organized.
Each of the topic kind of fits into the flow for the next topic that we are going through.
As our project evolves, the new components that we have to implement fits into what they are going through in the lecture.
### Learning (8/10)
I learnt the importance of documentation and testing during this module.
It is also very important to have a certain workflow to ensure cooperation is smooth during the project.
It is definitely useful for anyone who aims to be a software engineer.
### Enjoyment (8/10)
As someone who loves programming.
This mod is definitely for me.
I enjoyed it a lot as it gives the instant gratification of project parts working and the satisfaction of completing a project.
### Usefulness (9/10)
The project is very useful for anyone who aims to be a software engineer.
Similar comments to the learning section.
### Overall (8/10)
Overall, I feel that this module is very useful and I have been applying these techniques to my other modules.
I enjoyed working together with my teammates and learning from them.
If you are interested in software engineering, I would recommend this module.
- Expected Grade: A
- Actual Grade: A
## Useful Links
### Textbook/Learning Notes
- [The Mythical Man Month](https://web.eecs.umich.edu/~weimerw/2018-481/readings/mythical-man-month.pdf "The Mythical Man Month")
- [CS2103T Notes.pdf](./CS2103T%20Notes.pdf "CS2103T Notes")
### Other Reviews
- [Bernard's Review](https://bernardteo.me/nus/CS2103T.html "Bernard's Review")
- [Silas's Review](https://www.codingcucumbers.com/website/nus-cs2103t "Silas's Review")
---
# CS2106 Operating Systems
- **Canonical URL:** https://nus-guide.com/post/cs2106-operating-systems/
- **Published:** 2024-01-28
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CS2106, Operating Systems, NUS, National University of Singapore
- **Words:** 650
> A review of CS2106 Operating Systems AY20/21 Semester 1 at NUS including module information, useful links, ratings and resources for the module.
## Module Information
This course introduces the basic concepts in operating systems and links it with contemporary operating systems (eg. Unix/Linux and Windows). It focuses on OS structuring and architecture, processes, memory management, concurrency and file systems. Topics include kernel architecture, system calls, interrupts, models of processes, process abstraction and services, scheduling, review of physical memory and memory management hardware, kernel memory management, virtual memory and paging, caches, working set, deadlock, mutual exclusion, synchronization mechanisms, data and metadata in file systems, directories and structure, file system abstraction and operations, OS protection mechanisms, and user authentication.
~ NUSMods
### Schedule
- Venue: Online (Zoom)
- Lectures: 2pm to 4pm on Wednesdays
- Tutorials: 10am to 11am on Wednesdays
- Labs: 2pm to 3pm on Fridays
Professor: Taken Under [Prof Cristina Carbunaru](https://www.comp.nus.edu.sg/~ccris/index.html "Prof Cristina Carbunaru")
### Module Breakdown
- Tutorials **10%** (From tutorial Quizzes)
- Labs **30%**
- Take home test **15%**
- Exam **40%**
```mermaid
mindmap
root((Total 100%))
Tutorials 10%
Labs 35%
Take Home Test 15%
Exam 40%
```
### Pre-requisites
- CS2100 Computer Organization
### Module Details
- OS Structure and Architecture
- Process Management
- Process Abstraction
- Process Scheduling
- Inter-Process Communication
- Threads
- Synchronization
- Memory Management
- Disjoint Memory Schemes
- Virtual Memory Management
- File Management
- Introduction
- File System Implementation
- OS Protection Mechanism
### Tutorials
Tutorials are related to the content that was went through in class.
The teaching assistants will go through the tutorial questions and answer any questions that you may have.
After each tutorial, the answers to the questions will be updated.
This is an important part of the module and understanding the tutorial questions will help you in the labs and exams.
At the start, the tutorials will be rather hard as we are not used to the concepts taught in the module.
It is important to keep up with the tutorials and ask questions if you are unsure of anything.
### Lectures
The lectures are conducted online via Zoom.
Prof Cristina Carbunaru will go through the lecture slides and explain the concepts in the slides.
She will also go through the tutorial questions and answer any questions that you may have.
### Assignments
There were 5 assignments in total.
Each assignment is related to the content that was went through in class.
1. Advanced C Programming and Shell Scripting
2. Process Management in UNIX
3. Synchronization in UNIX
4. Memory Management
5. Zero-copy File Operations
The assignments took me a very long time to complete as I am not confident in these topics when I was taking the module.
## Ratings
### Workload (8/10)
For someone who is not confident in the topics taught in the module, the workload is very high.
I took a very long time to complete the content from this course.
I spent most of my time coding for the assignments and labs for the whole semester.
### Organization (9/10)
The module is well organized.
The lecture slides are well structured.
However, as the content is hard, I would recommend you to read up on the content before the lecture.
### Learning (7/10)
As I am a slow learner in the topic, I did not learn as much as I could have from the module.
I took a lot of additional time to understand what was taught in the module and understand the concepts.
### Enjoyment (3/10)
The pace of the module is very fast and I did not enjoy the module as much as I could have.
### Usefulness (10/10)
The module is very useful for anyone who wants to learn more about operating systems.
The concepts are also relevant in the future when you are working on projects.
Interviews for software engineering roles also ask questions related to operating systems.
## Overall (7/10)
Overall, I feel that this module is very useful and I have been applying these techniques to my other modules.
Expected Grade: `B+`
Actual Grade: `A-`
## Useful Links
### Resources
- [NUSMods](https://nusmods.com/courses/CS2106/introduction-to-operating-systems "CS2106 Module Page on NUSMods")
- [Nachos 5.0J from NYU](https://cs.nyu.edu/~yap/classes/compsys2/nachos/walk.html "Nachos 5.0J from NYU")
- [Ext 2 File System](./ext2.pdf "Ext 2 File System")
### Textbook
- [Modern Operating Systems](https://csc-knu.github.io/sys-prog/books/Andrew%20S.%20Tanenbaum%20-%20Modern%20Operating%20Systems.pdf "Modern Operating Systems by Andrew S. Tanenbaum")
- [Operating System Concepts](https://www.mbit.edu.in/wp-content/uploads/2020/05/Operating_System_Concepts_8th_EditionA4.pdf "Operating System Concepts by Abraham Silberschatz, Peter B. Galvin, Greg Gagne")
### Past Year Papers
- [AY17/18 With Solution](./1718s1_solution.pdf "AY17/18 With Solution")
- [AY18/19 With Solution](./1819s1_solution.pdf "AY18/19 With Solution")
- [AY19/20 With Solution](./1920s1_solution.pdf "AY19/20 With Solution")
### Other Reviews
- [Bernard's Review](https://bernardteo.me/nus/CS2106.html "Bernard's Review")
- [Zhongjun's Review](https://reviews.zhongjun.me/computing/cs2106-introduction-to-operating-systems/ "Zhongjun's Review")
---
# CS3103 Computer Networks Practice
- **Canonical URL:** https://nus-guide.com/post/cs3103-computer-networks-practice/
- **Published:** 2022-12-10
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CS3103, Computer Networks Practice, NUS, National University of Singapore
- **Words:** 1374
> A Review of CS3103 Computer Networks Practice AY22/23 Semester 1 at NUS including module information, useful links, ratings and resources for the module.
## Module information
CS3103 Computer Networks Practice at the National University of Singapore (NUS) is a module that teaches us hands on experience with the daily routines of a network administrator.
For AY22/23 Sem 1, the module is taught by Prof. Chan Mun Choon.
This is only offered in Semester 1
### Schedule
Venue: LT19
Lecture time: Tuesday, 1400-1600
Lab Session: COM1-B1-02 (Week 4 to 13)
### Module breakdown
1. Practice-Lab **40%**
1. Pre-lab Quiz **15%**
2. Lab sheet / Questionnaire **25%**
2. Mini-Internet Assignment (Groups of up to 3) **30%**
3. Programming Assignment **20%**
4. Understanding Concepts **10%**
1. Online Assignment **5%**
2. Participation **5%**
### Prerequisites:
- CS2105 or EE3204/E or EE4204
### Module Details:
The module involves:
1. Configuring and connecting LANs using networking devices / technologies (Routers, Switches, etc)
2. Networking protocols and how to set them up (DHCP, BGP, etc)
3. Network security (Firewalls, VPNs, etc)
4. Developing a network proxy server
These are the topics that were covered.
1. Subnets
2. ARP + DHCP
3. VLAN
4. DNS
5. Routing OSPF
6. Network Security
7. Border Gateway Protocol (BGP)
8. Socket Programming / HTTP
9. Wireless LAN
10. Software Defined Networking (SDN)
### Lectures
The lectures were very enjoyable and the Prof Chan was very knowledgeable about the topics that he were teaching us.
Prof Chan also makes use of visualizations to show us the concepts instead of just explaining it it theory which works really well in the context of this module.
Lectures also feel more like going there to learn instead of trying to remember them for an exam (As the module has no exams).
Honestly a very enjoyable experience personally.
There is also webcast for every lecture for this semester.
### Pre-lab quiz
The pre-lab quiz is released almost every week (8 / 13 weeks) immediately after lectures.
We will have around 24 hours to complete it before the commencement of the lab exams
The content of the pre-lecture quiz is usually about what is tested in the lecture as well as information about the upcoming lab.
There are usually 5 - 6 questions in each quiz usually consisting of multiple choices or multiple response questions.
### Labs
For the lab sessions, we find a partner pair up for each lab session.
The lab includes actually configuring real networking equipment and answering questions based on observations in the lab sheet.
They are usually quite long and will take up most of the 2 hour time slot.
For this semester, as the time slots are back to back, we usually try to finish the lab within the 2 hours.
There were also no makeup labs available. If you are unable to make it for any of the lab, you will have to email the professors and teaching assistants before hand and attend another lab instead.
### Assignment 1: Mini-Internet'
For this assignment, each team is allocated an autonomous system (AS) within the mini-internet and is required to configure them to complete this assignment.
This assignment was released incrementally with 2 weeks in between each release.
The previous part is due around the same time the next part is released.
This was from week 3 to week 11.
The network is fully hosted within the SoC server so there is no need for installing any special software on our personal devices.
A simple SSH is all that is needed to access the network.
The assignment is split into 3 different parts.
1. Fill up a configuration table for each device in the network based on the architecture of the network.
1. It is simply an excel sheet that we have to fill up based on the instructions which were given to us.
2. Configure the various devices in each individual Autonomous System (AS)
1. Actually configure the devices in the network to make them connect with each other.
3. Configure BGP and its associated settings to route traffic to other Autonomous Systems
1. We actually get to see our configuration propagating in the network.
There were also multiple tools provided:
1. [Assignment Wikipedia](https://github.com/NUS-CIR/cs3103-2022-mini-internet/wiki "Mini Internet Wiki")
2. A Looking glass
1. To see the current advertisements for each of the ASes in the network
3. A monitoring tool
1. A visualization consisting of many boxes to show the connectivity of each of the ASes in the network
This is honestly the most enjoyable part of the module for me.
It is an assignment which requires us to apply what we have learnt in labs and use it in an actual autonomous system.
This was the first semester that this particular assignment was implemented.
I hope they implement this in future semesters to come for other students to enjoy.
### Assignment 2: Making a Proxy
This is the second assignment for the module.
This assignment was release around week 12 to 13 and is due at the end of reading week.
For this assignment, each individual have to create a network proxy which can do the following:
1. Proxy HTTP traffic between a browser and a server
2. Have an image substitution mode where each image in the webpage is substituted with a different image
3. Have an attack mode where any request sent to the server is replied with `You are under attack`.
4. Telemetry to see the size of each of the packets
The assignment itself was enjoyable, however, the requirements of the assignment were not very clear.
The assignment was also very vague and we had to figure out what we were supposed to do on our own.
There were many contradictory replies in piazza which resulted in confusion during the actual programming of the assignment.
This was the main gripe for this module as a whole for me personally.
Unluckily for me, I implemented an alternate implementation which was not what was required by the teaching assistant.
With looming finals and other deadlines, I decided to just submitted the assignment as is and forgo the telemetry marks.
## Ratings
### Workload
- Lectures: 3/10 (Light)
- Labs: 6/10 (Moderate)
- Some labs are rushed but most of them are doable within the allocated time slot
- Assignment 1: 8/10 (Heavy)
- This is slightly on the heavier side as there is some reading up required before attempting the assignment, especially for part 2 and 3
- Assignment 2: 10/10 (Very heavy)
- This is very high workload due to the lack of clarity in the assignment for the requirements which require us to have frequent changes
- There were finals in week 13 and other assignments due reading week as well
- Overall: 6.75 (Moderate)
### Organization
- Lectures: 9/10
- Labs: 9/10
- Assignment 1: 10/10
- Assignment 2: 2/10
- Mainly due to the unclear requirements of the assignment
- Contradictory replies in piazza
- Overall: 7.5/10
### Learning
- Lectures: 7/10
- Learnt a lot about the protocols but there are some overlap with CS4226
- Labs: 8/10
- Learnt a lot about network configurations and how to use networking equipment
- Assignment 1: 8/10
- Learnt a lot about how to configure an autonomous system and how each of the routing protocols used are deploy
- Learnt about how to configure the protocols and see it work in real time
- Assignment 2: 5/10
- Learnt about socket programming
- Learnt about the HTTP protocol
- Slight overlap with CS2105
- Overall: 7/10
### Enjoyment
Overall I enjoyed the module a lot.
- Lecture: 7/10
- Labs: 8/10
- Assignment 1: 10/10
- Assignment 2: 2/10
- Overall: 6.75
### Usefulness
- Lectures: 6/10
- Good to know about the information but not too sure about immediate applicability
- Lab: 10/10
- The labs actually involve what network admins do on a daily basis
- Assignment 1: 10/10
- Similar to the labs, it involves what network admins do on a daily basis
- Assignment 2: 1/10
- Usually we do not need to implement a proxy from scratch
- Overall: 6.75/10
## Overall
Overall, I will say that this module is good for anyone who wants to learn how to configure the network and how each protocol that we use daily works.
It also allows us to have a hands on experience with the networking equipment which are used in enterprise networks.
Generally speaking, the module is quite interesting and I enjoyed it a lot.
I will recommend this module to anyone who is:
1. Interested in networks
2. Enjoys more hands on learning rather than just reading about it
3. Interested in becoming a network administrator
Expected Grade: B+ / B
- I missed a pre-lab quiz and didn't do too well for the proxy assignment
Actual Grade: B+
PS. To that random meme lord who posts memes about every lecture content. I love what you do and please do it more.
---
# CS3203 Software Engineering Project
- **Canonical URL:** https://nus-guide.com/post/cs3203-software-engineering-project/
- **Published:** 2024-01-06
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS3203
- **Keywords:** CS3203, Software Engineering Project
- **Words:** 689
> A Review of CS3203 Software Engineering Project AY21/22 Semester 1 at NUS including module information, useful links, ratings and resources for the module.
## Module Information
This course provides students with hands-on experience in working in project groups through a complete SDLC to develop a well-designed, well-tested, large-scaled software system. The students will apply the current best software engineering practices on the analysis, design, implementation, and testing of software system. Through the project, students will practice analysis of user’s needs, formulation of computing requirements to meet the user’s needs, modelling and design of the computer systems according to the requirements, evaluation of the design, efficient implementation of software components, system integration, software version control, and rigorous testing.
~ [From CS3203 NUSMods](https://nusmods.com/courses/CS3203/software-engineering-project "CS3203 Software Engineering Project")
For anyone who has a background in programming languages / compilers will have an easier time in this module. Many of the concepts taught here are similar to those taught in the Programming Languages Specialization.
### Schedule
I took this module during AY21/22 Semester 1.
- Lecture Schedule: Tuesdays, 12pm-2pm & 2pm-4pm
- Tutorial: It is conducted together with the lecture time slot.
- Project Consultation: 1 hour per week (Planned between the group and the tutor)
There are only 7 weeks of lectures/tutorials for this module from week 1 to week 7.
The rest of the time is mainly spent on the project itself.
### Module Breakdown
1. Lecture (Weekly Quizzes + Participation): 7%
2. Consultations (Participation) 10%
3. Test 1 (Take Home): 3%
4. Test 2: 10%
- Individual Component
- Group Component
5. Project (Group work): 70%
- Iteration 1: Code + Report (15%)
- Iteration 2: Report + Demo + Oral Presentation (10%)
- Iteration 3: Code + Report + Final Presentation (45%)
Please note that there are bonuses/penalty based on peer reviews and tutor observations.
### Prerequisites
1. CS2103/CS2113 and its variants
2. Have **NOT** taken CS3201/CS3202 with grade of D or better
### Module details
- Modular Credits: 8 MCs
This module involves:
1. Basic Static Program Analyzer (SPA)
2. Software Development Lifecycle
3. Project Management
4. API Design
5. Advance SPA Requirements
6. Testing
7. Design Decisions
8. Design Principles
9. Optimization
### Lectures & Tutorials
As the lectures and tutorials happen within the same time slot, I will be evaluating them together.
1. Before each lectures, we have to watch the Pre-Lecture videos.
2. We will be allocated questions to complete.
3. During the lectures
- Group work and Presentation
4. After each lecture, we have to complete the Post-Lecture quiz
- Opens on Thursday of the same week
- Closes on Monday 2pm of the following week
### Project
The project takes up the bulk of the workload for this module.
For the grouping, we are allowed to form groups of 2-3.
The professors will then match the groups together to form a group of 5-6.
There is some form of heuristic to the matching process but we are not told what it is.
The project is divided into 3 iterations.
1. Iteration 1
- Code + Report
- 15% of the project grade
2. Iteration 2
- Report + Demo + Oral Presentation
- 10% of the project grade
3. Iteration 3
- Code + Report + Final Presentation
- 45% of the project grade
In this project, we are required to build a Static Program Analyzer (SPA) for a simple programming language called SIMPLE.
If you are interested in checking out the details of the language, you can check out [my CS3203 Notes](https://github.com/Jh123x/CS3203-notes "CS3203 Notes")
## Ratings
### Workload (10/10)
This mod has the highest workload I have taken in NUS so far.
The workload is dependent on the group you are in.
Even with a group where everyone is hardworking, the workload is still very high.
### Organization (7/10)
Personally, I felt that the module was a little bit messy due to the large cohort size.
### Enjoyment (5/10)
I feel that I did not enjoy the module as much as I would have liked to given the workload.
### Usefulness (4/10)
While some of the concepts are useful, it is relatively harder to apply in the real world with respect to software engineering.
### Overall (6/10)
I feel that the module is not as useful as I would have liked it to be.
I would have enjoyed the module more if the workload was lower.
- Expected Grade: `B`
- Actual Grade: `B+`
## Conclusion
As it was a compulsory module with a high workload, I will recommend that you take the alternatives instead.
## Useful Links
- [CS3203 NUSMods](https://nusmods.com/courses/CS3203/software-engineering-project "CS3203 Software Engineering Project")
- [SIMPLE Interpreter](https://github.com/Jh123x/SIMPLE-Intepreter "SIMPLE Interpreter")
## Resources
- [Software Design Heuristics](https://github.com/stanislaw/SoftwareDesignHeuristics "Software Design Heuristics")
- [My CS3203 Notes](https://github.com/Jh123x/CS3203-notes "CS3203 Notes")
---
# CS3219 Software Engineering Principles and Patterns
- **Canonical URL:** https://nus-guide.com/post/cs3219-software-engineering-principles-and-patterns/
- **Published:** 2024-01-06
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS3219
- **Keywords:** CS3219, Software Engineering
- **Words:** 1447
> A Review of CS3219 Software Engineering Principles and Patterns AY21/22 Sem 1 at NUS including module information, links, ratings and resources for the module.
## Module information
CS3219 provides an in-depth, hands-on experience in key aspects of software engineering that accompany the development of software. Based on proven principles and best practices, this course focuses on software architectural design from the perspective of the software process. It covers techniques for requirement elicitation and specification that provide sound base for architectural design. The course covers design decision exploration as well as patterns that explicate principles and best practices in replicable form.
~ Description from NUS Mods
### Schedule
- Venue: Online
- Lecturer: [Prof Bimlesh Wadhwa](https://tembusu.nus.edu.sg/people/dr-bimlesh-wadhwa "Prof Bimlesh Wadhwa")
- Lecture Time: Thursday, 14:00-16:00
- Tutorial Time: Monday, 14:00-15:00
- Taken in AY2021/2022 Sem 1
### Module Breakdown
1. Team Project ~ 35%
2. OTOT Assignment (Personal Assignment) ~ 35%
3. Exams ~ 30%
### Prerequisites
- CS2103T
### Module details
This module is 4 MCs.
This modules involves:
1. Software Development Process
2. Software Requirements Specification
3. Software Design Principles
- [Command Pattern](/post/design-patterns---the-command-pattern/ "Command Design Pattern")
- [Strategy Pattern](/post/design-patterns---the-strategy-pattern/ "Strategy Design Pattern")
4. Software Architecture Styles / Architectural Patterns
5. Message Patterns
6. Object Behavior and Interaction Patterns
7. Software Design Quality
### Lectures
The lectures were conducted by Prof Bimlesh Wadhwa.
Most lectures were about the content of the lecture slides. However, there were a few interactive sessions where Prof Bimlesh Wadhwa invited an Alumni to share about his experience in the industry working with Kubernetes.
It also contributed to our OTOT Assignment and actually helped me a lot in understanding the concepts of Kubernetes and how to use it.
### Tutorials
The tutorial content was mostly based on the lecture content that was taught in the previous week.
It usually consists of questions which tests us on the following:
1. Our understanding of the concepts
2. Our ability to argue for / against a certain design decision
3. Our ability to apply the concepts we learn to real software
### Group Project
There were 2 possible projects that we could choose from.
The 1st option was Peer Prep, which is a platform for students to practice their interview skills with their peers.
The 2nd option is to propose your own project idea and get it approved by the Prof.
After selecting our own project, we can define our own requirements and write our own software.
The project is graded based on the following criteria:
1. Choose 1 of the architectures
- Traditional/Monolithic Architecture
- Microservices Architecture
- Mix of different architectures
2. Scalability of the application
- EG: Using Kubernetes
3. Demonstrate Service Discovery
Deliverables
1. Final Report
2. Final Presentation
3. Code Submission
### OTOT Project
The OTOT project was given to us at the start of the semester and we were given the freedom to complete the project on our own timeline.
I will recommend you to start early so that you do not have to rush it at the end of the semester.
Some projects involve demos that we have to present to the Prof / TAs.
We do not have to complete all the projects in the OTOT Brief.
We can choose the projects that we are interested in and complete them as long as we fulfill the maximum possible score for the assignment.
We were also given Google Cloud vouchers to use for our projects.
The OTOT Project has a maximum score of 35 points.
These are the outline of the OTOT Projects for my semester:
#### Kubernetes & Docker
1. Deploy a project in Docker
- Write a dockerfile (1 mark)
- Setup [NGINX](https://www.nginx.com/ "Apache NGINX") and run a reverse proxy (1 mark)
2. Deploy a project using Kubernetes
- Setup Kubernetes through Docker Desktop & Configure Kubectl (1 mark)
- Ability to connect to an application running in Kubernetes (1 mark)
3. Advanced Kubernetes Features
- Write an ingress.yml file (1 mark)
- Use an ingress controller to enable sticky session load-balancing (1 mark)
- Define a Horizontal Pod Auto-scaler and show that it works as expected(1 mark)
#### Making a CRUD Application
1. Implement a simple backend
- Successfully execute `GET`, `POST`, `PUT`, `DELETE` request on localhost using Postman (1 mark)
- Successfully execute `GET`, `POST`, `PUT`, `DELETE` request on to deployed endpoints using Postman (1 mark)
- Demonstrate edge case handling. The deployed app should not crash on unexpected input (1 mark)
2. Testing your application through Continuous Integration (CI)
- Test APIs using any testing framework (1.5 mark)
- Use Travis/Other CI Tools to automate testing and write the configuration file to run those tests automatically (1.5 mark)
3. Deploying your application using Continuous Deployment (CD)
- Deploy your application to a serverless cloud service provider (1.5 mark)
4. Implementing a frontend
- Interact with the API using frontend (2 Marks)
- Implement styling to the frontend (1 Mark)
#### Authentication & Authorization
- Unsuccessful GET request to API if user is not authenticated (1 mark)
- Return 401 if user is not authenticated
- Return 200 once the user is logged in
- Unsuccessful GET request to API when user is not authorized (1 mark)
- Return 403 if user is not authorized
- Return 200 if user is authorized
- Implementation (2 marks)
- Basic Implementation: Hardcoded checks + Basic Authorizations that are not easily extendable. (1 mark)
- Advanced Implementation: Usage of JWT, frameworks with role/permission that can be easily extended. (IE: How it will be implemented in Production) (2 marks)
#### Pub-Sub messaging
1. Successfully implement a messaging service using [Apache Kafka](https://kafka.apache.org/ "Apache Kafka") (3 marks)
2. Successfully manage the failure of the master node in the cluster and another node takes over (3 marks)
#### Blog Post
Write a blog post on any software engineering principle, pattern or concepts from within/outside the module scope. (Max 3 points)
The post needs to have a minimum of 400 words.
1. Clear, Precise Language used to explain the principle, pattern or concept. (1 mark)
2. Effective use of diagrams to explain the principle, pattern or concept. (1 mark)
3. Provide a concrete/hypothetical example where it is utilized. (1 mark)
4. Unique topic chosen that is relevant to the module. (1 mark)
5. Provide a concrete real life example (2 marks)
We also have to reflect on our peers' blog posts and give them feedback on their blog posts
1. Provide insightful feedback on the blog post. (1 mark)
2. Demonstrate understanding of the blog post. (1 mark)
3. Build on the blog post by providing additional information. (1 mark)
If we completed the projects early, we can score bonus points for the project.
#### Caching Task
1. Successful `GET` request with large amounts of data (1 mark)
2. Successful `GET` request with large amounts of data with substantial performance improvement from the first one (1 mark)
#### Module Suggestions
We can give feedback on the following section:
1. Propose a new topic that you would like to learn in this module
2. Propose an existing topic that you would like to learn in more detail
3. Propose a replacement for an existing topic that you think is not relevant to the module
4. Well elaborated rationale of the suggestion (1 mark)
5. Brief explanation of the topic and what should be taught (1 mark)
#### Others
- Early Submission: Up to 3 marks of bonus based on how much you completed before the deadline
- Noteworthy Contributions: Up to 3 marks of bonus based on contributions which are mentioned by the Prof / TAs
- External Pursuits: Up to 5 marks max
- Merge an open source PR for non-school related projects (1 mark each max 2 marks)
- Obtain a certificate for a course related to the module (1 mark each max 2 marks)
- Participate in a mock interview limited to 20 students (3 marks)
This section has a maximum of 3 marks.
## Ratings
### Workload (6/10)
The workload is moderate, I feel that good teammates are important for this module to keep the workload low.
I feel that I was carried by my group mates.
The workload is mostly related to the size of the group project and the OTOT project.
### Organization (8/10)
The module was well organized and the Prof was very responsive to our questions.
I really love that the projects are presented to us in this module.
The OTOT Project is a creative way to allow us to plan our own time table.
### Enjoyment (8/10)
I really enjoyed the module and loved working with my group mates for the project.
The OTOT Project also allowed me to explore new technologies that I am interested in.
### Usefulness (8/10)
The concepts regarding Kubernetes and Docker are very useful as they are widely used in the industry for DevOps.
The principles are a little more abstract and is up to our interpretation on how to apply it.
### Overall (8/10)
I really enjoyed this module and I feel that it is a good module to take if you are interested in Software Engineering.
## Conclusion
Overall, I will recommend this module if:
1. You are interested in building software.
2. You have friends to complete the group project together.
3. You are interested in learning about Kubernetes and Docker.
## Useful Links
1. [NUSMods Link](https://nusmods.com/courses/CS3219/software-engineering-principles-and-patterns "NUSMods for CS3219")
2. [Review by Paradite](https://paradite.com/2016/12/11/cs3219-module-review/ "CS3219 Module Review")
3. [Apache Kafka](https://kafka.apache.org/ "Apache Kafka")
4. [Apache NGINX](https://www.nginx.com/ "Apache NGINX")
## Resources
### Notes
1. [My Notes](./Notes.pdf "My Notes")
2. [Cheat Sheet](./CheatSheet.pdf "Cheat Sheet")
### Past Year Papers
1. [AY15/16 Sem 1](./1516SEM1-CS3219.pdf "AY15/16 Sem 1")
2. [AY16/17 Sem 2](./1617SEM2-CS3219.pdf "AY16/17 Sem 2")
3. [AY17/18 Sem 1](./1718SEM1-CS3219.pdf "AY17/18 Sem 1")
4. [AY18/19 Sem 1](./1819SEM1-CS3219.pdf "AY18/19 Sem 1")
5. [Test Questions](./test_qns.pdf "Test Questions")
### Project
1. [Code2Gather](https://jh123x.com/projects/code2gather/ "Code2Gather")
---
# CS3223 Database Systems Implementation
- **Canonical URL:** https://nus-guide.com/post/cs3223-database-system-implementation/
- **Published:** 2023-02-21
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review, CS3223
- **Keywords:** CS3223, Database Systems Implementation, NUS, National University of Singapore
- **Words:** 794
> A Review of CS3223 Database System Implementations AY22/23 Semester 2 at NUS including module information, useful links, ratings and resources for the module.
## Module information
CS3223 is a system-oriented module provides an in-depth study of the concepts and implementation issues related to database management systems. It first covers the physical implementation of the relational data model, which includes storage management, access methods, query processing, and optimization. Then it covers issues and techniques dealing with multi-user application environments, namely, transactions, concurrency control, and recovery. The third part covers advanced topics such as on-line analytical processing, in-memory databases, and column stores.
### Schedule
- Venue: i3 Auditorium
- Lecture time: Friday, 1000-1200
- Tutorial time: Wednesday, 1600-1700
### Module breakdown
1. Tutorial Participation **5%**
2. Assignments **30**
3. Closed-book Midterms **25%**
1. Until Evaluating Query Evaluation
4. Closed-book Finals **40%**
1. Everything else
### Prerequisites
- CS2102
- CS2040
### Module details
The module involves:
1. Data Storage
1. [Data Storage & Disk Drives](/post/data-storage/ "Data storage and disk drives")
2. [Buffer Manager & Files](/post/database-buffer-manager/ "Buffer Manager and Files")
2. Tree-Structured Indexing
1. [Database indexes and B+ Trees](/post/database-indexes/ "Database Indexes and B+ Trees")
3. Hash-based Indexing
4. External Sorting
5. Query Evaluation
6. Evaluating Relational Operators
7. Query Optimizer
8. Transaction Management
9. Concurrency Control
10. Crash Recovery
### Lectures
Lectures are held every Friday from 10am to 12pm.
Prof Chan is very knowledgeable and is able to explain the concepts very well.
He also runs through the algorithms in class using a step by step fashion for our better understanding.
However, due to the amount of content that is covered in the lecture, it is difficult to understand the concepts fully during the lecture itself.
Please do find time to review the notes before / after the class itself.
There is no webcast for this class during my semester.
### Tutorials
Tutorials start from week 3.
- Every week, a subset of tutorial questions will be discussed in class.
- Each student is pre-assigned to prepare the answer for a question
- For each discussion question one of the assigned students will be randomly picked to lead the discussion
- Other students are expected to participate as well
Before the tutorials, we are each assigned 1 question to complete and we will be asked to present our answers in class.
### Assignments
The assignments are slightly different this semester. Instead of using SimpleDB, we use PostgreSQL instead.
The assignments are completed in groups of 2 and are required to modify PostgreSQL's code (Written in C)
### Assignment 1
There are 2 parts to assignment 1.
**Individual component**
For the individual component, we are required to follow a set of simple instructions given by the lecturer to install and run a benchmark on postgresql. The benchmark is a set of queries that are run on the database. The queries are run multiple times and the time taken to run the queries are recorded. The time taken to run the queries are then compared to the time taken to run the queries on a database without the changes made in the assignment.
We will then have to submit the results onto Canvas.
**Team component**
We have to modify Postgresql's Clock replacement algorithm and implement a LRU algorithm instead.
A large amount of source code from Postgresql have to be read and understood before any development can begin.
## Ratings
### Workload 8/10 (High Workload)
Between juggling the tutorial, assignments and the lecture, the workload is quite high.
Some time is required to understand the content of the lecture before the tutorial can be completed.
Completing it for the first half of the semester, I spend most of my time on my FYP and this module.
The assignment involves a lot of code reading and understanding of the postgres code base.
A few hours is required to understand fully what the source code is doing before any implementation can begin.
The source code is well annotated but it is the sheer amount of code that makes it difficult to understand.
### Organization 7/10
The module is relatively well structured.
We can see how each lecture builds up to form the data base itself.
### Learning 8/10
There are a lot to be learnt from this module regarding database implementation.
### Enjoyment 3/10
Personally I did not enjoy the course very much as it is very math heavy and I am not really a math person.
The concepts were confusing to me and a large amount of time is required to dig through the slides and understand the examples which were given.
### Usefulness 4/10
I feel that the mod is only useful towards the algorithm side of things.
The data structures and algorithms (B-Trees, Index, Sorting) taught in this module might be useful when faced with similar problems in the future.
## Overall 5/10
Overall I feel that this mod is ok.
Due to the workload for the semester I dropped this mod.
It might get better during the 2nd half of the semester.
Actual grade: W (As I dropped it after the first half of the Semester)
## Resources
1. [Postgresql LRU](https://github.com/Bhargavi-Gurram/LRU-Algorithm-in-Postgresql "LRU Algorithm in Postgresql")
2. [Ramakrishnan Database Management Systems 3rd Edition PDF](https://raw.githubusercontent.com/pforpallav/school/master/CPSC404/Ramakrishnan%20-%20Database%20Management%20Systems%203rd%20Edition.pdf "RamaKrishnan Database Management Systems 3rd Edition PDF")
3. [Database System Concepts Sixth Edition PDF](https://github.com/drobnyd/Thesis/raw/master/Bibliogaphy/Database%20System%20Concepts%206th%20edition.pdf "Database System Concepts Sixth Edition PDF")
4. [Database Systems The Complete Book](https://people.inf.elte.hu/miiqaai/elektroModulatorDva.pdf "Database Systems The Complete Book")
---
# CS3235 Computer Security
- **Canonical URL:** https://nus-guide.com/post/cs3235-computer-security/
- **Published:** 2024-01-13
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CS3235, Computer Security
- **Words:** 635
> A Review of CS3235 Computer Security AY20/21 Semester 2 at NUS including module information, useful links, ratings and resources for the module.
## Module Information
The objective of this course is to provide a broad understanding of computer security with some in depth discussions on selected topics in system and network security. This course covers the following topics: intrusion detection, DNS security, electronic mail security, authentication, access control, buffer overflow, memory and stack protection, selected topics in application security, for instance, web security, and well-known attacks
~ Taken from NUSMods
### Schedule
I took this module in AY20/21 Semester 2.
- Venue: Online Classroom
- Lecture Time: Tuesday 8am to 10am (Online)
- Tutorial Time: Thursday 2pm to 3pm (Physical)
- Lecturer: [Prof. Prateek Saxena](https://www.comp.nus.edu.sg/~prateeks/ "Prof. Prateek Saxena's Homepage")
### Module Breakdown
1. 10 Lecture Homework **40%**
1. Midterm Exams **30%**
1. Coding Project **30%**
There are no finals exams in this module.
### Prerequisites
- CS2105
- CS2106
- CS2107
### Module Details
This module teaches the fundamentals of computer security. It covers the following topics:
1. Threat Models
2. Network Attacks
3. Secure Channels
4. Cryptography Basics
5. Symmetric Key Cryptography
6. Public Key Cryptography
7. Integrity
8. Key Exchange Protocols
9. HTTPS
10. Web Authentication
11. Authorization
12. Web Attacks
13. System Security
### Lectures
As this was conducted during the COVID-19 pandemic, all lectures were conducted online.
The lectures were conducted using Zoom.
Webcasts were also provided for students who are unable to attend the lectures.
The lectures were very interesting and engaging.
[Prof. Prateek](https://www.comp.nus.edu.sg/~prateeks/ "Prof. Prateek Saxena's Homepage") encourages us to ask questions during the lecture and he will answer them on the spot.
### Tutorials
As with all other tutorials, it starts from week 3.
Instead of running the tutorial online, the tutorial was conducted physically in the classroom.
We were required to wear our masks and sit 1m apart from each other.
There were also attendance taking for contact tracing purposes.
The tutorials were very fun, the tutor was very engaging and the tutorial questions were very interesting.
### Lecture Homework
The assignment is a solo assignment that is done almost every week.
There were 10 assignments in total.
It is conducted in the form of a quiz on LumiNUS.
It consists of MCQ and short answer questions.
The questions are based on the lecture content and the lecture notes.
### Midterm Exams
The Midterms are open book and are conducted in terms of a quiz on LumiNUS.
Topics for Midterms are as follows:
1. Network Attacks and Firewall
2. Cryptography Basics
3. SSL/TLS/HTTPS
4. Failures and insufficiencies of Secure Channels
### Coding Project
This is a group project in groups of 2 assigned randomly.
The coding project consists of 3 parts:
2. Web Security "CTF"
3. System Security "CTF"
For the web security part, you will be given 5 mini assignments within the VM to attack and you will have to find the vulnerabilities in the website and exploit them to get the flag.
We will need to do a writeup for each of the websites with our POC.
There was an online judge that automatically checks our POC and gives us the flag if it is correct.
## Ratings
### Workload (4/10)
The workload is very manageable for me.
The topics taught were previously taught in CS2107.
### Organization (8/10)
The module is very well organized.
The lecture notes are very well written and the lecture slides are very clear.
Prof. Prateek is also very engaging.
### Enjoyment (9/10)
This is one of my favorite modules that I have taken in NUS.
I've enjoyed learning the different concepts in computer security and the CTF style assignments.
### Usefulness (8/10)
Thinking in terms of threat models and how to secure your system is very important.
It also puts all the security concepts that you have learnt in CS2107 into perspective and what they defend against.
### Overall (8/10)
This is one of my favorite modules that I have taken in NUS.
I loved the CTF style assignments and the lectures were very interesting.
- Expected Grade: A
- Actual Grade: A+
## Useful Links
1. [NUSMods](https://nusmods.com/courses/CS3235/computer-security "NUSMods for CS3235")
2. [CS3235 Syllabus](https://www.comp.nus.edu.sg/~prateeks/teaching/sp22/cs3235-sp22.html "CS3235 Syllabus")
## Resources
### Notes
1. [CS3235 Notes from Deunitato](https://deunitato.github.io/NUSCSMODS/CS3235/ "Deunitato's CS3235 Notes")
2. [Cryptography](https://edu.anarcho-copy.org/Against%20Security%20-%20Self%20Security/Cryptography%20101%20From%20Theory%20to%20Practice.pdf "Cryptography 101")
3. [Unix Basics](./unix-commands.pdf "Unix Basics")
### Midterm Notes/Helper
1. [Crypto Toolkit](./crypto_toolkit.py "Crypto Toolkit")
2. [General Library](./general_lib.py "General Library")
3. [Padding Oracle Script](./padding_oracle.py "Padding Oracle Script")
---
# CS4225/CS5425 Big Data Systems for Data Science
- **Canonical URL:** https://nus-guide.com/post/cs4225-big-data-systems-for-data-science/
- **Published:** 2022-12-28
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CS4225, CS5425, Big Data Systems for Data Science, NUS, National University of Singapore
- **Words:** 783
> A Review of CS4225/CS5425 Big Data Systems for Data Science AY22/23 Semester 1 at NUS including module information, links, ratings and resources for the module.
## Module information
CS4225/CS5425 Big Data Systems for Data Science at the National University of Singapore (NUS) is a module that teaches us how to use big data systems to solve real world problems.
For AY22/23 Sem 1, the module is taught by Prof. Bryan Hooi Kuen-Yew.
This is offered in both Semester 1 and 2.
### Schedule
Venue: i3-Auditorium
Lecture time: Friday 1830-2030
Tutorial time: Friday 2030-2130
Tutorials are not every week. Only on weeks which have tutorial.
### Module breakdown
- Assignment 1 on Hadoop **25%**
- Assignment 2 on Spark **25%**
- Midterms **20%**
- Finals **30%**
Both Midterms and Finals are open book.
The Midterms are held physically in the Multi-Purpose Hall (MPH) and Finals are both held online and in person.
### Prerequisites
- CS2102 or IT2002
### Module Details
The module involves:
1. Network Resources
2. How to use Hadoop and Spark
3. MapReduce
4. NoSQL & SQL
5. ACID & BASE (Mainly Base)
6. Large Graph processing
7. Stream Processing
These are the topics which are covered
1. MapReduce
2. Relational Databases
3. Data Mining
4. NoSQL
5. Apache Spark
6. Large Graph Processing
7. Stream Processing
### Lectures
The lectures by Prof Bryan were very interesting and engaging.
I enjoyed his lecture style and learnt a lot from the lectures.
He goes through the concepts slowly and explains them with an example which makes it very easy to understand.
The lectures were held both online and in person.
I found it easier to understand the concepts when it was held in person.
The concepts were also very useful in real life applications.
### Tutorials
The tutorials for the module were 1 hour long and were not conducted every week.
There were a total of 4 tutorials throughout the entire duration of the module.
The topics were mainly on:
| No | Topic |
| --- | ----------------- |
| 1 | Hadoop |
| 2 | NoSQL & Spark |
| 3 | Graph Processing |
| 4 | Stream Processing |
Some of the tutorials were conducted right after the content was discussed in the lecture.
There might not be time to complete the tutorial after the topic is completed in class.
Looking at the tutorials beforehand made me understand the topics better.
### Assignment 1: Hadoop
The assignment is about using hadoop to find the K max number of words in a large text file.
This assignment is conducted in Java.
A starting script was provided by the assignment TAs.
They also helpfully included a guide on how to set up the environment to start working on the instructions.
The instructions were very clear and easy to follow.
I recommend using the Hadoop cluster in SoC and complete the assignment using VSCode Remote SSH.
This was easier to set up compared to the other methods outlined within the handbook.
Some digging within the Hadoop documentation was required to understand how to use the [Hadoop API](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html "Hadoop API").
Some googling was required to see how to pipe the data from map reduce pipeline to another.
### Assignment 2: Apache Spark
This assignment is relatively easy and requires some knowledge of the `pandas`/`spark` library in Python.
The assignment can be completed using syntax from either one of them.
We were given 2 log files together with 2 notes, which we have to use to answer the questions.
It is some sort of forensics assignment.
## Ratings
Overall the module was very interesting and useful during system design interviews.
### Workload 4/10
Lectures: 3/10 (Light)
- Mainly listening and jolting down notes.
- They were relatively easy to digest
Tutorials: 3/10 (Light)
- Mainly listening and jolting down notes as well.
- Re-doing the tutorials were good for revision
Assignments: 5/10 (Moderate)
- Some research is required on the side of the students regarding the assignments.
### Organization 8/10
The module was very well organized, the tutorials were on topic.
The assignments were relatively easy to understand and complete.
There were no hiccups during the module.
### Learning 9/10
Many of the topics were very interesting and useful.
I have learnt more about distributed systems and how different pipelines can be used to organize data.
### Enjoyment 9/10
The class was very relaxing and I enjoyed the lectures, tutorials and assignments as a whole.
It felt more like learning for the content instead of learning in order to score during exams.
### Usefulness 9/10
The content was very useful for Systems Design interview questions, especially the content on NoSQL, SQL and distributed systems.
The contents of the module can be applied to to achieve a scalable system for data science.
### Overall 8.75/10
Overall, I found this module to be very enjoyable for learning
I would definitely recommend this to anyone who is specializing in Database Systems or would want to learn more about databases and distributed systems.
Expected Grade: A/A-
The bell curve for this module was quite high.
Actual Grade: B+
## Useful Links
1. [NUSMods](https://nusmods.com/courses/CS4225/big-data-systems-for-data-science "CS4225 NUSMods")
2. [Hadoop API](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html "Hadoop API")
3. [Data Intensive Text Processing With Map Reduce](https://lintool.github.io/MapReduceAlgorithms/MapReduce-book-final.pdf "MapReduce book Final")
4. [My CS4225 Notes](https://drive.google.com/file/d/17wsybGQrSq31xFT30jMVmi47_g_o7Ka3/view?usp=sharing "My CS4225 Notes")
---
# CS4226 Internet Architecture
- **Canonical URL:** https://nus-guide.com/post/cs4226-internet-architecture/
- **Published:** 2022-12-18
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review, CS4226
- **Keywords:** CS4226, Internet Architecture, NUS, National University of Singapore
- **Words:** 2438
> A Review of CS4226 Internet Architecture AY22/23 Semester 1 at NUS including module information, useful links, ratings and resources for the module.
## Module information
CS4226 Internet Architecture at the National University of Singapore (NUS) is a module that teaches us about the Internet and how it works.
For AY22/23 Sem 1, the module is taught by Prof. Ma Tianbai, Richard.
This is only offered in Semester 1
### Schedule
1. Lecture: Friday, 1200-1400
2. Tutorial: Friday, 1400-1500 (Week 3 to 13)
3. Venue: LT15
### Module Breakdown
- Written Assignment **10%**
- 2 Programming Assignments **30%**
- Mid-term Exam **20%**
- Final Exam **40%**
### Prerequisites
- CS2105 or EE3204/E or EE4204
- EE2012/A or MA2216 or ST2131 or ST2334
### Module Details
This module focuses on advanced networking concepts and technologies.
It covers the following topics:
1. Network Architectures
1. Peer-to-Peer
2. Internet Ecosystem
1. Inter-Domain routing: BGP
2. Business and Economics
3. Network Management Paradigm
1. Software-Defined Networking (SDN)
4. Network Performance
1. Queuing model and analysis
2. Resource allocation
### Lectures
| Week | Topic |
| ---- | ------------------------------------------------------------------------------------------- |
| 1 | Logistics + Performance |
| 2 | Queuing Theory |
| 3 | Resource Allocation |
| 4 | [Software Defined Networking](/post/software-defined-networks/ "Software Defined Networks") |
| 5 | SDN Examples |
| 6 | [Interconnection](/post/internet-interconnection/ "Internet Interconnection") |
| 7 | [Border Gateway Protocol (BGP)](/post/bgp/ "Border Gateway Protocol") |
| 8 | [Peer to Peer](/post/peer-to-peer-networks/ "Peer To Peer Networking") |
For the first half of the semester, from Performance to Resource Allocation, the lecture content was very math heavy.
As a not-very-math guy, some additional effort is required to understand the concepts involved.
The second half of the semester was more interesting as it covered more practical topics such as SDN and network performance.
There are also some overlap with [CS3103](/post/cs3103-computer-networks-practice/ "CS3103 Computer networks practice").
Professor Richard is a very good lecturer who understands the material well. He tries to make the class interactive by asking the crowd questions and getting them to answer.
The topics that he focuses on will be tested more thoroughly in exams.
The class is taught in hybrid mode with both in-person and online lectures.
Students can choose to attend either.
The professor does not put everything in the slides, so some note taking is required from our side.
Writing notes while listening in lectures is a good way to learn the material and prepare for exams.
### Tutorials
The topics for the tutorial are as follows:
1. Probability + Little's Law
2. Poisson Process + M/M/1
3. Queuing Theory
4. Resource Allocation
5. Mininet + ONOS (For the assignment)
For tutorials 1 to 4, it is quite heavy on the math side.
With some hard work and practice, it should be relatively understandable.
For tutorial 5, it is mainly a walk-through on how to do the tutorial.
There is a Virtual Machine (VM) image provided which we have to use for the assignment.
This will be further elaborated within the assignment section of the review.
### Written Assignment
The written assignment involved a sample midterms paper which we are required to complete.
We will receive full credit if we complete the paper and submit a survey to describe how hard the sample paper was when we were trying to complete it.
The written assignment is similar in difficulty of the midterms paper (including the voided question).
### Assignment 1: Setting up a SDN
For the 1st assignment, we were tasked to set up a SDN network using [ONOS](/post/onos/ "ONOS") and [Openflow](/post/openflow/ "Openflow").
There are 3 different parts to this assignment:
1. Building a Virtual Network (5 Marks)
2. Traditional Learning Switch (8 Marks)
3. Intent-based Learning Switch (7 Marks)
#### Part 1: Building a Virtual Network
For this section, we have to make use of mininet to create a virtual network.
We have to create a topology with N hosts, M switches and L links.
They are given as an input file.
We have to parse the file and run the commands to create the network.
One thing to note is to take a look at the [API documentation](https://mininet.org/ "Mininet API") before starting on the assignment.
Sometimes the code in the file may fail silently and the network does not run as expected.
#### Part 2: Traditional Learning Switch
For this section, we have 2 subtasks.
1. Implement a learning switch (5 Marks)
2. Firewall (3 Marks)
For the section 1, we have to implement a learning switch based on the [ONOS API](https://wiki.onosproject.org/display/ONOS/ONOS+Documentation "ONOS API").
For the second section, we have to implement a command within ONOS that allows a firewall to be set up between 2 different hosts.
#### Part 3: Intent-based Learning Switch
For the last section, we have to implement an intent-based learning switch.
This was pretty cool section.
Usually in a normal switch configuration, we try to avoid loops within the network.
However, with an intent-based learning switch, we can allow loops to exist within the network.
The switch controller can route the packet despite loops within the system.
This assignment tests us on the implementation of the ONOS API to achieve this.
Although some searching was required, the documentation is present on the [ONOS API Website](https://wiki.onosproject.org/display/ONOS/ONOS+Documentation "ONOS API").
Searching and implementing the API with the help of the documentation is a good way to learn how to use the API.
To see the actual source code for ONOS you can refer to their [Github Page](https://github.com/opennetworkinglab/onos "ONOS Github").
#### Overall
Overall this assignment requires a lot of learning from the side of the user and familiarity with the API of ONOS to implement the assignment.
The hard part is to set up the environment correctly before testing can take place.
I would recommend making a `make` file or a `bash` script to automate the process of setting up the environment for testing.
Each edit to the files requires recompilation of the binary and adding it into ONOS before starting up the entire system again.
### Assignment 2: Configuring BGP using Quagga
This assignment was given relatively late in the semester around week 13.
Similar to the previous assignment, there are 4 different parts.
1. Building a virtual network (2 Marks)
2. BGP Broadcast (3 Marks)
3. Set Metric (2 Marks)
4. BGP Community and Local Preference (3 Marks)
We were given a template from a github repository to start off of and edit the code from there.
A lot of edits were required on our side as the directories have to be changed to match the ones that we have implemented on our local VM image.
The professor mentioned that this assignment will be relatively easier than the previous assignment.
However, I felt that it was the harder one due to some issues with the assignment which will be explained later.
#### Part 1: Building a Virtual Network
For the first section, it was very similar to part 1 from assignment 1.
However, the code API is slightly different.
We were given a picture with all the hosts, links and switches that we have to configure.
Each interface as well as their IP addresses were provided.
We just have to set up the network using the API provided.
It was relatively straightforward and easy to implement.
Most of the required code is similar to the examples they have provided and we just have to do some slight modification.
#### Part 2: BGP Broadcast
After setting up the virtual network, we have to run BGP within this mini internet topology.
We have to set up the BGP configuration for each of the routers.
Mininet runs `bgpd` as a daemon and we have to configure the routers to run BGP.
We have to write `bgpd.conf` files for each of the routers and set up the configuration for each of the routers.
This required some digging through the examples that were provided by the teaching assistants to find the correct configuration to use.
#### Part 3: Set Metric
In this section we have to set our metric for the BGP configuration so that incoming traffic is routed in one direction and outgoing traffic is routed in another direction.
This section is relatively plug and play from the tutorial as well as the configuration they have provided in the github repo.
#### Part 4: BGP Community and Local Preference
For the last section we have to set BGP Community and Local Preference for the BGP configuration.
This section is similar to the one we have done in [CS3103](/post/cs3103-computer-networks-practice/ "CS3103") where we have to configure the BGP community and local preference for the BGP configuration.
This is also a relatively easier section to implement as the lecture notes have clear outlines on how to implement it.
Some fiddling is required to test and check if the configuration is correct.
#### Overall
The assignment looked ok on paper.
However, there were some issues during the execution of it.
There were some loops which were found on the VM.
This resulted in some hosts being unable to reach another one.
As a result, it became very hard to test if the configuration is working correctly and common commands to test the network (such as `pingall`) causes weird errors that required a restart to fix.
However, the TA was very helpful and re-uploaded the assignment PDF to fix and explain the issue.
He also extended the deadline so that we will have enough time to update our assignment to match the new requirements which were required for this assignment.
### Midterm Exams
The midterm exams were physical and tested topics from Performance to Resource allocation.
The exam was in the form of a Luminus quiz within the lecture venue and it was open book.
We are allowed to bring any notes that we required and refer to them during the exam.
As the module had a lot of students, the lecture theatre was very full.
Due to a mistake in one of the questions, it was voided.
The voided question also happened to be the hardest questions which might have resulted in a skewed bell curve.
### Final Exam
The final exam was also in the form of a Luminus quiz.
However, this time, it is held in UTown.
Even though this is the final exam, the topics from the first half of the semester were also heavily tested.
We were allowed to view PDFs for notes provided during the course but we could print out any other materials on paper to refer to them. (Some of the blog posts here were made for that purpose in mind [here](#from-this-blog "Resources from this blog")).
The format of the paper was similar to the past year papers.
Grinding the past year papers is a very helpful way to study for the finals.
## Ratings
### Workload
- Lectures: 6/10 (Moderate)
- Requires some revisiting and doing out the examples to understand the concepts clearly especially for the earlier parts
- Tutorials: 6/10 (Moderate)
- The tutorials require some references to the lecture notes to figure out
- Doing the tutorials were very good preparation for the midterms and final exams
- Assignment 1: 8/10 (Heavy)
- A lot of document references were required to complete the assignment
- A large portion of time was spent on setting up everything in the environment to make it work correctly
- This may be due to the fact that I don't really understand what was going on during the tutorial where they went through the set up
- Assignment 2: 6/10 (Moderate)
- This assignment was less workload compared to assignment 1
- A lot of references were still required to complete the assignment
- The experience from the previous assignment is also helpful for this assignment
- Overall: 6.5/10 (Moderate)
### Organization
- Lectures: 9/10
- The lectures were well organized and the slides were very clear with examples.
- Not everything is provided in the slides so some note taking is required on our side when the professor is explaining the concept.
- Tutorials 7/10
- The first half of the tutorials were very well organized and the slides were very clear.
- However, for the second half, it seems a little confusing on the lab set up.
- Assignment 1: 7/10
- This is the first iteration of the assignment as it was just switched to ONOS.
- Assignment 2: 6.5/10
- There were some mistakes in the assignment PDF initially which created a lot of confusion.
- However, the TA managed to rectify it and extend the deadline.
- Overall: 7.375/10
### Learning
- Lectures: 8/10
- The lectures were pretty well explained
- Tutorials: 6/10
- During the lecture I felt that the TA's explanation was a little confusing
- Some self review is required after the tutorial to understand the concepts better
- Assignment 1: 7/10
- We did learn on how the underlying implementation work for ONOS
- We also managed to have some hands on experience with ONOS
- Assignment 2: 6/10
- The assignment was pretty straightforward and we just have to follow the tutorial.
- After setting up the settings for the first few routers, the rest were relatively similar and only required some minor tweaks
- Overall: 6.75/10
### Enjoyment
- Lectures: 7/10
- I did not enjoy the initial lectures as I was bad at statistics
- However, the second half of the semester was a lot more interesting as we were learning about how the network is applied and more practical aspects of it
- Tutorials: 3/10
- I did not enjoy the tutorial sessions
- Could not really understand some of the concepts
- Was confused during most of the setup lab sessions
- Assignment 1: 3/10
- Feels like flipping through the API and trying to find the relevant API to use
- Assignment 2: 3/10
- Did not enjoy it as much as there were some errors present in the assignment that resulting in the inability to test the code fully.
- Overall: 4/10
### Usefulness
- Lectures: 6/10
- The content were more relatable towards the end of the lecture
- The first half of the semester was geared more towards those who want to research on queues and network statistics
- Tutorials: 5/10
- Similar to the lectures, the first half of the semester was more on theoretical items
- For the second half of the semester, most of the tutorials were spent showing examples of how to run the code for the assignment and some examples to guide us in the assignments.
- Assignment 1: 7/10
- The assignment shows us how to implement APIs in ONOS
- Shows us the potential of SDNs and how they revolutionize the networking industry
- Assignment 2: 6/10
- The assignment gives us some hands on experience on network configurations on SDNs
- Overall: 6/10
## Overall
Overall, I feel that the module taught me a lot about networking and some real life examples on how it is used.
I gained a deeper understanding of the internet and have learnt to appreciate it more.
However, I feel that this module is not for me personally.
Maybe others taking the module enjoyed it more than I have.
I would recommend this module for anyone who is:
1. Interested in taking further networking mods as this is a prerequisite
2. Interested in the theoretical side of networking
3. Wants to learn more about Software Defined networks
Expected Grade: B+/A-
- Did pretty well for the midterms
- Did ok for the finals but not sure about the bell curve.
Actual Grade: B+
## Helpful links
#### From this blog
1. [Software Defined Networks](/post/software-defined-networks/ "Software Defined Networks")
2. [Openflow](/post/openflow/ "Openflow")
3. [ONOS](/post/onos/ "ONOS")
4. [Internet Interconnection](/post/internet-interconnection/ "Internet Interconnection")
5. [Border Gateway Protocol](/post/bgp/ "Border Gateway Protocol")
6. [Peer to Peer Networking](/post/peer-to-peer-networks/ "Peer To Peer Networking")
7. [Distributed Hash Tables](/post/distributed-hash-tables/ "Distributed Hash Tables")
#### External Sources
1. [deunitato github](https://deunitato.github.io/NUSCSMODS/CS4226/ "deunitato resources")
#### Past Year Papers
1. [AY1516 Paper](./AY1516.pdf "1516S1-CS4226.pdf")
2. [AY1617 Paper](./AY1617.pdf "1617S1-CS4226.pdf")
3. [AY1718 Paper](./AY1718.pdf "1718S1-CS4226.pdf")
4. [AY1819 Paper](./AY1819.pdf "1819S1-CS4226.pdf")
5. [AY2021 Paper](./AY2021.pdf "2021S1-CS4226.pdf")
---
# CS4239/CS5439 Software Security
- **Canonical URL:** https://nus-guide.com/post/cs4239-cs5439-software-security/
- **Published:** 2023-06-28
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** CS4239, CS5439, Software Security, NUS, National University of Singapore
- **Words:** 703
> A Review of CS4226 Software Security AY21/22 Semester 1 at NUS including module information, useful links, ratings and resources for the module.
## Module information
Software engineering processes need to include security considerations in the modern world. This course familiarizes students to security issues in different stages of the software life-cycle. At the end of the course, the students are expected to understand secure programming practices, be able to analyze and check for impact of malicious inputs in programs, and employ specific testing techniques which can help detect software vulnerabilities.
For AY21/22 Sem 1, the module is taught by [Prof. Roland Yap](https://www.comp.nus.edu.sg/~ryap/ "Prof Roland's Website").
This module is only offered in Sem 1.
### Schedule
- Lectures: Tuesdays 2pm - 4pm
- Tutorials: Wednesdays 5pm - 6pm
### Module Breakdown
- Class Quizzes 10%
- Labs 30%
- Assignments 30%
- Final Exams 30%
### Prerequisites
- CS3235
- CS2103/T or CS2113/T
Familiarity with the following is a plus:
- C/C++
- Assembly Code
- Unix like operating systems
### Module Details
Topics that will be covered
1. Introduction to Software Security
2. Background
3. Memory Errors
4. Memory Defenses
5. Control Flow Graphs
6. Control Flow Attack & Defenses
7. Black Box Fuzzing
8. White Box Fuzzing
9. Arithmetic Errors
10. Operating Systems
11. Miscellaneous Topics
### Lectures
The Lectures were conducted video style over zoom.
The chat from the zoom meeting was uploaded by Prof Roland at the end of every lecture.
### Tutorials
Tutorials were very similar to lecture in style.
They were held over zoom where Prof Roland would usually explain the solutions to the lab.
### Labs
Labs were given out occasionally. There were about 7 labs over the entire semester.
The labs were mainly on writing / exploiting C programs as well as discovering the different mitigation (IE: Address Sanitizer) and how they work.
### Projects
There were 2 projects throughout the entire semester.
You can make groups of 5 (of your own choosing) to complete these projects.
The 1st project was to do research about a particular CVE and how it works.
My group worked on [CVE-2021-3177](https://nvd.nist.gov/vuln/detail/CVE-2021-3177 "CVE-2021-3177 Python Buffer Overflow CVE") where we had to write a report on what caused it, what is the effect of it and how it impacts python programs.
The 2nd project was to research a family of vulnerabilities. My group worked on Server Side Request Forgery (SSRF) and here is the [group repository for our SSRF Research](https://github.com/CS4239-U6 "CS4239-U6 SSRF Research")
We were free to decide which ones we want. The first project has to be a CVE of sufficient complexity (either shown by prof or propose your own to prof). The second project can be about any vulnerability(ies) that you want.
## Ratings
### Workload 5/10 (Moderate workload)
The workload for the modules were moderate.
Outside of the lectures and tutorials, most of the time was spent on the Lab and the project.
They were not as hectic as other Software engineering projects (like CS3203 and CS2103T).
More time was spent into understanding the concepts instead of programming a system.
### Organization 7/10
The lectures were relatively well organized and each topic lays the foundation for future topics which are taught.
### Learning 8/10
I've learnt a lot about Address Sanitizer, Shadow stacks and other mechanisms that were taught in the module about the different tools used to check for vulnerabilities.
### Enjoyment 8/10
I enjoyed learning the module. It feels like a natural extension of CS3235.
### Usefulness 8/10
The topics that were taught in this module were very useful in helping me become a more secure programming.
## Overall 7.5/10
Overall the I enjoyed the module a lot and would definitely recommend this module to anyone who wants to specialize in Software Engineering and Computer Security focus areas at the same time (as it double counts).
Concepts in this module were also useful to me as a software engineer and definitely trained my awareness on insecure programming practices in my day to day code.
Expected Grade: `A`
Actual Grade: `A`
## Useful Links
1. [NUSMods](https://nusmods.com/courses/CS4239/software-security "NUSMods for CS4239")
2. [CS4239 Reference Material](https://www.cl.cam.ac.uk/~rja14/book.html "Book on Engineering in Security")
3. [My Notes in markdown](./notes.txt "My CS4239 Notes")
### Arithmetic Errors
- [Stagefright: Scary Code in the Heart of Android](https://www.youtube.com/watch?v=71YP65UANP0&ab_channel=BlackHat "Stagefright: Scary Code in the Heart of Android")
- [Stagefright](https://googleprojectzero.blogspot.com/2015/09/stagefrightened.html "Blog post on Stagefright")
### Secure Programs
- [HowTo Secure Programming](https://www.dwheeler.com/secure-programs "Secure Programming Book")
### System issues
- [SetUID](http://www.gnu.org/software/libc/manual/html_node/Setuid-Program-Example.html "Set UID Example")
- [The UNIX Process Identity Crisis: A Standards-Driven Approach to Set Uid](https://dl.acm.org/doi/10.1145/2660267.2660333 "The UNIX Process Identity Crisis: A Standards-Driven Approach to Set Uid")
### Secure Programming
- [CVE-2015-5477](https://blog.cloudflare.com/a-deep-look-at-cve-2015-5477-and-how-cloudflare-virtual-dns-customers-are-protected/ "CVE-2015-5477")
- [29C3: Hacking Cisco Phones (EN)](https://www.youtube.com/watch?v=liW_u4vjdVs&ab_channel=Christiaan008 "29C3: Hacking Cisco Phones (EN)")
- [SEI CERT Coding Standards](https://wiki.sei.cmu.edu/confluence/display/seccode/SEI+CERT+Coding+Standards "SEI CERT Coding Standards")
## Operating Systems
- [The Performance Cost of Shadow Stacks and Stack Canaries](https://dl.acm.org/doi/10.1145/2714576.2714635 "The Performance Cost of Shadow Stacks and Stack Canaries")
- [EffectiveSan: type and memory error detection using dynamically typed C/C++](https://dl.acm.org/doi/10.1145/3296979.3192388 "EffectiveSan: type and memory error detection using dynamically typed C/C++")
## Fuzzing
- [Coverage-based Grey box Fuzzing as Markov Chain](https://dl.acm.org/doi/10.1145/2976749.2978428 "Coverage-based Grey box Fuzzing as Markov Chain")
- [DART: directed automated random testing](https://dl.acm.org/doi/10.1145/1064978.1065036 "DART: directed automated random testing")
- [Taint-based directed white box fuzzing](https://dl.acm.org/doi/10.1109/ICSE.2009.5070546 "Taint-based directed white box fuzzing")
- [Dytan: a generic dynamic taint analysis framework](https://dl.acm.org/doi/10.1145/1273463.1273490 "Dytan: a generic dynamic taint analysis framework")
---
# Data Storage & Disk Drives
- **Canonical URL:** https://nus-guide.com/post/data-storage/
- **Published:** 2023-02-12
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS3223
- **Keywords:** CS3223, Data Storage, Hard disk, Disk Drives, Database Systems Implementation
- **Words:** 1031
> Database Storage on disk & Disk drives. This is part of my learning notes for CS3223 Database Systems Implementation at NUS School of Computing.
## What is stored in a Database System?
1. Relations
2. Metadata about relations
1. Relation Schemas
1. Structure of relations
2. Constraints
3. Triggers
2. View Definitions
3. Indexes
1. Derived information to speed up access to relations
2. Can be a B+ tree, hash table, etc.
4. Statistical information about relations for use by query optimizer
5. Log files
1. Maintained for data recovery
## Memory Hierarchy
1. Primary Memory
1. Register
2. Static RAM (SRAM)
3. Dynamic RAM (DRAM)
2. Secondary Memory
1. Magnetic Disk (HDD)
2. Solid-State Disk (SSD)
3. Tertiary Memory
1. Optical disks
2. Tapes
As we move from primary to secondary to tertiary memory, the following changes
1. Capacity increases (For the same price)
2. Cost decreases (For the same capacity)
3. Access speed decreases
4. Primary storage is volatile while secondary and tertiary storage are non-volatile
## DBMS Storage
- DBMS stores data on non-volatile disk for persistence
- DBMS processes data in RAM
- Main disk access operations
- Read: Transfer data from disk to ram
- Write: Transfer data from ram to disk
## How does a Magnetic Disk Work?

A hard disk consists of number of disks called platters. Each platter is divided into number of tracks. Each track is divided into number of sectors. Each sector is divided into number of blocks. Each block is usually 512 bytes.
When a hard disk reads / writes data, the following happens:
1. The disk controller interpreters access command given by the OS. This incurs command processing time (C).
2. The arms of the disk is moved to the correct track. This incurs seek time (S).
3. The platter rotates and the read / write head moves to the correct sector. This incurs rotational delay (R).
4. The read / write head reads / writes the data. This incurs transfer time (T).
Based on the steps above, we can calculate the total disk access time using the formula below:
```
access time = C (negligible) + S + R + T
C = Command Processing Time
S = Seek Time
R = Rotational Delay
T = Transfer Time
```
As Command processing time is usually negligible, we can simplify the formula to:
```
access time = S + R + T
S = Seek Time
R = Rotational Delay
T = Transfer Time
```
### Seek time
As mentioned above, the seek time is the time taken for the arms of the disk head to move to the correct track.
The average seek time for a HDD is `5ms` to `6ms`.
### Rotational Delay (or Rotational Latency)
Rotational delay depends on the rotation speed of the HDD. It is usually measured in revolutions per minute (RPM).
The rotational delay is the time taken for the disk to rotate to the correct sector.
We can calculate the average rotational delay by using the formula below:
```
R = 0.5(60s / RPM)
R = Average Rotational Delay
RPM = Revolutions Per Minute
```
For example
```
Given RPM = 7200
R = 0.5(60s / 7200)
= 0.5(0.00833s)
= 0.00417s
= 4.17ms
R = Average Rotational Delay
RPM = Revolutions Per Minute
```
### Transfer Time
The transfer time is the time taken for the read / write head to read / write the data.
The average sector transfer time for a HDD is 100 - 200 microseconds.
The formula for calculating the average transfer time is:
```
T = n * (1/RPM) / (SpT)
n = number of requested sectors on the same track
SpT = Sectors Per Track
T = Transfer Time
```
## Sequential I/O vs Random I/O
### Sequential I/O
Sequential I/O refers to reading / writing data in a sequential manner. For example, reading / writing data to a file.
When the file is written to sequentially, the disk does the following:
1. Interpret the access command (Time negligible)
2. Move arm to position disk head on track (Seek time incurred)
3. Wait for block to rotate under head (Rotational delay incurred)
4. Move all the data to the disk Surface (Transfer time incurred)
Using the formulas we have above we will get the following:
```
Access Time = S + R + T
= S + 0.5(60s / RPM) + n * (1/RPM) / (SpT)
RPM = Revolutions Per Minute
S = Seek Time
R = Rotational Delay
T = Transfer Time
N = Number of Sectors to be written
SpT = Sectors Per Track
```
As the data for a file with `n` chunks is all together, the seek time and rotational delay is only incurred once.
This way, we can save time by writing data sequentially.
### Random I/O
Random I/O refers to reading / writing data in a random manner. For example, reading / writing data to a database.
When the database is written to randomly, the disk does the following:
1. For each sector (for `n` sectors)
1. Interpret the access command (Time negligible)
2. Move arm to position disk head on track (Seek time incurred)
3. Wait for block to rotate under head (Rotational delay incurred)
4. Move all the data to the disk Surface (Transfer time incurred)
Using the formula we discussed above, we will get the following:
```
Access Time = n(S + R + T)
= n(S + 0.5(60s / RPM) + n * (1/RPM) / (SpT))
RPM = Revolutions Per Minute
S = Seek Time
R = Rotational Delay
T = Transfer Time
n = Number of Sectors to be written
SpT = Sectors Per Track
```
As the data for a database with `n` chunks is not all together, the seek time and rotational delay is incurred for each chunk.
We are pessimistic in our assumption here as we assume that the random data is neither on the same track nor on a nearby sector.
## Solid State Drives (SSD)
SSD is a type of non-volatile memory that uses flash memory to store data.
They are built using NAND flash memory.
Here are some comparisons between HDD and SSD:
| Metric | HDD | SSD | Remarks |
| -------------------- | ------- | ---------------- | ------------------------------------------ |
| Random Read latency | 10ms | 0.1ms | |
| Random Write latency | 10ms | 0.1ms | |
| Data transfer rate | 100MB/s | 500MB/s to 3GB/s | 500MB/s for SATA and 3GB/s for NVME drives |
| Power consumption | High | Low | |
However, SSDs also have their own drawbacks
1. They are more expensive than HDDs
2. Updates to a page requires erasure of multiple pages (5ms) before overwriting page
3. SSDs have a limited number of write cycles (100,000 to 1,000,000)
## Useful links
1. [What is seek time](https://www.techopedia.com/definition/3558/seek-time "What is seek time")
2. [Hard disk (hard drive) format – the tracks and sectors of the hard disk](https://www.pctechguide.com/hard-disks/hard-disk-hard-drive-format-the-tracks-and-sectors-of-the-hard-disk "https://www.pctechguide.com/hard-disks/hard-disk-hard-drive-format-the-tracks-and-sectors-of-the-hard-disk")
---
# Database Indexes
- **Canonical URL:** https://nus-guide.com/post/database-indexes/
- **Published:** 2023-02-23
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS3223
- **Keywords:** CS3223, Index, Database Indexes, Database Systems Implementation, B+ Trees
- **Words:** 1252
> How does a database index work? An overview of database indexes (including B+ trees). This is part of my learning notes for CS3223 at NUS School of Computing.
In this chapter we will be going through how database indexes work and how they are implemented.
## What is an Index?
- An index is a data structure to speed up retrieval of data records based on some search key.
- A search key is a sequence of `k` data attributes.
- It can be the primary key of the database
- It can also be the composite key of the database
- Indexes are also stored at files on the computer.
- A unique index is an index where the search key is unique.
- Otherwise it is a non-unique index.
- Indexes are stored as file
- Records in an index file are referred as data entries
## Types of Indexes
In databases, there are 2 main types of database indexes:
1. Tree-based index
1. These are based on the sorting of search trees
2. IE: Binary Search Trees, B+ Trees, etc
2. Hash-based index
1. Data entries are accessed using hash functions
2. IE: Static hashing, extendible hashing, linear hashing, etc
### How to choose an index
| Considerations | Description |
| ------------------ | ---------------------------------------------------------------------------------------------- |
| Search Performance | How fast can we find a record in the index for a given query (Can be ranged or equality search |
| Storage overhead | How much space does the index take up in the disk |
| Update performance | How much does it cost to update a record in the index |
## Format of data entries
In a database index, there are various ways to store data entries.
| Format | Description | Example |
| -------- | ----------------------------------------------------------------------------------------------------------- | ------------------- |
| Format 1 | The actual record with the search key is stored at the leaf pages | `(k, Record data)` |
| Format 2 | The records are stored in tuples of `(k, RID)` at the leaf pages | `(k, RID)` |
| Format 3 | The records are stored as tuples of (k, List of RIDs). All entries with the key `k` will be stored together | `(k, List of RIDs)` |
**Note**
- For format 1, finding the relevant leaf pages is equivalent to finding the actual records.
- In formats 2 & 3, there is 1 additional lookup to find the actual page containing the record if it is required.
## B+ Tree Index
Some terminologies for a B+ Tree
1. Leaf nodes: Store sorted data entries
2. `k*` denote a data entry in the form of (k, RID)
1. `k` = search key value corresponding data record
2. `RID` = `RID` of corresponding data record
3. Leaf nodes are doubly linked
4. Internal nodes: Store sorted pointers to child nodes
1. In the form of (`p1`, `k1`, `p2`, `k2`,......, `pn`, `kn`)
1. Where `k1` < `k2` < `k3`, etc
2. `pi` = disk page address (Root node of subtree)
5. For each data entry in the B+ tree, the value of `k` must be between the 2 keys in the parent node adjacent to it.
6. Each `(ki, pi)` is an index entry,
1. `ki` serves as a separator between 2 pointers between the contents pointed by `pi-1` and `pi`
It has the following properties
1. Dynamic structure, it adapts to data updates gracefully.
2. Height-balanced index structure
3. Order of index tree, `d` is a subset of positive integers
1. `d` controls the space utilization of index nodes
2. Each non-root node contains `m` entries where `d <= m <= 2d`
3. The root node contains `m` entries where `1 <= m <= 2d`
If you find the above definition confusing, here is a diagram of a B+ tree:

In the diagram you can see:
- `d` value is 1
- So each internal node can have a maximum of 2 entries
- The root can have less but currently does not.
- Each internal node (root + 1 layer below root) consists of 2 numbers (`k` values) and 3 pointers (`p` values).
- Each data entry in the leaf node lies between the 2 keys in the parent node adjacent to it.
- IE: `0007` is between the node `0007` and `0008`.
- For nodes at the edge, the missing k value is assumed to be -infinity or +infinity or inferred from further parents.
- IE: `0006` is between -infinity and `0007`, `0017` is between `0017` and +infinity.
- IE: `0008` is between `0008` and `0009`and `0011` is between `0011` and `0012`
To visualize it yourself, visit [B+ Tree Visualization](https://www.cs.usfca.edu/~galles/visualization/BPlusTree.html "B+ Tree Visualization")
## B+ Tree Index Search
There are 2 types of searches which are supported in a B+ Tree index.
1. Equality search
2. Ranged search
### Equality queries
To search for a record in a B+ tree, we need to do the following:
1. Start at the root node
2. Find the largest key value that is smaller than the search key, `ki`
1. If the search key exists
1. search the subtree at pointer `pi`
2. otherwise search the subtree at `p0`
3. We can repeat this recursively to find the value we want.
### Ranged queries
To search for a range of records in a B+ tree, we need to do the following:
1. Start at the root node
2. Find the largest key value that is smaller than the search key, `ki`
1. If the search key exists
1. search the subtree at pointer `pi`
2. otherwise search the subtree at `p0`
3. When we arrive at the leaf node
1. We collect all values and follow the pages until the first record that is larger than the search key is found
## Insertion into B+ Tree
If we want to insert a value `(k, RID)` into the B+ Tree, we need to do the following:
1. Find the leaf node (`l`) where the value should be inserted.
2. If the leaf node is not full (IE: `m < 2d`)
1. Insert the value into the leaf node
2. Done
3. Otherwise
1. Allocate a new leaf node (`n*`),
2. Put the last `d+1` entries of `l` into `n*`
3. Update the sibling pointers in the parent node (Parent of root is null)
4. Update the pointers of `l` and `n*` to point to each other
To see a detailed visualization, visit [B+ Tree Visualization](https://www.cs.usfca.edu/~galles/visualization/BPlusTree.html "B+ Tree Visualization")
There are optimizations that can be done to reduce the number of disk accesses.
We can check the page to the left and right of the current page.
If there is space, we can move 1 entry over and update the pointer between the 2 pages in the parent node.
## B+ Tree deletion
To delete a value `(k, RID)` from the B+ Tree, we need to do the following:
1. Find the leaf node (`l`) where the value should be deleted.
2. Remove the entry
3. If the current leaf does not fall below the minimum threshold (IE: `m >= d`)
1. Done
4. Otherwise
1. If a sibling has additional nodes over the minimum threshold
1. Move 1 node from the sibling to the current node and update the internal node
2. done
2. Otherwise
1. Merge the current node with the sibling
2. Update the parent node to remove the pointer to the current node
Similar to insertion, a visualization can be found at [B+ Tree Visualization](https://www.cs.usfca.edu/~galles/visualization/BPlusTree.html "B+ Tree Visualization") which can help us better understand the process.
## Bulk loading a B+ Tree
If we have a large collection of records that we want to make a B+ tree for, we can do it in 2 ways.
### Insert records into B+ tree 1 at a time
This is the same as the insertion process we have seen before.
The process is time consuming, especially for large datasets.
### Bulk loading
We can also bulk load the B+ tree.
This are the steps to bulk load a tree:
1. Sort the data entries by search keys
2. Load the leaf pages of B+ Tree with sorted entries
3. Initialize the B+ tree with an empty root page
4. For each leaf page
1. Insert its index entry into the rightmost parent of leaf level page of B+ Tree
This is a video explanation for [bulk loading in a B+ Tree](https://www.youtube.com/watch?v=HJgXVxsO5YU "bulk loading in a B+ Tree") which can help us better understand the process.
## Useful links
1. [B+ Tree visualization](https://www.cs.usfca.edu/~galles/visualization/BPlusTree.html "B+ Tree visualization")
---
# Database Storage, Buffer Manager & Files
- **Canonical URL:** https://nus-guide.com/post/database-buffer-manager/
- **Published:** 2023-02-13
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS3223
- **Keywords:** CS3223, Buffer manager, Storage Manager, Database Systems Implementation
- **Words:** 1170
> An overview of the storage manager, buffer manager and files in the DBMS. This is part of my notes for CS3223 Database Systems Implementation at NUS SoC.
In this chapter we will go through the storage manager of a DBMS before diving into the buffer manager.
## Storage Manager of DBMS
The storage manager of a DBMS provides an interface between data stored in the database and the queries received by the DBMS.
It consists of the following components:
1. File & access methods manager
2. Buffer pool manager
3. Disk space manager
- Data is stored & retrieved in units called disk blocks (or pages).
- Each block consists of one or more contiguous disk sectors.
### File and access methods manager
This components is the file layer in the storage manager and deals with the organization and retrieval of data,
### Disk Space manager
The disk space manager keeps track of pages used by the file layer.
### Buffer manager
The buffer manager controls the reading / writing of the disk pages.
It maintains a buffer pool of pages in memory.
## The Buffer manager
The main memory allocated to a DBMS goes to the buffer pool.
It is partitioned into block-sized pages called `frames`.
Clients of the buffer pool can do the following:
1. Request for a disk page to be fetched into the buffer pool
2. Release a disk page in the buffer pool
All data requested by other components in the DBMS is fetched from the buffer pool first before being returned to the requesting component.
A page in the buffer is dirty if it has been modified but not updated on the disk.
When the dirty page is replaced, the changes will be written to the disk.
For each frame in the buffer pool, the buffer manager maintains the following information:
1. Pin Count: The number of clients whi are using the current page (Initialized to `0`)
2. Dirty Flag: Whether the page is dirty (Initialized to `false`)
### Some Terms
| Term | Definition |
| ---------- | ------------------------------------------------------------------------- |
| Pin Count | The number of clients who are using the current page (Initialized to `0`) |
| Dirty Flag | Whether the page has been written to (Initialized to `false`) |
| Pinning | Increasing the pin count of the page |
| Unpinning | Decreasing the pin count of the page |
### Handling a request for a page
The general algorithm is as follows, where `P` is the page requested.
In this example, I will be using `python` to illustrate the algorithm.
```python
def handle_page_request(page_id: int) -> Page:
"""Handles a request for a page"""
# Check if the page is already in the buffer pool
if page_id in buffer_pool:
# If it is, increase the pin count (pinning)
buffer_pool[page_id].pin_count += 1
return buffer_pool[page_id]
# If it is not, find a free frame
free_frame = find_free_frame()
# If there is a free frame, load the page into the buffer pool
if free_frame is not None:
buffer_pool[page_id] = Page(page_id, free_frame)
return buffer_pool[page_id]
# If there is no free frame, find a victim page (IE: Page to be removed)
victim_page = find_victim_page() # Replacement Algorithm is applied.
# If there are no pages to be removed, return an error
if victim_page is None:
raise BufferPoolFullError()
# If the victim page is dirty, write it to disk
if victim_page.dirty:
write_page_to_disk(victim_page)
# Remove the victim page from the buffer pool
del buffer_pool[victim_page.page_id]
# Load the page into the buffer pool
buffer_pool[page_id] = Page(page_id, victim_page.frame_id)
return buffer_pool[page_id]
```
### Properties of the buffer manager
- When unpinning a page, the dirty flag should be updated if the page is dirty.
- A page in the buffer can only be replaced if its pin count is `0`.
- Before replacing the page, the dirty flag should be checked.
- If the page is dirty, it should be written to disk.
- The Buffer manager coordinates with the Transaction manager to ensure data correctness and recoverability.
- For crash resilience.
## Replacement Policies
The replacement policies decides which unpinned page to replace when the buffer pool is full.
All the algorithms tries to help by reducing the number of disk I/Os used by guesses which page will not be used in the near future.
Here are some commonly used replacement policies:
1. Random
2. First-in-first-out (FIFO)
3. Most recently used (MRU)
4. Least recently used (LRU)
5. Clock (Variant of LRU)
There are also other replacement policies which are not stated here.
### Random Replacement
This is the simplest replacement policy.
It randomly selects a page to be replaced.
### Fifo Replacement
This replacement policy replaces the page that has been in the buffer pool the longest.
- The first page that was loaded into the buffer pool will be the first to be replaced.
- This is usually implemented in the form of a queue.
- This caching policy is effectively only if the access pattern of the page is from the oldest to the newest.
### Most Recently Used (MRU) Replacement
This replacement policy replaces the page that is accessed the most recently.
- The page that was accessed most recently will be the first to be replaced.
- When there is a cache hit, the page will be moved to be the first to be replaced.
- This access policy is good when there is are a bunch of pages accessed in a loop pattern.
### Least Recently Used (LRU) Replacement
This replacement policy replaces the page that is accessed the oldest page.
- The page that was accessed the earliest will be the first to be replaced.
- When there is a cache hit, the page will be moved to be the last to be replaced.
- This access policy is good when the data that is most recently used is usually accessed again.
### Clock Replacement
This replacement policy is a variant of LRU which is easier to implement.
- Each frame has a reference bit.
- This is turned on when its pin count becomes 0
- The first page that has referenced bit off and pin count = 0 will be replaced.
[Click here to see an illustration of the algorithm (Figma)](https://www.figma.com/proto/yufAuhafUWzhAKwna2oGCy/Clock-Replacement-Algorithm?node-id=1%3A119&scaling=min-zoom&page-id=0%3A1 "Clock algorithm Visualization")
## Files
The file abstraction
- Each relation is a file of records
- Each record has a unique record identifier called `RID`
- Common file operations
- Create a file
- Delete a file
- Insert a record
- Delete a record with a given `RID`
- Get a record with a given `RID`
- Scan all records
### File Formats
There are different ways to arrange the files in the disk.
1. Heap File: Unordered file
1. There are 2 types of implementation of the Heap File
1. Linked List implementation
2. Page Directory Implementation
2. Sorted File: Records are ordered by some search key
3. Hash File: Records are located in blocks via a hash function
### Page format
These are the possible page formats.
1. Fixed Length Records
1. Implementations of Fix length records
1. Packed Organization: Store records in contiguous slots
2. Unpacked Organization: Use a bit array to maintain free slots
2. Fields are stored consecutively.
2. Variable Length Records
1. Implementation of Variable length records
1. Slotted Page organization: Stores an array of `RID` pointers and store the records in a separate spae in memory
2. Records are delimited with a special symbols OR there is an array of offsets at the beginning of the field.
One way to create an RID from the page format is using the formula `RID` = `Page ID` + `Slot ID`
## Useful Links
1. [Structure of Database Management Systems](https://www.geeksforgeeks.org/structure-of-database-management-system/ "Structure of Database Management Systems")
2. [Clock replacement policy](https://www.geeksforgeeks.org/second-chance-or-clock-page-replacement-policy/ "Clock replacement policy")
3. [Illustration of the clock replacement algorithm](https://www.figma.com/proto/yufAuhafUWzhAKwna2oGCy/Clock-Replacement-Algorithm?node-id=1%3A119&scaling=min-zoom&page-id=0%3A1 "Illustration of the clock replacement algorithm")
---
# Design Patterns: The Command Pattern
- **Canonical URL:** https://nus-guide.com/post/design-patterns---the-command-pattern/
- **Published:** 2022-10-04
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS3219
- **Keywords:** Design Patterns, Software Engineering, Command Pattern
- **Words:** 680
> Discussing more about the Command Design Pattern. This is part of my assignment for CS3219 to write an article about software engineering.
The command pattern involves creating an object that encapsulates all the information needed to perform an action or trigger an event at a later time. This information includes the method name, the object that owns the method and values for the method parameters.
## Problem
The example that we will be using over here is a simple text editor. The text editor has a `Document` class that contains a `String` that represents the text in the document. The `Document` class also has a `open()` and `save()` method that opens and saves the document respectively.
Each method that we want to implement, it will do something to the text that is contained within the element.
Using naive methods, I will have to create buttons for the function that I want to implement. For example, if I want to implement a `bold` function, I will have to create a button that will call the `bold()` method. This will be a problem if I want to add more functions to the text editor. I will have to create more buttons for the new functions that I want to implement.
This will create many different types of buttons that will be used for different functions. This will also create a lot of code that will be used to create the buttons.
## So how do we solve this?
The solution to this problem is to create a `Command` interface that will contain the `execute()` method. This method will be used to execute the command that is passed into the method.
Each of the command interfaces will have a method that allows the command to be executed. In this case, the `execute()` method will be used to execute the command.
```java
public interface Command {
void execute(TextEditor textEditor);
}
```
An example of this will be the bold command.
```java
public class BoldCommand implements Command {
@Override
public void execute(TextEditor textEditor) {
textEditor.selectedText = "" + textEditor.selectedText + "";
}
}
```
In this case there is only 1 button implementation required.
```java
public class Button {
private Command command;
public Button(Command command) {
this.command = command;
}
public void click(TextEditor textEditor) {
command.execute();
}
}
```
## Advantages and Disadvantages
### Advantages
- It decouples the object that invokes the operation from the one that knows how to perform it.
- It may easier to implement undo/redo.
- Each command just has to implement an `undo()` method.
- The commands used are kept as a stack and undoing is just looking at the top of the stack and running the undo command for the command
- Commands can be composed to form more complicated commands without reimplementing them.
- For example, a `BoldCommand` can be composed with an `ItalicCommand` to form a `BoldItalicCommand`.
- Commands can be differed and executed at a later time.
- For example, a `BoldCommand` can be deferred and executed at a later time when printing the document instead of running immediately.
This follows the principles of Single Responsibility as well as the Open / Closed principle
### Disadvantages
- It can make the code more complicated since you will have to create a new class for every command.
- Over-engineering when there are only a few commands
## How to effectively apply this pattern?
- Use this pattern when you want to issue requests to objects without knowing anything about the operation being requested or the receiver of the request.
- Use this pattern when you want to be able to implement reversible operations.
- Use this pattern when you want to be able to implement deferred execution of operations.
## Applications in real life
- Text editors
- IDEs
- GUIs
- Game engines
## Analogies
- The command pattern is similar to a recipe that is handed over to a chef.
- The recipe is the command and the chef is the receiver.
- The chef does not know beforehand what ihe/she is going to cook but it knows how to cook it.
## Conclusions
The command pattern is a very useful pattern that can be used to decouple the object that invokes the operation from the one that knows how to perform it. It can also be used to implement undo/redo and deferred execution of operations.
## Useful Links
1. [The refactoring Guru](https://refactoring.guru/design-patterns/command "Refactoring Guru")
---
# Design Patterns: The Strategy Pattern
- **Canonical URL:** https://nus-guide.com/post/design-patterns---the-strategy-pattern/
- **Published:** 2022-09-11
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS3219
- **Keywords:** Design Patterns, Software Engineering, Strategy Pattern
- **Words:** 654
> Learning about the Strategy Design Pattern. This is part of my learning notes for CS3219 Software Engineering Principles and Patterns.
This is just a migration from my previous medium post to my blog.
Hopefully, I will be able to learn more about design patterns and share my knowledge through my blog.
## Problem
Imagine building an application that automatically posts a cat photo. After spending an entire weekend building out the application, you are very proud of what you have done.
The code below shows the rough code of what is done.

Everyone loved the cat photos that you have posted. After your newfound success, there were many fans asking you if you can do something similar with Dog photos.
Now, what do we do?
We can always make another function similar to `postCatImage` and make it a dog version instead. The code below is an example.

However, as we add more different types of images, we will need to create more functions to accommodate different types of animals to be posted. This method does not scale well when we are looking at all different types of animals in the animal kingdom.
## So how else do we solve this?
This is where the **Strategy Design pattern** comes in.
So what is the **Strategy Design Pattern**?
It is a design pattern that enables the selection of an algorithm during runtime, instead of implementing just a single algorithm.
Instead of implementing a particular algorithm, we store the different types of algorithms as a Strategy and select the strategies during runtime based on the input that is selected.
## Advantages and Disadvantages
### Advantages:
1. Algorithms can be swapped effectively at runtime
2. The implementation of the algorithm is decoupled from the code that uses the algorithm
3. We can introduce new strategies without having to modify the original code that calls the algorithm
### Disadvantages
1. Over-engineering when there are only a few algorithms
2. The clients need to consider the differences between the strategies when calling the algorithm
3. Increased number of objects in the application during runtime
## How to effectively apply the Strategy Pattern
We can apply the pattern by following the checklist below
1. Identify a pivot point where the algorithm might differ
2. Specify the interface for the algorithm
3. Implement the different alternatives using the interface for the algorithm
4. The users of the algorithm make use of the interface for implementation.
## The solution for the example above
In this case, the algorithm for generating the image as well as the credentials can be selected during runtime instead of being hardcoded into different functions.
We can instead do something similar to the one below.

In the code snippet above, the algorithm for image generation, the credentials as well as the caption are chosen during runtime.
During extension, the user can simply add another strategy by including the relevant functions within the dictionary. The function can simply be called with `postImage` function with the appropriate typing.
## Application in real life
Here is a non-exhaustive list of the application of Strategy Patterns in real life
- Making a burger
In this case, the strategy is to choose the different burger patties to use when a customer orders.
While the algorithm to prepare the burger patties might differ, the rest of the steps when making the burger remains similar.
- Encryption
For encryption, the plain text can be the same but based on the different encryption algorithms, the resulting cipher-text can be different.
In this case, the encryption algorithms are the Strategies.
## Conclusions

While Strategy Pattern helps us organize our code when there is a need to swap in different algorithms, we must make sure to take note not to blindly apply it in every scenario.
Just because we added something new to our tool kit, it doesn’t mean that we should apply it everywhere we can. Do weigh the pros and cons of applying this pattern before using it.
## Links
1. [Original Post (By me)](https://medium.com/@wenjh1998/software-engineering-practices-strategy-pattern-fb8697cc087c "Original Medium Post")
2. [Strategy Pattern With Real World Example in Java](https://www.codiwan.com/strategy-design-pattern-real-world-example-java/ "Java Real world example")
3. [Design Patterns and Refactoring](https://sourcemaking.com/design_patterns/strategy "Strategy Design pattern")
4. [Design Patterns - Strategy Pattern](https://www.tutorialspoint.com/design_pattern/strategy_pattern.htm "Strategy Design pattern")
5. [Keep it simple with the Strategy Design Pattern](https://blog.bitsrc.io/keep-it-simple-with-the-strategy-design-pattern-c36a14c985e9 "Strategy Design pattern")
---
# DMY1401TT Machine Learning In Practice
- **Canonical URL:** https://nus-guide.com/post/dmy1401tt-machine-learning-in-practice/
- **Published:** 2024-01-15
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** DMY1401TT
- **Keywords:** DMY1401TT, Machine Learning In Practice
- **Words:** 586
> A Review of DMY1401TT Machine Learning In Practice AY20/21 Semester 2 at NUS including module information, useful links, ratings and resources for the module.
## Module information
This module aims to teach us how to apply machine learning in practice. We will learn how to use machine learning to solve real-world problems. We will also learn how to use machine learning to solve problems in our own field of study.
### Schedule
1. Lectures: 2 times a week (Thursday 10:00 - 11:00)
These lectures are held online and are not recorded.
### Module Breakdown
1. Assignment 1 **50%**
2. Assignment 2 **50%**
### Prerequisites
There are no prerequisites for this module.
### Module Details
These are the topics covered in this module:
1. Machine Learning Concepts
- Terminology
- Understanding and Preparing the data
- Analyzing algorithm choice
- Machine Learning Project Lifecycle
2. Applying Machine Learning: Classification
- K-Nearest Neighbors
- Decision Trees
- Naive Bayes
- Deploying a Machine Learning Model to a web service
3. Understanding Resource Requirements
- Compute Requirements
- CPUs vs GPUs
- Training Deep Learning Models
- Deploy a deep learning model on cloud
4. Deploying Machine Learning Solutions: Deep Dive
- Improving Model Accuracy
- Hyperparameter Tuning
- Meta Algorithm: XG/Gradient Boost
5. Different Types of Neural Networks
- Convolution Neural Networks (CNN)
- Recurrent Neural Networks (RNN)
- Long Short Term Memory (LSTM)
6. Machine Learning Systems Design
- Machine Learning Project Considerations
7. Unsupervised Learning
- Exploratory Data Analysis
- Clustering Algorithms
### Lectures
For each lecture, the lecturer will either
1. Go through a set of slides on the content of the lecture
2. Go through a Jupyter Notebook on the content of the lecture
Each of these lectures will teach us more about machine learning.
It is recommended that you have some basic knowledge of algorithms and data structures before taking this module.
### Assignment 1
For the 1st assignment, we were given a dataset and we have to use machine learning to detect anomalies in the dataset.
It is mostly filled in by the lecturer and we have to fill in the missing parts and submit it.
### Assignment 2
For the 2nd assignment, we have 2 options on what we can do.
We can either
1. Train a CNN Classifier from Scratch
2. Deploy an Object Detection Tool on the web.
### How to start the class
Disclaimer: I do not know if this module is still available currently but it is offered during the semester that I took it.
1. 1 student representative to create an application in Edurec
2. Group members must accept the registration in their Edurec account
3. Application is forwarded to the Provost Office for processing
## Ratings
### Workload (1/10) Very Light
The workload for the module was very light.
The main tasks for this module were:
1. Attend the lectures
2. Submit the 2 very short assignments (2-4 hours each)
### Organization (6/10)
The start of the module was very well organized and a good introduction of AI.
However, when there was a transition to deep learning, I feel that I am lost and I do not know what is going on.
### Learning (8/10)
It is a very good introduction to machine learning and deep learning.
It also includes a lot of practical knowledge on how to deploy a machine learning model on the web.
### Enjoyment (7/10)
Personally, I enjoyed the module as it is very interesting to learn about machine learning and deep learning.
### Usefulness (8/10)
It is very useful for anyone who wants to deploy a machine learning model on the web and apply them in practice.
## Overalls
Overall, I feel that this module is a very good introduction to machine learning and deep learning.
Given that it is CS/CU, I would definitely anyone who are looking for CS/CU modules to take it.
## Useful Links
1. [NUSMods](https://nusmods.com/courses/DMY1401TT/design-your-own-course "NUSMods")
## Assignment Questions
1. [Assignment 1](./assignment_1.ipynb "Assignment 1")
2. [Assignment 2](./assignment_2.pdf "Assignment 2")
## My Project Files
1. [Machine Learning Web Service](https://github.com/Jh123x/DYOM-Object-Detection-Web-Service "Machine Learning Web Service")
---
# ES2660 Communicating in the Information Age
- **Canonical URL:** https://nus-guide.com/post/es2660-communicating-in-the-information-age/
- **Published:** 2024-01-15
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** ES2660
- **Keywords:** ES2660, Communicating in the Information Age
- **Words:** 747
> A Review of ES2660 Communicating in the Information Age AY20/21 Semester 2 at NUS including module information, links, ratings and resources for the module.
## Module information
In a context of prolific production and convenient access to content and innovation in the Information Age,
how should one critically process and clearly communicate ideas to various audiences? In this module,
students will learn to question and articulate their analysis of assumptions and assertions on issues facing
the Information Age through processes such as identifying bias and substantiating arguments. The Ennis'
(2013) taxonomy of critical thinking dispositions will be employed to develop students' analytical thinking
skills and their ability to articulate cogent responses to arguments or to defend their own positions in both
written and oral form.
This module is taught over one semester with two 2-hour sectional teachings per week for 12 week
~ From ES2660 Module Overview
This module can be S/Ued.
### Schedule
1. Sectional Teaching: Tuesday & Friday 16:00-18:00.
### Module Breakdown
1. Group Presentation **5%**
2. Project Paper **15%**
3. Oral Presentation **10%**
4. Academic Discussion/Debate **10%**
5. Written Paper **30%**
6. Impromptu Talk (Wildcard Talk) **15%**
7. Class Participation **15%**
### Prerequisites
- QET Pass
- Any QET Exemption Criteria
Get the full information on QET here: [QET Official Website](https://www.nus.edu.sg/registrar/academic-activities/registration/academic-related-matters/qet "QET Official Website")
### Module Details
These are the topics that will be covered in the module:
1. Introduction
2. Barrett's Taxonomy of Comprehension
3. Assumptions
4. Analyzing and Evaluating Online Sources
### Sectional Teaching
The sectional teaching happens twice a week, on Tuesday and Friday.
For each of the sectional, the lecturer will go through a set of slides and discuss the topic for the week and the modules covered.
### Group Presentation
The group presentation is a 10 minutes presentation on a topic of your choice.
The aim of the task is to demonstrate what we have [learnt in the module](#module-details "Module Details") and how we can apply it to retell a fairy tale.
The assessment criteria for the group presentation is as follows:
1. Comprehension (Based on Barrett's Taxonomy of Comprehension)
2. Critical Thinking
3. Style (Quality of delivery, visuals, production & creativity)
### Group Project
We have to develop a way of processing and evaluate information and demonstrate that it works by using it on 2 different sources of information. We will have to use our rubric on 1 of them and the other will be an impromptu evaluation sent 2 days before our class presentation on our rubric.
### Panel Discussion
We have to find a sub-topic within an umbrella topic that we want to focus on and do the following
1. Brainstorm interesting angles/issues for the topic
2. Choose 1 topic to read up on and share 1 article with the rest of the group
3. Read up all the articles before the panel discussion
4. Discuss the sub-topic at the panel.
5. Answer the Q&A from the audience
### Position Paper
The paper is a 700-850 word essay.
We have to choose one question to focus on.
This is similar to writing an argumentative essay.
The paper was due in week 11.
### Wildcards
We are given 4 minus to read/watch/listen to a prompt.
After the prompt, we will have to speak on the prompt for 1 to 2 minutes and how we have used the critical thinking skills we have learnt in class to talk about it.
### Class Participation
Class participation is graded based on the following:
1. Attendance
2. Not being late
3. Asking / Answering questions
4. Hand in homework on time
5. Provide >= 3 comments on content of other's work
## Ratings
### Workload (7/10) Moderate
The workload for this module is moderate.
As someone who does not like writing essays, it took a lot of time out of me to write the essays.
### Organization (8/10)
I felt that the organization of the module was good.
My lecturer was changed halfway through the semester and the new lecturer imposed a lot of changes to the module for us.
### Learning (6/10)
I felt that I did not learn as much as I should due to my disinterest in most of the module.
### Enjoyment (5/10)
I did not enjoy the module as languages (Not programming ones) are not my cup of tea.
### Usefulness (7/10)
The module is very useful for differentiating between fake and real news and how to gauge how credible a written/spoken source is.
It also allowed me to think more critically about the things I read and hear.
## Overalls
Overall, I would not take this module if I had a choice.
But if you want to improve your critical thinking skills, writing skills and presentation skills, this module is for you.
- Expected Grade: B+
- Actual Grade: A-
## Useful Links
1. [NUSMods](https://nusmods.com/courses/ES2660/communicating-in-the-information-age "NUSMods ES2660")
2. [ES2660 Course Overview PDF](./AY2021S2_Jan2021_Course%20overview%20and%20assessments.pdf "ES2660 Course Overview")
3. [QET Official Website](https://www.nus.edu.sg/registrar/academic-activities/registration/academic-related-matters/qet "QET Official Website")
4. [ES2660 Official Website](https://www.nus.edu.sg/celc/undergraduate-courses/es2660-communicating-in-the-information-age/ "ES2660 Official Website")
## Other reviews
1. [ZhongJun's Review](https://reviews.zhongjun.me/computing/es2660-communicating-in-the-information-age "ZhongJun's Review")
2. [Bernard's Review](https://bernardteo.me/nus/ES2660.html "Bernard's Review")
3. [Coconut Shibe's Review](https://kokonutshibe.wordpress.com/2019/12/01/nus-ay19-20-semester-2-module-review/ "Coconut Shibe's Review")
---
# GEH1034/GEC1010 Clean Energy and Storage
- **Canonical URL:** https://nus-guide.com/post/gec1010-geh1034-clean-energy--storage/
- **Published:** 2023-04-12
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** GEH1034, GEC1010, Clean Energy and Storage, NUS, National University of Singapore
- **Words:** 911
> A Review of GEH1034/GEC1010 Clean Energy and Storage AY22/23 Semester 2 at NUS including module information, useful links, ratings and resources for the module.
## Module information
Modern civilization, which on the one hand boasts of having discovered the behavior of subatomic particles, has also to its credit the impending intensified energy crisis and global warming. The urgent need to address these challenges has now become obvious. The course will acquaint students with the role of scientific development towards understanding the current global energy crisis and global warming. Emphasis will be given on how scientific progress has helped us in understanding the principle and development of various clean energy and storage technologies, their potential and applicability in present day scenarios and in shaping future energy systems.
This is the same module as `GEC1010`
Taken in AY22/23 Sem 2 under [Professor Nidhi Sharma](https://www.physics.nus.edu.sg/faculty/sharma-nidhi/ "Professor Nidhi Sharma")
### Schedule
1. Lectures: 4 hours a week (Tuesdays and Thursdays 2pm to 4pm)
2. Tutorials: Once every 2 weeks during lecture
### Module Breakdown
1. 2x 30 Qn MCQ (30% each)
2. Pair work Essay (15%)
3. Online Quiz (10%)
4. Group tutorials / Class Activities (15%)
There is no final exam for this module.
### Prerequisites
This module has no prerequisites
Preclusion: GEM1535, GEC1010, GEH1034
### Module Details
Topics covered
1. Background (Definition of energy, power, forms of energy, energy statistics, etc)
2. Science of conventional energy systems
3. Wind energy
4. Solar energy
5. Hydro energy
6. Geothermal energy
7. Biomass & Bio-fuels
8. Nuclear energy
9. Energy Storage
### Lectures
The lectures are conducted in person.
However, if you have a valid reason, you can email the Prof and obtain a online zoom link to view the lecture.
The lectures are conducted in a very relaxed manner.
The Prof is very friendly and approachable. She ofter provides us with working examples of what she is trying to show and explain them.
Sometimes she forgets to record the lecture so in person attendance is **highly recommended** to absorb the full lecture content.
### Tutorials
Tutorials are conducted in person during lecture slots.
Often these tutorials are very helpful for the weekly quizzes.
### Online Quiz
Every week (Starting from week 2), there is a take home quiz on Examplify.
The time given for each quiz is 2 hours open book with no internet.
2 hours is more than enough time to complete the quiz.
For practice, please take a look at the [Quizlet by me](https://quizlet.com/Wen_Junhua/folders/geh1034-clean-energy-and-storage?x=1xqt&i=4cggru "GEH1034 Quizlet") for practice questions for the quiz if you are unsure.
### Essay
The essay topic is given out way in advance and it is done in **pairs**.
We will get to choose our own pairs.
The word limit is 750 Words.
The topic given to us was the following.
**Can Clean Energy fight Global Warming? Gather information on how renewable energy can/unable to address global warming? Use some examples to support your point. Conclude the discussion with your personal opinion on this initiative**
### Tests
Both the tests are **Open Book** MCQ format on Examplify.
**Test 1 topics**: Chapter 1 to 4a (Solar Thermal)
**Test 2 topics**: Chapter 1, 2, 4b (Photovoltaic) to 9
The [Quizlet by me](https://quizlet.com/Wen_Junhua/folders/geh1034-clean-energy-and-storage?x=1xqt&i=4cggru "GEH1034 Quizlet") really helped me speed up my revision.
It includes the compiled quizzes, PollEv questions and concepts from the lecture notes.
Before the exam for preparation, I would recommend you to do the following:
1. Compile all the slides, quizzes and PollEv questions into a single document using a [PDF Combiner](https://github.com/Jh123x/PDF-Combiner "PDF Combiner"). (For easy searching)
2. For programmers, you can make a program that compiles all of the equations into a single code file.
1. During the exam, we are allowed to run the code to get the answers.
2. I have attached my version in the [Study Resources Section](#study-resources "Study Resources Section")
## Ratings
### Workload 3/10 (light workload)
Due to my background in a STEM course and coming from H2 Physics in JC, the formulas were relatively straightforward and easy to understand.
Not a lot of effort was required to complete the weekly quizzes and tests.
### Organization 9/10
The lectures and tutorials were very well organized.
The professor lectured on the topic in a very funny and easy to understand way.
She even bring props to class to show us the concepts of what she is teaching during the lecture.
### Learning 8/10
The learning environment is good. The lecture theatre is very conducive for learning.
The topics were not too hard and there was no need to memorize the content as the exams were open book.
As a result, I focused more on learning the actual content instead of stressing out over grades and memorizing the content.
### Enjoyment 10/10
As someone who was curious about clean energy and climate change, I definitely enjoyed the module.
It fills me with hope that we can solve the climate crisis with the help of science and technology.
It made my outlook on the future of global warming more optimistic.
### Usefulness 3/10
As I am not from the physics course, I do not find it very useful in my day to day life.
## Overall 8.5/10
Overall I definitely enjoyed the module and I would recommend it to anyone who is interested in clean energy and climate change, especially if you have a physics background.
It is also recommended to take this module in pairs for the essay
Expected Grade: `A-` to `A`
Actual Grade: `A`
## Useful links
### Study resources
1. [Quizlet By me](https://quizlet.com/Wen_Junhua/folders/geh1034-clean-energy-and-storage?x=1xqt&i=4cggru "GEH1034 Quizlet")
2. [Crash course climate and energy](https://www.youtube.com/watch?v=9PFhrpyWV-w "Crash course climate and energy")
3. [My Code used in exam](./code.py "Code used in exams")
### Supplementary resources / Textbooks
1. [Renewable Energy Focus Handbook, Elsevier 2008](http://energycrunch.pbworks.com/f/Renewable+Energies.pdf "Renewable Energy Focus Handbook, Elsevier 2008")
2. [Energy Science, Principles, Technologies and Impacts, J. Andrews and N. Jelley, Oxford University Press, 2007](https://cds.cern.ch/record/1019657/files/9780199281121_TOC.pdf "Energy Science, Principles, Technologies and Impacts, J. Andrews and N. Jelley, Oxford University Press, 2007")
3. [Fundamentals of Renewable Energy Process, Aldo V. Da Rosa, Elsevier Academic Press, 2005](https://www.researchgate.net/file.PostFileLoader.html?id=545b4859d685cc7d568b4651&assetKey=AS:273631781818368@1442250308228 "Fundamentals of Renewable Energy Process, Aldo V. Da Rosa, Elsevier Academic Press, 2005")
### External links
1. [GEH1034 NUSMods Link](https://nusmods.com/modules/GEH1034/clean-energy-and-storage "NUSMods Link for GEH1034 Clean Energy and Storage")
2. [GEC1010 NUSMods Link](https://nusmods.com/modules/GEC1010/clean-energy-and-storage "NUSMods Link for GEC1010 Clean Energy and Storage")
3. [PDF Combiner](https://github.com/Jh123x/PDF-Combiner "PDF Combiner")
4. [Crash course Climate and energy](https://www.youtube.com/watch?v=dhFlDkES6Ws&list=PL8dPuuaLjXtMx8ZIQV9NduU_HFjDwykuj&pp=iAQB "Crash course climate and energy")
---
# GEI1000/GET1031 Computational Thinking
- **Canonical URL:** https://nus-guide.com/post/gei1000-get1031-computational-thinking/
- **Published:** 2024-01-26
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** GET1031, Computational Thinking, NUS, National University of Singapore
- **Words:** 967
> A Review of GET1031 Computational Thinking AY21/22 Semester 1 at NUS including module information, useful links, ratings and resources for the module.
## Module Information
Computational thinking is increasingly being recognized as a fundamental problem solving method for everyone. Computational thinking involves problem formulation, solution development, and solution analysis, with a focus on computation and computational tools. This course emphasizes the computational thinking thought process and the communication of the process and the solutions, rather than implementation of the solution on a computer. Students learn to apply **computational** thinking to solve problems and discover new questions that can be explored within and across disciplines. Students are assumed to already possess elementary critical thinking and logical thinking aptitudes, which are practiced in this course.
~ NUSMods
\*If anyone sees this and can correct the typo on GET1031/GEI1000 please do it.
### Schedule
- Venue: Online (Zoom)
- Tutorial: 10am - 12pm, Wednesday
- Lectures: Online videos to be watched before the class starts.
### Module Breakdown
- Tutorial Participation
- Team Project
- Online Quiz
I kind of forgot what was the breakdown for the module.
### Pre-requisites
There are no pre-requisites for this module.
### Module Details
1. The Tourist Problem
2. Problem Formation
3. POLYA's Problem Solving Process
4. Algorithm Design
5. Real World Problems
6. Patterns and Recursion
7. Graph Problems
8. Searching and Sorting
9. Artificial Intelligence
10. Big Data and Data Science
### Tutorials
Tutorials are held online during the tutorial time slot.
During the tutorial, the teaching assistant discusses the tutorial questions that we were given for the week.
For my tutorial group, the the teaching assistant asks us to paste our answers for the week into different google docs and then goes through the answers them one by one.
He counted the tutorial participation by the number of answer submissions we made.
If we have to miss a tutorial class, we were required to inform our tutors beforehand and attend a makeup class instead.
Otherwise we would have 0 marks for that tutorial that we missed.
### Projects
For the project there were different milestones that we have to complete.
1. Milestone 1: Project Topic Proposal
2. Milestone 2: Project Tutorial
#### Milestone 1
For milestone 1, the goal is to come up with a project proposal to solve a difficult problem.
The problem must fulfill criterias below:
1. Related to real world issues
2. It should be identified as a good computational problem as discussed in the lessons
3. Not contain religious, ethical, political and philosophical topics.
4. Not contained within the lecture discussions (IE: Stated below) **Note: they can be transformations of the problems below**
- Tourist Problem
- Pancake Flipping Problem
- MRT Breakdown Problem
- Bus Congestion
- Hospital Appointment Scheduling
- Shortest Route Problem
- Goods delivery service
- Driver assignment
- Previous object allocation
- Establishing distribution centers
- Solving Rubik's cube
5. Specific enough to be solved within the time frame of the project
After deciding on the topic, we are required to write a topic proposal including the information below.
1. Team name
2. Team members' name
3. Project Title
4. Real World issue that our project solves
5. Possible Computation Problem
My group decided to do a topic on Vaccination Distribution Center Location Problem.
There is also a template provided by the teaching team for us to fill up our project.
#### Milestone 2
For milestone 2, we have to come up with a set of slides in the form of a tutorial to teach the class how to solve the problem that we have chosen.
For the introduction, we can include the following:
1. Computational Problem we are solving
2. Objectives of the Problem
3. Inputs and Outputs of the problem
4. Constraints of the problem
5. Optimization Criteria
6. Assumptions of the problem
We will then have to come up with an instance of the problem that we must then try to solve.
It must contain some edge cases that we have to consider when solving the problem for bonus points.
We will then go through our algorithm to solve the problem and stop at interesting points to show how our algorithm works.
At the end we must analyze our results/conclusion.
There will be a few tutorials for us to do this.
We will then have to iterate on what we have based on the feedback of the tutor.
For the final grading, the professor will sit in on the class and grade us based on our presentation.
## Ratings
### Workload (6/10)
The workload was relatively light.
I usually spend 1 hour before the class to complete the tutorials.
### Organization (7/10)
The module was relatively well organized.
However, I feel that if the student is not inclined towards computing, some of the later topics at the back of the module may be difficult to understand.
### Learning (8/10)
Initially, I felt that this might not be as helpful to someone from a computing background like me.
However, after I joined the class, I realize that some of the concepts that are taught in the class are very helpful for other modules which I plan to take.
Especially as someone from a computing background, I have learnt many new ways to think about the computational thinking.
This may be in terms of designing new algorithms or even just thinking about how to solve a problem.
### Enjoyment (9/10)
Personally, I enjoyed the class a lot.
It stretched my mind in terms of thinking and formalizing problem in a relatively low stress environment.
### Usefulness (9/10)
I will say that the module is very useful for anyone who wants to learn how to think about problems in a more structured way.
It also have an additional benefit of helping us transform real life problems into computational problems to be solved using algorithms.
## Overall
Overall I enjoyed the module and found it useful.
If you are a computing student, I will strongly recommend trying to program out the questions in the tutorials and the projects to make your life easier.
- Expected Grade: `A`
- Actual Grade: `A`
## Useful Links
- [NUSMods](https://nusmods.com/courses/GET1031/computational-thinking "GET1031 NUSMods Page")
- [Official Website](https://www.comp.nus.edu.sg/~get1031/ "GET1031 Official Website")
- [Week 0 GET1031 Activity](https://www.comp.nus.edu.sg/~get1031/activity/cattywampus/cattywampus.html "GET1031 Activity")
- [AST Tutorial Code](./tutorial_code.py "Tutorial Code")
- [My Group Project Code](./soln.zip "Project Code")
### Week 0 Video
[YouTube video](https://www.youtube.com/watch?v=VFcUgSYyRPg)
## Other Reviews
- [Shenaniganswpie Review](https://shenaniganswpie.wordpress.com/2019/06/12/get1031a-review/ "Shenaniganswpie Review")
- [Ramblingboutskule Review](https://ramblingboutskule.wordpress.com/2019/06/09/year-2-sem-1-ay18-19/ "Ramblingboutskule Review")
---
# GER1000/GEA1000 Quantitative Reasoning
- **Canonical URL:** https://nus-guide.com/post/ger1000-quantitative-reasoning/
- **Published:** 2023-11-12
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** GER1000, Quantitative Reasoning, NUS, National University of Singapore
- **Words:** 570
> A review of GER1000/GEA1000 Quantitative Reasoning AY19/20 Semester 1 at NUS including module information, useful links, ratings and places to look for resources for the module.
## Introduction
This course aims to equip undergraduate students with essential data literacy skills to analyse data and make decisions under uncertainty. It covers the basic principles and practice for collecting data and extracting useful insights, illustrated in a variety of application domains. For example, when two issues are correlated (e.g., smoking and cancer), how can we tell whether the relationship is causal (e.g., smoking causes cancer)? How can we deal with categorical data? Numerical data? What about uncertainty and complex relationships? These and many other questions will be addressed using data software and computational tools, with real-world data sets.
~ NUSMods
## Overview
During my time, this module was known as `GER1000` and was taught in a similar way to H2 maths and `ST2334` which I have taken during my university days.
### Project
There was also a list of projects that we can take on, during my year it was the following topics:
1. Fried food and death
2. Low Impact sports bones
3. Music on Cancer and pain
4. Weekend catch-up sleep is a lie.
5. Decision Fatigue
After we decided on a topic, we have to answer some questions
1. Section 1
1. What is/are the objectives and hypothesis/hypotheses of the study?
2. In short, what is the main finding in the primary source?
3. Who were the subjects studied? How many subjects were there? What sort of sampling
scheme was employed?
4. What were the eligibility criteria for inclusion in this study? Why were certain subjects
excluded?
5. What type of study is this? Is this a controlled experiment, or an observational study? If it’s
the former, please answer questions in section 2(i) after completing section 1; if it’s the latter,
please answer questions in section 2(ii) after completing questions in section 1. Answers to
the questions should be based only on the articles provided. We want to see critical thinking,
but do not expect you to possess domain specific knowledge of the topic.
2. Section 2(i): Do this portion if the study is a controlled experiment.
1. What characteristics were recorded before the start of the experiment?
2. What interventions did the treatment and control groups receive?
3. What are the main outcome measurements? How and when were they assessed?
4. How were the subjects assigned to control and treatment groups? (E.g., state the method
used to generate the random allocation sequence, type of randomisation, details of any
restriction such as blocking and block size).
5. Was treatment assignment blind to the subjects? How about the assessors?
3. Section 2(ii): Do this portion if the study is an observational study.
1. Is this a cohort study, case-control study, or some other design?
2. Describe the data collection process, including periods of recruitment, exposure, and follow
up.
3. What are the main outcome measurements? How and when were they assessed?
4. What confounders were controlled for by the researchers?
We were working in groups of 5 to 6 people.
**Note: Do note that some students are only in the course to CS/CU it.**
## Exams
The final exam was a MCQ quiz about the statistics and the content which are taught.
The content of the module was not very difficult.
The format made the papers even easier as we can solve it by elimination as well.
However, this resulted in a very skewed bell curve.
- Expected Grade: A
- Actual Grade: A-
## Useful Links
- [NUSMods](https://nusmods.com/courses/GEA1000/quantitative-reasoning-with-data "GEA1000 NUSMods")
- [Practice Paper](./notes/practice_paper.pdf "GER1000 Practice Paper")
## Tutorials
- [Tutorial 1 & Soln](./notes/Tutorial%201%20and%20solutions.pdf "GER1000 Tutorial 1 & Soln")
- [Tutorial 2 & Soln](./notes/Tutorial%202%20and%20solution.pdf "GER1000 Tutorial 2 & Soln")
- [Tutorial 3 & Soln](./notes/Tutorial%203%20and%20solutions.pdf "GER1000 Tutorial 3 & Soln")
- [Tutorial 4 & Soln](./notes/Tutorial%204%20and%20solution.pdf "GER1000 Tutorial 4 & Soln")
### Other Reviews
- [Hafeez's GEA1000 Review](https://izzhafeez.com/blog/mod-reviews/gea1000 "Hafeez's GEA1000 Review")
- [Bernard's GER1000 Review](https://bernardteo.me/nus/GER1000.html#:~:text=This%20module%20provides%20a%20basic,covered%20in%20very%20little%20depth. "Bernard's Review")
---
# GESS1025/GES1035 Singapore Imagining the Next 50 Years
- **Canonical URL:** https://nus-guide.com/post/gess1025-ges1035-singapore-imagining-the-next-50-years/
- **Published:** 2024-01-14
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** GEH1035, NUS, National University of Singapore, Imagining the Next 50 Years
- **Words:** 707
> A Review of GES1035 Singapore Imagining the Next 50 Years AY20/21 Semester 2 at NUS including module information, links, ratings and resources for the module.
In this review, I will be using the module code `GES1035` to refer to `GESS1025` as they are the same module.
## Module information
As an economically-developed nation with a diverse population, Singapore now confronts a range of socioeconomic issues, a rapidly ageing population, declining fertility rates, widening income inequality, and rising living costs amidst increasing global competition, technological advancements, and security threats. Singaporeans have also become a people with a greater propensity to participate in the decisions that affect the nation. This course aims to encourage undergraduates to reflect on Singapore’s post-independence history, imagine the kind of Singapore they would like to co-create, and deliberate on the ways to achieve the future visions they have for Singapore. All lectures will be mounted online.
~ Taken from NUSMods
### Schedule
1. Lectures: Asynchronous Online Lectures
### Module Breakdown
1. Open Book Individual Quiz **30%**
2. Group Presentation and Tutorial Participation **30%**
3. Presentation Group Writeup **20%**
4. Critical Reflection **20%**
### Prerequisites
There are no prerequisites for this module.
### Module Details
The topics for this module are as follows:
1. Singapore in the World
2. Population
3. Economy
4. Security and Threats
5. Diversity, Social Integration and Urban Environment
6. Aspirations and Identity
This is graded on a CS/CU basis.
### Lectures
The lectures are all uploaded online, and you can watch them at your own pace.
Each topic are taken by lecturers from different Universities on different topics.
### Tutorials
Tutorials happen once every 2 weeks and there are 6 tutorials in total.
For each of the tutorial sessions, we will have to complete one mandatory reading.
There are also optional readings for us if we have the time to read them.
During tutorials, there will be 1 group conducting the presentation and the other can ask questions.
Asking questions for the group constitutes the tutorial participation marks.
### Group Presentation
In out presentation, we will have to propose and describe an organization that we will create to solve a problem in Singapore.
This will have to critically address what our group collectively considers as a compelling problem in Singapore based on the topic of the week.
The presentation will be at MOST 20 minutes long.
After the presentation other groups will have 10-15 minutes to discuss the topic and ask questions/give comments on the presentation.
My group managed to snag the 1st presentation slot and presented on Population.
I feel that this is the best time slot due to the following reasons:
1. There are no exams during this period of time for other modules.
2. It is the part of the semester where workload for most modules are low.
### Presentation Group Writeup
After the presentation, we will have to do an academic writeup of the presentation.
There are 3 main parts of the writeup:
1. Introduction: Describe how the problem is important and how we plan to solve it.
2. Body and main sections: Main points from our research
3. Conclusion: Summary of our points in the body and consider the implications of our findings.
### Critical Reflection
For each of the tutorials, we have to email our reflections to our tutors at the start of each tutorial section.
We have to include the following information
1. Discussion group
2. Name
3. Reflection on the tutorial topic (100-200 words)
There is no need to attach any attachments, we can just directly type it into the email directly.
### Individual Quiz
This is equivalent to the "finals" for GES1035.
It consists of 6 short questions based on all the topics covered in the module.
## Ratings
### Workload (5/10) Light
The workload for this module is relatively light, the reflections have a very low word limit and can be done immediately after the reading
### Organization (N/A)
As each of the topics are kind of disjointed, it is hard to see how the topics are related to each other.
### Enjoyment (7/10)
Given that it is a CS/CU module, I kind of enjoyed the slow learning pace of this module.
### Usefulness (6/10)
I feel that this module teaches us the different issues which Singapore faces and how we can solve them.
## Overall (8/10)
I feel that this module is a good module to take to for your GE requirements.
The module is relatively easy and the workload is light.
There is almost no stress as it is also CS/CU
## Useful links
1. [Zhong Jun's Review](https://reviews.zhongjun.me/other/ges1035-singapore-imagining-the-next-50-years "Zhon Jun's Review")
2. [plus2sd's Review](https://2sd-over-mu.home.blog/2018/12/08/ges1035-module-review/ "plus2sd's Review")
3. [NUSMods](https://nusmods.com/courses/GESS1025/singapore-imagining-the-next-50-years "GES1035 NUSMods")
---
# Guide to NUS Student/Alumni Benefits
- **Canonical URL:** https://nus-guide.com/post/nus-benefits/
- **Published:** 2025-10-20
- **Last modified:** 2025-10-20
- **Author:** Jh123x
- **Tags:** NUS Guide
- **Keywords:** NUS Benefits, NUS Alumni Benefit, NUS Student Benefit
- **Words:** 521
> A guide to make full use of your NUS Student / Alumni benefits.
## Introduction
As a NUS Alumni, I recently discovered that there was a NUS collaboration with Codecrafters.
NUS Students/Alumni can get a CodeCrafters membership for free.
This inspired me to create this blog post to consolidate all the different benefits that being a NUS Student/Alumni offers.
## Benefits
### Courses
| Benefit | Description | Applicability | Link |
| ------------ | --------------------------------------------------------------------------------------- | ------------------- | ------------------------------------------------------------------------------------------ |
| CodeCrafters | Free membership for NUS Students/Alumnis for 1 year | NUS Students/Alumni | [CodeCrafters NUS Link](https://codecrafters.io/nus "CodeCrafters NUS Collaboration Link") |
| Coursera | Free access for some courses on Coursera. Create an account with your NUS email address | NUS Students/Alumni | [Coursera NUS Link](https://www.coursera.org/ "Coursera Link") |
### Software
| Benefit | Description | Applicability | Link |
| -------------------- | ---------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Adobe Creative Cloud | Free access to Adobe Creative Cloud | Any Student | [Adobe Creative Cloud Page](https://www.adobe.com/sg/creativecloud/buy/students.html "Adobe Creative Cloud Page") |
| Canva Education | Free access to Canva Pro | Any Student | [Canva Education Page](https://www.canva.com/education/ "Canva Education Page") |
| Endnote | Free access to EndNote | NUS Student | [NUS Software Page](https://nusit.nus.edu.sg/services/software_and_os/software/software-for-student/ "NUS IT Software Page") |
| Github Education | Free Github Pro + Other Perks | Any Student | [Github Education Page](https://github.com/education "Github Education Page") |
| Microsoft Office 365 | Free access to Microsoft Office 365 for NUS Students | NUS Student | [NUS Software Page](https://nusit.nus.edu.sg/services/software_and_os/software/software-for-student/ "NUS IT Software Page") |
| Reference Manager | Free access to Reference Manager | NUS Student | [NUS Software Page](https://nusit.nus.edu.sg/services/software_and_os/software/software-for-student/ "NUS IT Software Page") |
| Mathematica | Free access to Mathematica | NUS Student | [NUS Software Page](https://nusit.nus.edu.sg/services/software_and_os/software/software-for-student/ "NUS IT Software Page") |
| Matlab | Free access to Matlab | NUS Student | [NUS Software Page](https://nusit.nus.edu.sg/services/software_and_os/software/software-for-student/ "NUS IT Software Page") |
| Mubi | Discounted price for Mubi | Any Student | [Mubi Student Page](https://mubi.com/en/sg/student "Mubi Student Page") |
| Notion | Free access to Notion | Any Student / Alumni | [Notion Education](https://www.notion.com/product/notion-for-education "Notion Education Page") |
| OriginPro | Free access to OriginPro | NUS Student | [NUS Software Page](https://nusit.nus.edu.sg/services/software_and_os/software/software-for-student/ "NUS IT Software Page") |
| Spotify Student Plan | Cheaper individual plans for students | Any Student | [Spotify Student Plan](https://www.spotify.com/sg-en/student/ "Spotify Student Plan") |
| Trend Micro Apex One | Free access to Trend Micro Apex One | NUS Student | [Trend Micro Apex One NUS Page](https://nusit.nus.edu.sg/its/services-its/apex-one/ "Trend Micro Apex One NUS Page") |
| VMock | Free access to VMock | NUS Students/Alumni | [VMock NUS Page](https://nus.edu.sg/cfg/students/career-resources/vmock "VMock NUS Page") |
| Youtube Premium | Cheaper student prices for Youtube Premium | Any Student | [Youtube Premium Student Plan](https://www.youtube.com/premium/student "Youtube Premium Student Plan") |
### Health
| Benefit | Description | Applicability | Link |
| ------------------------ | -------------------------------------------- | ------------- | ----------------------------------------------------------------------------------------- |
| NUS Health Insurance | Free Health Insurance for full time students | NUS Students | [Health Insurance](https://www.nus.edu.sg/uhc/billing-insurance/health-insurance) |
| NUS Counselling Services | Free counselling services for NUS Students | NUS Students | [NUS Counselling Services](https://www.nus.edu.sg/counselling "NUS Counselling Services") |
### Entertainment
| Benefit | Description | Applicability | Link |
| ------------------------------------- | ------------------------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------- |
| Lee Kong Chian Natural History Museum | Free admission for NUS Students/Staff | NUS Students | [Lee Kong Chian Natural History Museum](https://lkcnhm.nus.edu.sg/plan-your-visit/ "Lee Kong Chian Natural History Museum") |
### Finance
| Benefit | Description | Applicability | Link |
| --------------------------- | --------------------- | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| DBS Live Fresh Student Card | A Student Credit Card | SG Local Students | [DBS Live Fresh Student Card](https://www.dbs.com.sg/personal/cards/credit-cards/live-fresh-dbs-visa-paywave-500-card "DBS Live Fresh Student Card") |
### Items
| Benefit | Description | Applicability | Link |
| --------------- | ----------------------------------------------------------------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| Acer | Discounted Acer Products | Any Student | [Acer Student Discount](https://store.acer.com/en-sg/student-solutions "Acer Student Discount") |
| Apple | Discounted Apple Products + Free Gifts for Students | Any Students | [Apple Store Discount](https://www.apple.com/sg-edu/store "Apple Store Student Discount") |
| Charles & Keith | 10% Discount on all regular priced items | Any Student from a supported school | [Charles & Keith Student Discount](https://www.charleskeith.com/sg/studentdiscount "C&K Student Discount Page") |
| Dell | Discount Dell Products | Any Student | [Dell Student Page](https://www.dell.com/en-sg/lp/students "Dell Student Page") |
| HP | Discounted HP Products | Any Student | [HP Student Page](https://www.hp.com/sg-en/shop/student-registration "HP Student Registration Page") |
| Pedro | 10% Discount when creating an account with your student email | Any Student from a supported school | [Pedro Student Discount](https://www.pedroshoes.com/sg/studentdiscount "Pedro Student Discount") |
| Samsung | Discounted Samsung Products + Free Gifts | Any Student/Alumni w Email access | [Samsung Student Page](https://www.samsung.com/sg/offer/student-discounts/ "Samsung Student Discounts") |
| Sony | Discounted Sony Products. Sign up with email with suffix `edu.sg` | Any Student | [Sony Page](https://store.sony.com.sg/blogs/promotions/student-portal/ "NUS Student Page") |
### Travels
| Benefit | Description | Applicability | Link |
| ------------------ | ------------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Singapore Airlines | Discounted Flights for Students | Any Students | [Krisflyer for Students](https://www.singaporeair.com/en_UK/sg/ppsclub-krisflyer/krisflyer/krisflyer-students/ "Krisflyer for Students") |
## Websites with Other Disounts
- [Unidays](https://www.myunidays.com/SG/en-SG "Unidays"): For other discounts on physical products, you can use this website to find out more.
- [Divedeals](https://divedeals.sg/blog/student-deals-and-discounts-in-singapore "Dive deal student discounts"): For Deals and discounts in Singapore
- [Microsoft Learn](https://learn.microsoft.com/en-us/credentials/certifications/student-discounts "Microsoft Student Certifications"): Microsoft Certification Discount
---
# Inter-domain routing & BGP
- **Canonical URL:** https://nus-guide.com/post/bgp/
- **Published:** 2022-11-23
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS4226
- **Keywords:** Networking, Internet, CS4226, Internet Architecture, BGP, Border Gateway Protocol, Computer Networks
- **Words:** 2426
> More about Inter-domain routing and Border Gateway Protocol (BGP) including information and useful links to help you when you take the module.
This blog post assumes that you have read / know about the topics mentioned in the previous blog post.
If you have not taken a look at the previous post, you can do so [here](/post/internet-interconnection/).
## Introduction
The internet is a network of network consisting of over 50,000 Autonomous Systems (AS) that connect to each other using IXPs and Peering.
Within each AS, they make use of intra-domain routing protocols such as OSPF and BGP to route traffic within their own network.
The networks within each AS are usually small.
As a result, intra-domain routing protocols usually send large information about each router to each other to route traffic between them.
Between ASes, they make use of inter-domain routing protocols such as BGP to route traffic between each other.
There are a large number of routes advertised by each AS.
Using intra-domain routing protocols for inter-domain routing would be inefficient and would require large amounts of memory within each router.
## Challenges of Inter-Domain routing
There are 3 main factors that make inter-domain routing challenging:
1. Scale
1. Around the world, there are millions of routers and over 200,000 prefixes
2. 35,000+ self operated networks and 50,000 Autonomous Systems
2. Privacy
1. ASes do not want to expose internal topologies or business relations with neighbors
3. Policy
1. There is no internet wide notion of a link cost metric
2. Each AS controls where it sends traffic and who can send traffic through it
## Types of Routing algorithms
Routing algorithms can be classified into 2 main categories:
1. Link State Algorithms
2. Distance Vector Algorithms
### Link state algorithms
Link state algorithms send complete topology and link cost information over the network.
The information is then centralized within each router and the shortest distance to each node is computed using Dijkstra's Algorithm
An example of this is the intra-domain routing protocol Open Shortest Path First (OSPF).
However, there are some limitations of Link-State routing
1. Topology information is flooded
1. This incurs high bandwidth and storage overhead
2. Nodes also sends sensitive information
2. Entire path is computed locally per node
1. This results in a high processing overhead when the network is large
3. Minimize notion of total cost
1. This only works of the policy is shared and uniform among all the routers running the protocol.
### Distance Vector Algorithms
Distance Vector Algorithms send known neighbors and link cost information over the network.
They make use of decentralized algorithms to compute the shortest distance to each node (Bellman Ford Algorithm).
An example of this is the intra-domain routing protocol Routing Information Protocol (RIP).
Some benefits of this approach include:
1. Hides details of the network topology
2. Only next hop is determined per node
However, there are some limitations of Distance Vector routing
1. It minimizes the notion of total distance
2. The time taken to converge is also very long
### Path-Vector Routing
Based on the above, a possible solution for inter-domain routing is by extending the Distance Vector Algorithm approach.
By extending the distance vector routing, path-vector routing routing is born.
The key idea is to advertise the entire path taken to reach a destination instead of just the next hop.
Information about the distance metric per destination and the entire path for each destination is sent between routers.
This allows for many advantages:
1. Faster loop
1. To detect loops, a single node can check if the next hop consists of itself
2. If such a path is found, the advertisement is discarded
2. Flexible routing policies
1. Each router can decide how to route traffic based on the path advertised
## Border Gateway Protocol (BGP)
Border Gateway Protocol (BGP) is an inter-domain routing protocol that is used to exchange routing information between ASes.
It is the de facto standard for inter-domain routing.
It allows subnets to advertise its existence to the rest of the internet while also allowing ASes to determine good routes to other networks based on reachability and policies.
## 2 Types of BGP
There are 2 types of BGP:
1. Interior BGP (iBGP)
2. Exterior BGP (eBGP)
### Interior BGP (iBGP)
iBGP propagates reachability information across the backbone of an AS.
It carries the ISP's own customer prefixes.
This is used when the neighboring router is within the same AS.
It does not require the routers to be directly connected.
Intra-domain routing protocols such as OSPF and RIP are used to take care of internal BGP connectivity.
iBGP peers must be full meshed (logically).
In other words, they must have an intra-domain routing protocol to connect to each other (Or each router is physically connected to all other routers in the AS).
iBGP then run on top of the Intra-domain routing protocol to distribute reachability information from external ASes to each of the individual routers.
A similar analogy will be how UDP runs on top of Ethernet.
### Exterior BGP (eBGP)
eBGP exchange reachability information from neighboring ASes and implement routing policies.
This happens between BGP Speakers from different ASes which are directly connected.
When `AS A` advertises a prefix to `AS B`, `AS A` is promising that it will forward the packet towards that prefix.
ASes can aggregate prefixes in its advertisements.
### Summary

To make things clearer, we will make use of the diagram above and the table below to explain their differences.
| Protocol | Purpose | Scenario |
| ---------------------- | ---------------------------------------------------------- | ------------------------------------------------------------ |
| IGP (OSPF, RIP, IS-IS) | Distribute internal routes to one another | When Advertising Router B to Router A & Router A to Router B |
| iBGP | Distribute external routes to internal routers (Using IGP) | When Advertising Router C to Router B |
| eBGP | Distribute routes from 1 AS to another | When Advertising Router A & B to C and Router C to Router A |
## How does BGP work?
### BGP Message Format

A BGP message consists of the following:
| Field | Size | Purpose |
| ------ | ------------------ | ----------------------------------------------------------------------------------- |
| Marker | 16 bytes of all 1s | For compatibility with old BGP versions with no semantic in the current BGP version |
| Length | 2 bytes | Length of the message |
| Type | 1 byte | Type of the message |
Depending on the type, the message will have different fields.
### BGP Messages
There are 4 types of messages sent by BGP
| Type | Name | Purpose |
| ---- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| 1 | Open | Opens a TCP connection to the peer and authenticates sender |
| 2 | Update | Sends routing information to the peer (Advertise new paths / withdraw old paths) |
| 3 | Notification | Sends a notification to the peer and reports errors in the previous message, also used to close connections (e.g. Malformed Message) |
| 4 | Keep Alive | Sends a keep alive message to the peer to keep the TCP connection alive (Also acts as ACK for OPEN) |
One interesting thing to note is that paths have no timeout in BGP, they are actively withdrawn or replaced.
### BGP Flow

The diagram above shows the states of a BGP session between 2 routers.
1. Idle
1. This is the first state where BGP waits for a start event
2. Sets up ConnectRetry timer
3. Connects to remote BGP neighbor to establish a connection
4. Listens for a connection from the remote BGP neighbor
2. Connect
1. BGP waits for a TCP handshake
2. If it is successful it moves to the OpenSent State.
3. If it fails, it goes to the active state
4. If the ConnectRetry times out, it stays in this state
5. Else, it goes to the Idle state
3. Active
1. BGP will try a second TCP Handshake
2. If successful, it moves to the OpenSent State
3. If ConnectRetry Timer expires, goes back to connect state
4. Listens for incoming connection.
5. Else, goes to Idle state
4. OpenSent
1. BGP waits for an open message from the remote BGP neighbor.
2. If there are errors in the message, it responds with a BGP notification msg and goes to idle
3. This is the section where BGP decides if they are using eBGP or iBGP.
4. If everything is ok, BGP sends keep alive messages and the lower value of keep alive is used
5. If the TCP session fails, BGP goes back to active state
6. If there are any other errors, BGP sends notification msg with the error code and goes to idle.
7. Once everything is sent, BGP goes to the OpenConfirm state
5. OpenConfirm State
1. BGP waits for a keep alive message
2. When we receive the keep alive message, we move to the established state
3. Timer is reset
4. If a BGP notification is received, go to idle
6. Established
1. The BGP neighbor adjacency is complete. BGP routers will send update packets to exchange routing information.
2. Every time a keep alive or update message is received, the timer is reset.
3. If a BGP notification message is received, go to idle
## BGP Path Attributes
BGP uses a list of path attributes which describes the path to the destination.
They fall into 4 categories
1. Well-Known Mandatory
2. Well-Known Discretionary
3. Optional Transitive
4. Optional Non-Transitive
There are also implementation rules that goes with this categories
1. Implementations must recognize all well-known attributes
2. Mandatory attributes must be included within UPDATE messages that contain Network Layer Reachability Information (NLRI)
3. Once a BGP peer updates well-known attributes, they must pass them on to other peers
### Common Path Attributes
| Attribute | Category | Purpose |
| --------------------- | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| Origin | Well-Known Mandatory | Conveys the origin of the prefix. Either (i) IGP, (e) EGP, or (?) Incomplete or Unknown Source. |
| AS_PATH | Well-Known Mandatory | Contains the ASes which NLRI has passed through. |
| NEXT_HOP | Well-Known Mandatory | Indicates the IP address of the router in the next hop |
| LOCAL_PREF | Well-Known Discretionary | This is used to select external BGP path preferences for a route. The higher the local preference, the more preferred the path becomes |
| ATOMIC_AGGREGATE | Well-Known Discretionary | Used to notify downstream BGP routers of suppressed routes |
| AGGREGATOR | Optional Discretionary | |
| COMMUNITY | Optional Transitive | Community tags are used to group multiple destinations together. This is very useful in applying policies within and between ASes. |
| MULTI_EXIT_DISC (MED) | Optional Transitive | Used to identify multiple entry points to a neighboring AS to control inbound traffic. If received over eBGP, it will not be propagated to other ASes |
## Entries in forwarding tables
1. Routers are first aware of the destination prefix (Through BGP advertisements)
2. Router then determines the output port for the IP prefix (Choose best inter-as route, use IGP to determine the best intra-as route & identify port number for best route)
3. Router enters the prefix-port pair in the forwarding table
There might be multiple entries for the same prefix in the forwarding table.
The router will make a decision on which route to use.
When a packet is received, the router looks up the forwarding table to see where the packet should be forwarded to.
## Hot Potato routing
By default, BGP routers will use Hot Potato routing to route packets.
### What is Hot Potato Routing?
Hot Potato routing is a routing protocol where the router will forward the packet to the closest route outside the current AS.
An analogy is passing a hot potato among a group of friends. Everyone will want to pass it on to the next person as soon as possible.
Similarly, an AS will find the shortest route out of the AS into another external AS as soon as possible.
**Note:** This may sometimes lead to longer paths from source to destination as the closest path out of the AS might not be the lowest cost for sending the packet from source to destination.
## BGP Decision making process

As shown in the diagram above, when there is an inbound advertisement, it is first filtered by the import policies before being handed over to the Adjacent Routing Information Base (RIB) in.
The router then selects the best path to be installed within the local RIB.
The paths from the local RIBs will then pass through a set of export policies to the Adjacent RIB out before the update is sent out to other peers.
## BGP Policies
There are 2 sets of policies in BGP:
1. Import policies
2. Export policies
There are 3 different attributes that routers can make use of to tune their BGP policy
1. Preferences: Add / Delete / Modify Attributes
2. Filtering: inbound/outbound filtering
3. Tagging: Adding community attributes
### Import policies
Import policies serve the following roles
1. Filter unwanted routes from neighbors (EG: Prefixes not owned bu customers)
2. User to prioritize routes
3. Influence path selection
### Export policies
Export policies serve the following purpose
1. Filter routes that you do not want to tell your neighbors (EG: Export only customers routes so others don't route traffic through you)
2. Manipulate attributes to control what others see (EG: Make routes look longer)
## BGP Policies in practice
In practice, BGP policies are used by ISPs to:
1. Fulfill bilateral agreements with other ISPs
2. Minimize Monetary costs (Maximize Revenue)
3. Ensure good performance for customers
We will now examine each relation and see how policies can be applied to maintain the relationship.
### Customer-Provider Relation
Customers pay the Provider for access to the internet.
In terms of policies, this translates to:
1. Export customer routes to everyone
2. Customer exports provider routes to their customers
### Peer-to-Peer Relation
Peers exchange traffic between their customers
In terms of policies, this translates to:
1. Peers Exports only customer routes to each other
2. Peers export their other peer's routes to customers
## Attacks on BGP
We will be discussing 2 main attacks on the BGP protocol
1. BGP Prefix Hijacking
2. BGP Sub prefix Hijacking
### BGP Prefix Hijacking
This happens when an attacker router advertises the same route as the origin router.
Traffic which is closer to the attacker router will be redirected to the attacker router.
### BGP Sub prefix Hijacking
This happens when an attacker router advertises a more specific prefix.
Every AS picks the bogus route for that prefix as the longest matching prefix is used.
Traffic is redirected away from the origin AS.
### Follow up on hijacking
After Hijacking the IP address, the attacker can do one or more of the following.
| Name | Action | Consequence |
| ------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| Black hole | Data for the traffic is discarded | This results in the loss of the service to affected customers |
| Snooping | Data is inspected before it is redirected to the origin server | Traffic can be captured and information might be sniffed |
| Impersonation | Attacker replies the message | The attacker replies the message as per usual and fake replies are sent to the user. |
## Preventing Hijacking
A common practice to prevent hijacking is to filter routes announced by its customers based on the prefixes that the customer owns. This prevents them from advertising prefixes which they do not own.
However, some routes do not implement this practice as it is hard to filter routes which are very far away from the origin. As a result, BGP is still vulnerable to hijacks.
There are up and coming technology used to stop hijacking:
1. Route Origin Authentication (ROA)
2. Resource Public Key Infrastructure (RPKI)
We will not be going through them in this blog post. (Maybe in a future blog post?)
## References
- [BGP Neighbor Adjacency States](https://networklessons.com/bgp/bgp-neighbor-adjacency-states "BGP Neighbor Adjacency States")
- [X-Raying BGP](https://www.catchpoint.com/blog/bgp-explained "X-Raying BGPw")
- [Hot Potato and Cold Potato Routing](https://en.wikipedia.org/wiki/Hot-potato_and_cold-potato_routing "Hot potato and cold potato routing")
- [BGP Local Preference Attribute](https://ipwithease.com/bgp-local-preference-attribute/ "BGP Local Preference Attribute")
---
# Internet Interconnection
- **Canonical URL:** https://nus-guide.com/post/internet-interconnection/
- **Published:** 2022-11-23
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS4226
- **Keywords:** Networking, Internet, CS4226, Internet Architecture
- **Words:** 1440
> How nodes on the internet connects to one another to form the internet that we know and love today. Learn all about it in this post.
This blog post is made to help me study for my upcoming CS4226 exams. Lets find out how the internet works!
## Autonomous Systems (AS)
An autonomous system is a network of interconnected routers that are identified by a unique AS number (ASN).
They are controlled by a single administrative domain and use common routing protocols and policies.
The most commonly used protocol on the internet is the Border Gateway Protocol (BGP)
They are the fundamental units that make up the internet.
## What is the architecture of the internet?

The structure of the internet is a network of networks. At the center of all of this is a small number of well connected Tier 1 networks. These Tier 1 networks are the backbone of the internet.
Some content providers (EG: Google, Netflix, etc) connect their own private networks that connects themselves to the internet, often bypassing the Tier 1 and regional networks.
## AS Topology

The routers within an AS does not have to be connected to each other directly.
As you can see in the above diagram, `AS X` is separated by `AS Y` but they are still part of the same AS.
## What does it look like?
You can see the current AS topology here: [Internet Topology](https://www.caida.org/projects/as-core/pics/2020/ascore-2020-ipv4-standalone.png "Internet Topology 2020 from CAIDA")
The redder the color, the more connected the AS is to the rest of the internet.
The top 3 ASes (as of 2020) are as follows:
1. Level 3
2. Arelion
3. Cogent Communications
Another interesting thing is that Singtel is actually within the top 20 at 16th place with AS number 7473. It also contains 5.39% of the world's IP address.
You can see the rankings yourself [here](https://asrank.caida.org/ "CAIDA rankings").
## Internet Peering
Internet peering is a voluntary interconnection of administratively separate Internet Networks for the purpose of exchanging traffic between the customers of each network.
### Why will they peer with each other.
There are various reasons why ASes would want to peer with each other.
Here are the list of some of the reasons:
1. They have a customer-provider relationship
2. They have discussed a peer-to-peer agreement
**Note:** Customers do not need to have AS Numbers.
Based on this relations, ASes can be classified further into 2 categories:
1. Transit AS
2. Non-Transit AS
### Transit AS vs Non-Transit AS
An AS is a transit AS when traffic from outside your AS is routed through your AS to another outside AS. In this case your AS is a transit AS. When setting up such a network, the network administration must all the eBGP peer to communicate with other eBGP peers.
An AS is a non-transit AS when traffic from outside your network is not allowed to connect to any network that is inside your current network. As a network admin, you will only allow traffic from inside your network to connect to the outside world and the traffic from the outside world to connect to your internal devices.

Let's say `AS X` wants to route traffic to `AS Z`. `AS X` will send the traffic to `AS Y` and `AS Y` will send the traffic to `AS Z`. In this case, `AS Y` is a transit AS. Assuming `AS X` and `AS Z` do not route traffic to anyone else, they are Non-Transit ASes.
Some examples of Transit ASes are Level 3, Arelion, Cogent Communications, etc. Some examples of Non-Transit ASes are content providers like Google, Netflix, Schools etc.
Other than just being a transit AS or a non-transit AS, you can also be a selective transit AS.
A selective transit AS is an AS that allows transit from a selective few while blocking transit from others.
### Customer-Provider relationships
In this relation, customers pay provider for access to the internet and to be reachable from anyone.

The provider routes the traffic of the customers to the internet. However, the customer does not help to route provider traffic through its networks.
We can say that the provider provides transit service to the customer.
A customer can also have 2 providers, this is called multi-homing. When one network goes down, they can make use of the other network.
### Peer-to-Peer relationships
Peer to peer relationships are when 2 ASes have agreed to exchange traffic between each other.
They provide transit between their respective customers but do not provide transit from one peer to a separate peer.
Often, these agreements are free (settlement-free).

In the example above, `Peer 1` has a peering agreement with `Peer 2` and `Peer 3`. However, `Peer 2` does not have a peering agreement with `Peer 3`.
If customer 1 wants to send data to customer 2, it will go through the peer network between `Peer 1` and `Peer 2`. This will be similar between customer 1 and 3.
However, if customer 1 wants to send data to customer 3, it will not go through any peer connections. In this case he will not be able to send data to customer 3.
Peering provides shortcuts between different customers and result in less traffic to the providers between the ASes
### Choosing the appropriate relations
Many ASes have the dilemma of choosing between a customer-provider relationship or a peer-to-peer relationship.
Advantages of peer to peer
1. Reduce upstream transit cost
2. Improve end-to-end performance
3. Might be the only way to connect customers (For Tier 1 ISPs)
Advantages of customer-provider
1. Rather have them pay for the connection
2. Peers are usually competition
3. Peering relationships require periodic renegotiation
Peering agreements are usually confidential and one of the most contentious issues in the ISP world.
## ISP / AS Tier list
### Tier 1 ISPs
Tier 1 ISPs generally:
1. Have access to the entire internet through settlement free peering
2. Have no upstream provider
3. Peer with other Tier 1 ISPs to form a full mesh
There are only 10-12 ASes that are Tier 1 ISPs.
### Lower tier ISP
Lower tier ISPs generally:
1. Usually provide transit to their downstream customers but have at least 1 provider upstream.
2. Have national or regional coverage
There is only a few thousand ASes which are considered lower tier ISPs.
### Stub ASes
Stub ASes generally:
1. Do not provide transit services
2. Only connect to upstream providers
This is similar to a customer with an AS number.
A large majoring of all the ASes fall into this category.
## Notable Peering Disputes
Here are a list of notable disputes due to peering.
1. [Cogent-Telia Peering Wars](https://archive.nanog.org/meetings/nanog43/presentations/Zmij_Brown_peeringwars_N43.pdf "Cogent-Telia Peering wars")
2. [Cogent-Level3 Peering War](https://archive.ph/20120907145307/http://www2.prnewswire.com/cgi-bin/stories.pl?ACCT=104&STORY=/www/story/10-07-2005/0004163871&EDATE "Cogent Level3")
To see even more disputes, you can refer to the [Anatomy of Internet Peering Disputes](https://arxiv.org/pdf/1409.6526.pdf "Anatomy of Internet Peering Disputes") paper.
## Internet Exchange Points (IXP)
Internet exchange points are an open and neutral location where ASes can freely interconnect to exchange traffic.
They are similar to an ethernet switch for ASes and are often found in neutral locations.
### Why do we need IXP
Imagine n different providers, each wanting to peer with each other.
If they laid out cabling to connect to each other, they will have to lay out (n-1) \* n cables.
In the long run when there are more and more peers, the amount of cables will increase more and more.
This is where IXPs come in.
Instead of laying cables to each other directly, they can now all lay cables to a neutral location where they are connected to each other (similar to an ethernet switch).
### Goals of IXP
The goals of an IXP include:
1. Save upstream transit costs
2. Keep local traffic local
3. Better network performance and Quality of Service
4. Better scalability (See above)
### How to join an IXP
Any network which has its own address space, AS number and transit agreements can join an IXP.
Each member brings their own router to the IXP and connects it to the switch at the IXP.
### Architecture of an IXP

The diagram above shows a simplified architecture of an IXP.
The IXP have a series of core routers which help to route traffic between each of the IXPs.
### Choosing a location for an IXP
Here are some of the criteria used to choose a location of an IXP
1. Neutral
2. Secure
3. Accessible
4. Safe
5. Expandable
An example of good IXP locations are:
1. Carrier Neutral Data Center
2. Universities
3. Tech Parks
Bad locations include:
1. ISP data center
1. It is not neutral
2. Government data center
1. There might be a security risk
3. Cable Landing Station
1. Physical access might be difficult
### How to Operate an IXP
Operations of an IXP must be carried out by a neutral party.
Usually they make use of a consortium model which consists of a management board with representative members of each of the members.
The costs are usually covered equally by all the participants and other services by the IXP.
You can see a list of real world IXPs [here](https://www.internetexchangemap.com/ "IXP List").
## References
- [CAIDA AS Rankings](https://asrank.caida.org/ "CAIDA")
- [What is Internet Peering (Kentik)](https://www.kentik.com/kentipedia/what-is-internet-peering/ "What is internet peering by Kentik")
- [How does an IXP work](https://www.cloudflare.com/learning/cdn/glossary/internet-exchange-point-ixp/ "How does an IXP work")
- [IXP Design](https://conference.apnic.net/34/pdf/apnic34-ispixp-networkdesign_1346077403.pdf "IXP Design")
- [Internet Topology](https://www.caida.org/projects/as-core/pics/2020/ascore-2020-ipv4-standalone.png "Internet Topology 2020 from CAIDA")
---
# Introduction to Distributed Hash Tables
- **Canonical URL:** https://nus-guide.com/post/distributed-hash-tables/
- **Published:** 2022-11-23
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS4226
- **Keywords:** Networking, Computer Networks, Distributed Hash Tables, DHT, CS4226, Internet Architecture
- **Words:** 1773
> An Introduction to Distributed Hash Tables. This is part of my learning notes for CS4226 Internet Architecture at NUS School of Computing.
After taking a look a peer to peer systems in the [previous blog post](/post/peer-to-peer-networks/ "Peer to Peer Networks post"), let us look at some key technologies which speeds up the lookup service in peer to peer systems.
In this blog post, we will be looking at distributed hash tables.
## Searching and Addressing
Before diving into distributed hash tables, let us first look at how we do searching and addressing in general.
There are 2 ways to find objects, depending on:
1. How the network is formed
2. Where objectives are places
3. How objectives can be found efficiently
Examples include:
1. Google search (Searching)
2. DNS / IP Routing (Addressing)
3. Napster (Searching)
4. Gnutella (Searching)
5. KaZaA (Searching)
6. BitTorrent (Addressing)
## Searching VS Addressing
Addressing:
1. Object location can be made efficient
2. Each object is uniquely identifiable
3. Need to know unique names
4. Need to maintain structure required for addressing
Searching:
1. No need to know unique names (More user friendly)
2. Hard to make efficient
3. Need to compare actual objects to know if they are the same
## 2 Types of P2P Networks
Unstructured P2P Networks:
1. Cause the need for searching
2. Does not mean complete lack of structure (Can have graphs structure like power-law, hierarchy, etc)
3. Peers are free to join anywhere, choose neighbors freely.
4. Objects are stored anywhere
**Structured networks**
1. Allows for addressing, deterministic routing
2. Network structure determines where peers belong in the net and where objects are stored.
In this blog, we will be focusing on how distributed hash tables (DHTs) can be used to build structured networks.
## A Key Value store
It is a type of database which contains entries in the form of (key, value) pairs.
The key is typically the ID (EG: Name of a person, IP Address)
The value is the usually the data (EG: Phone number of a person)
Key value stores usually consists of 2 operations:
1. `Put(key, value)`
2. `Get(key)`
It looks something like the table below
| Name | Contact |
| ----- | -------- |
| John | 12345678 |
| Mary | 87654321 |
| Bob | 12345678 |
| Alice | 87654321 |
The naive implementation takes O(N) to find the location of an object. Can we do better?
## Hash Tables
Hash tables are data structures that map keys to values.
They contain fixed size buckets that allows for O(1) lookup time, deletions and insertions.
A hash function maps keys to the hash buckets with the desirable properties.
They are usually fast to compute and distribute keys uniformly across the buckets.
## Distributed Hash Tables
Similar to normal hash tables, distributed hash tables borrow the idea of hash tables and distribute buckets to peers.
The core question is how to find out which peer is responsible for which hash bucket and how to route traffic between peers.
## Principles of DHTs
1. Each node is responsible for one or more buckets
1. As nodes join and leave, the responsibility changes
2. Nodes communicate among themselves to find the responsible node
1. Scalable communications makes DHTs efficient
3. DHTs support all the hash table operations.
## Implementation of DHTs
In this blog post, we will be looking at 2 different implementation of DHTs
1. Chord (2001)
2. CAN (2001)
There are many other examples of DHTs but they are all based on the same abstractions.
- Store key-value pairs
- When given a key, can retrieve/store the values
- No semantics associated with key or value
The major differences are in the design of the namespace and the routing in the overlay.
## Chord
It is a DHT algorithm designed by MIT in 2001. This is algorithm is used in P2P storage systems.
It uses the SHA-1 Hash function in practice
This results in at 160-bit object/node identification.
The same hash function is used for both objects and nodes
- Node IDs are hashed from IP addresses
- Object IDs are hashed from object names
They are organized in a ring which wraps around
The nodes themselves keep track of predecessors and successors
### Assigning indices
Each identifier is represented using m bits (In the case of SHA-1 160 bits).
The convention used by Chord is to assign objects to the node that has the closest identifier that is larger than the object's identifier.
The closest in this case is the immediate successor.
Imagine we use a hash functions that outputs a number from 1 to 5. It will result in a space that is similar to the one below.

Given if there is a node at position 2 and 4 and treating intermediate as moving as a clockwise manner in the diagram:
- Node 2 will be responsible for the objects 5 and 1.
- Node 4 is responsible for 2, 3 and 4.
This is because Node 2 is the first immediate node that is available after 5 and 1. Similarly, Node 4 is the first immediate node that is available after 2, 3 and 4.
### Searching for keys
However, if we follow trace the nodes linearly when searching for the key, we will end up with a linear search which runs in O(N) time. This is not ideal when the hash table is large and the number of nodes is very large.
Chord adds shortcuts in the form of a finger table to make the searching more efficient.
- Each node n maintains a finger table that includes at most m shortcuts (Where m is log(n)).
- The ith finger/shortcut is at least 2^(i-1) apart from the previous finger.

In the example, the color nodes indicates that nodes are filled by peers (Nodes 1, 4, 5).
In this case, the finger table for node 1 will be:
| Start | Interval | Node |
| ----- | -------- | ---- |
| 2 | [2, 3) | 4 |
| 3 | [3, 5) | 4 |
| 5 | [5, 1) | 5 |
It is the first available node which is larger than the start of the interval.
**Note** that the node itself is not included within the finger table as it knows where to find itself.
Similarly, the finger table for node 4 will be:
| Start | Interval | Node |
| ----- | -------- | ---- |
| 5 | [5, 6) | 5 |
| 6 | [6, 0) | 1 |
| 0 | [0, 4) | 1 |
And the finger table for node 5 will be:
| Start | Interval | Node |
| ----- | -------- | ---- |
| 6 | [6, 7) | 1 |
| 7 | [7, 1) | 1 |
| 2 | [1, 5) | 1 |
When looking up a value within a certain interval, a node will simple look for the node that is assigned to that region in the finger table.
Let us walk through how to search for a key using the same example above. The diagram is replicated below for your convenience.

Lets say node 5 wants to find the value for key 3. This are the steps it will take to find the node containing the resource.
1. Node 5 will look at its finger table and find the node responsible for the interval, in this case it is node 1.
2. Node 5 will then ask node 1 to find the value for key 3.
3. Node 1 will check its finger table and find the node responsible for the interval, in this case it is node 4
4. Node 5 will then query node 4 to find the value for key 3 and finds it in node 4.
As we can see from the process, each time there is a query, the number of nodes that needs to be queried is reduced by half. This will reduce the runtime for this algorithm to O(log(N)) instead of O(N) previously.
## Node join
When a new node, n, joins the network, the following happens
1. Node n is initialized
2. Other nodes will be notified to update their predecessors and finger tables. (Only those who are affected)
3. Node n takes over responsible keys from its successor
For the initialization, the node n can check if the `ith` entry in the finger table is correct for the `i+1th` entry. This results in `O(log(N)log(N))` time.
## Node Leave
To handle node departure, each node is required to know the IP address of its 2 successors. Each node periodically pings its two successors to see if they are alive.
Given the example below, if node 5 leaves:

1. Node 4 will detect that it is unable to ping node 5.
2. It will then make 1 its immediate successor and ask node 1 who its immediate successor is.
3. It makes node 1's immediate successor its second successor.
4. It will update its finger tables.
The re-establishment of the finger tables will take `O(log(N)log(N))` time.
## CAN
Scalable content-addressable network (CAN) is a DHT algorithm designed by the University of California, Berkeley in 2001 and is published within the same conference as Chord.
The namespace of CAN is a d-dimensional torus. This means that the nodes are arranged in a d-dimensional grid and the edges wrap around.
A 1-dimensional torus can be thought of as a ring.
A 2-dimensional torus can be thought of as a plane with edges that wrap around (EG: (0,0) is beside (0, n) and (n, 0)).
Each node keeps track of its neighbors only and there is no need to store shortcuts.
Traversing between nodes will be similar to traversing through a d-dimensional euclidean space.
### Searching for keys
Assuming a 2 dimensional euclidean space, each node contains 4 neighbors, 2 for each axis.
For each dimension in CAN, there will be one hash function responsible for hashing the keys.
By passing the object through each of the hash functions, we can determine the coordinate for the object.
Based on the direction of the coordinate, the node knows which direction to traverse in.
For example, if the node is at (0, 0) and the key is at (1, 1), the node will traverse to the right first before traversing up.
Routing takes in the worst case `O(dn^(1/d)) for d dimensions and n nodes.
### Node Join
When a new node joins, it will randomly choose a coordinate (x, y) and will be assigned to the node at (x, y).
By traversing from the other peer, it will find the current node assigned to the coordinate and splits the node in half.
Now the new node owns one half and the old node owns the other half.
When a new node joins, the split occurs along the x dimension first before the y dimension. In the 2 dimensional space, each zone is a square or a 1 by 2 narrow rectangle.
### Node Leave
When a node leaves, the nodes merge back to a neighbor if possible. Otherwise, a neighbor node might need to temporarily handle multiple zones.
### Extensions
The runtime of CAN depends on the dimensionality of the implementation.
By increasing the dimension beyond the 2nd dimension, the routing table size and hash functions increases linearly according to the number of dimensions but the path to reach a coordinate is reduced.
Although routing takes `O(dn ^(1/d))`, the average path length is `O((d/4) * n ^ (1/d))` as only half the nodes will need to be traversed in an average case.
## References
- [What is a distributed hash table](https://www.educative.io/answers/what-is-a-distributed-hash-table "What is a distributed hash table")
- [Chord (Peer-To-Peer)]( "Chord Peer-To-Peer")
---
# Job Guide: A Job/Internship Hunting Guide for NUS Students in Singapore
- **Canonical URL:** https://nus-guide.com/post/job-internship-hunting/
- **Published:** 2024-06-05
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Job Guide
- **Keywords:** Job, Internship
- **Words:** 713
> A guide to help NUS students in their job and internship hunting process.
In this post, we will be sharing some tips and resources to help NUS Students in their job and internship hunting process.
This guide will be updated as we find more resources that are useful for NUS students.
This post will be updated regularly with new resources and tips, so do check back often for the latest updates!
## Preface
Before we dive into the resources and tips, here are some things to note:
1. **Job Hunting is a Numbers Game**: The more applications you send out, the higher your chances of getting an interview. Don't be discouraged by rejections, keep applying!
2. **Networking is Key**: Reach out to alumni, friends, and family for job opportunities. Attend career fairs and networking events to expand your network.
3. **Tailor Your Resume and Cover Letter**: Make sure your resume and cover letter are tailored to the job you are applying for. Highlight relevant experiences and skills.
## Brushing up your resume
Your resume is the first impression you make on a potential employer, so it's essential to make it stand out.
Write a main resume that includes all your experiences and skills.
This will be your master resume that you can refer to when tailoring your resume for specific job applications.
It can span multiple pages and include all your experiences, skills, and achievements.
When applying for a job, refer to your master resume and select the most relevant experiences and skills to include in your tailored resume.
## Asking for Referrals
Do not be afraid to ask for referrals from friends, family, alumni, or even strangers who work in the company on Linkedin.
Referrals can significantly increase your chances of getting an interview.
If you are afraid of asking for referrals, employees in the company might even make posts with their referral links to get you to apply.
You can simply look for them through searching on Linkedin or other job related platforms.
## Resources
The following are some resources that can help you in your job and internship hunting process
### Internal NUS Resources
1. [NUS TalentConnect](https://nus-csm.symplicity.com/students/ "NUS TalentConnect"): NUS TalentConnect is a platform where NUS students can find job and internship opportunities.
2. [CFG Career Events](https://nus.edu.sg/cfg/archive/2024/career-events "CFG Career Events"): Check out the career events organized by the Centre for Future-ready Graduates (CFG) for networking and job opportunities.
3. [CFG Career Advisory](https://nus.edu.sg/cfg/students/career-ready/career-advisory "CFG Career Advisory"): Get career advice and guidance from the Centre for Future-ready Graduates (CFG).
4. [VMock](https://nus.edu.sg/cfg/students/career-resources/vmock "VMock"): Use VMock to get instant feedback on your resume and improve your chances of getting shortlisted.
### Job Search Platforms / Job Boards
1. [LinkedIn](https://linkedin.com/ "LinkedIn"): A professional networking platform where you can find job opportunities and connect with professionals in your field.
2. [Indeed](https://indeed.com/ "Indeed"): A job search engine where you can find job listings from various companies.
3. [JobStreet](https://jobstreet.com.sg/ "JobStreet"): A job search platform that focuses on job opportunities in Singapore.
4. [MyCareersFuture](https://mycareersfuture.sg/ "MyCareersFuture"): A government-run job portal where you can find job opportunities in Singapore.
5. [SGCareers](https://sgcareers.com.sg/ "SGCareers"): A job search platform that focuses on job opportunities in Singapore.
6. [JobsDB](https://sg.jobsdb.com/Internship-jobs "JobsDB"): A job search platform where you can find job and internship opportunities in Singapore.
7. [InternSG](https://www.internsg.com/ "InternSG"): A platform that lists internships/jobs in Singapore.
8. [My Job Board](https://jh123x.com/job_board/ "Job Board"): A job board that I keep updated for job opportunities.
9. [Singapore Tech Internships](https://github.com/sushinoya/singapore-tech-internships "Singapore Tech Internships"): A GitHub repository that lists tech internships in Singapore.
### Comparing Jobs / Job Information
1. [Levels.FYI](https://www.levels.fyi/ "Levels.FYI"): A website that compares salaries and compensation packages for different tech companies.
2. [Blind](https://www.teamblind.com/ "Blind"): An anonymous community app for the workplace. You can find salary information and company reviews here.
3. [NodeFlair](https://www.nodeflair.com/ "NodeFlair"): A platform that helps you compare job offers and compensation packages. It generally focuses on tech jobs.
4. [Glassdoor](https://www.glassdoor.com/ "Glassdoor"): A website where you can find company reviews, salary information, and interview questions.
5. [My GES Analysis / Statistics](https://jh123x.com/ges/2023/overall/ "GES Analysis"): A website that provides statistics on the Graduate Employment Survey (GES) for NUS, NTU, SMU, etc.
### Other Guides
1. [MoneySmart](https://blog.moneysmart.sg/career/fresh-graduate-jobs-singapore/ "MoneySmart"): A guide on how to write resume and other tips.
2. [Woke Salaryman](https://www.jobstreet.com.sg/career-advice/article/stuff-wish-knew-fresh-graduate "Woke Salaryman"): A post by Woke Salaryman on things they wish they knew as a fresh graduate.
3. [Advise for fresh grads from a recruiter](https://www.randstad.com.sg/career-advice/tips-and-resources/career-advice-for-fresh-graduates-from-a-recruiter/ "Advise for fresh grads from a recruiter"): A post by Randstad on career advice for fresh graduates.
### Experiences
1. [My Experience](https://jh123x.com/blog/2023/my-job-search/ "My Experience"): My Personal Experience
## Conclusion
We hope that this guide has been helpful to you in your job and internship hunting process.
If you have any suggestions, resources, or tips that you would like to share, feel free to reach out to me on any of my socials.
---
# My Computing journey in NUS.
- **Canonical URL:** https://nus-guide.com/post/nus-journey/
- **Published:** 2023-08-28
- **Last modified:** 2025-10-20
- **Author:** Jh123x
- **Tags:** NUS Experience
- **Keywords:** NUS Experience, NUS Computing Experience
- **Words:** 2734
> Join me as I recall my Computing journey in NUS from start to finish AY2019-AY2023, including the modules I took, lessons learnt and other tips and tricks.
## My experience
This is my experience in NUS CS throughout the 4 years.
I went in as an Information Security student, transferred in year 1 to CS and graduated as a CS student.
For those who want to see my timetable schedule, [skip to the end here](#my-schedule-in-soc "My Timetable in SoC")
## Before the start of school
### Mods Taken
- CS1010X Programming Methodology
- CS2030 Programming Methodology II
### Experience
Before talking about the lessons learnt, let me share my journey in NUS Computing.
My journey started during My NS, I took an online course DEV330x: Introduction to Python: Creating Scalable, Robust, Interactive Code (Easier than CS50 because I legit could not understand the content).
Shortly after, I enrolled in CS1010X Programming Methodology during [iBlocs](https://www.nus.edu.sg/ibloc/iBLOC.html "iBlocs Official Website") under Prof Ben and Prof Tan.
It takes 1 full semester before the start of school.
When I took it, it covered CS1010s content with a little bit of C programming.
Frankly, it was the best decision I have made during my time in CS.
Having the full 6 months to actually grind the content of CS1010X really helped me understand some of the harder concepts like recursion, higher order functions and pointers.
There were days were I spent the entire day looking at the content because I really could not understand it.
Although it was tough, I really enjoyed the process of learning and understanding the content.
Halfway through CS1010X, the applications for special terms opened up and I took the chance to apply for CS2030.
There was an acceptance process and I was lucky to be accepted to take CS2030 in the special term.
Although the special term lasts 6 weeks, it really helped that I had friends who took the course with me.
Through them, I learnt the content much faster and learnt more from them than the lectures themselves.
It was here where I was convinced to switch to Computer Science instead of studying Information Security.
The modules were similar and in Computer Science, I have the flexibility of choosing other specializations which I wanted to study for.
**Note:** Information Security students will have a way easier time getting the modules from my experience compared to CS students, especially for popular ones like [IFS4103 Penetration Testing Practice](https://nusmods.com/courses/IFS4103/penetration-testing-practice "IFS4103 Penetration Testing Practice") and [IFS4105 Digital Forensics](https://nusmods.com/courses/IFS4105/digital-forensics "IFS4105 Digital Forensics").
I also took part in Freshman Orientation Camp, however, it clashed with my CS2030 classes and I had to skip the class to attend camp.
The camp was quite fun and there were many activities to do, I really recommend it if you want to socialize and make friends before the start of semester.
**Note:** Special Semester classes are paid (800~900 SGD per module) and are not covered by the tuition grant, however, you can pay them with $$ from your [PSEA account](https://www.moe.gov.sg/financial-matters/psea "PSEA Account").
### Lessons Learnt
1. Taking CS1010X before the start of school really helped me understand not just the content of CS1010X but also programming as a whole.
2. Camps were a great way to socialize with others and make friends.
3. Do not go for camps that clashes with classes (if possible), there were other camps available that did not clash with classes.
4. Taking up an easy programming course before the start of school really helps with the foundation.
## Year 1
### Mod Taken
**Semester 1:**
- CFG1002 Career Catalyst
- CS1231 Discrete Structures
- CS2040C Data Structures and Algorithms
- CS2107 Introduction to Information Security
- GER1000 Quantitative Reasoning
- MA1521 Calculus for Computing
- PLS8002 Cultivating the Self
**Semester 2:**
- CS2100 Computer Organization
- CS2105 Computer Networks
- GEQ1000H Asking Questions
- IS1103 Ethics in Computing
- LAJ1201 Japanese 1
- MA1101R Linear Algebra I
### Experience
To facilitate the change of major, I took courses which were relevant to Computer Science.
As I was afraid of my CAP tanking, I took CS2040C Data Structures and Algorithms to replace CS2040S when I transfer to Computer Science eventually.
I chose to take CS2040C before transferring course as i would have an easier time coping in the course with students who are not majoring in computer science.
Taking CS2107 Introduction to Information Security was also a great decision as I realized my interest in Information Security.
I realized that they were created by a [NUS Greyhats](https://nusgreyhats.org/ "NUS Greyhats Website") and I joined them towards the end of Year 1.
This made me want to stay as information security specialization as I wanted to learn more about it.
GEQ and GER were preallocated to me in Sem 1 and Sem 2 respectively.
This was also the semester to plan on which specializations I wanted to take in order to get the most out of double mapping as possible.
IE: CS4239 which I took in my future semester counts towards both Security and Software Engineering specializations. These kind of modules allows you to get specializations without with a lower MC count.
During the holidays from Year 1 to Year 2, I took part in Orbital (Apollo Level) to try and make a game out of python entirely with a teammate. Although I was very happy with the outcome of the project.
If I can re do it again, I will rather make it in Unity instead and improve on the game mechanics and other parts of game design instead. (I spent most of my time making the core functions of the game like the menu design tools, how to load in the sprites, etc)
Towards the end of Sem 2 it was the COVID semester where everything was online.
The mods were in chaos and we had to study for the exams on our own.
Life was tough and I was not able to cope well with the change.
Thanks to COVID S/Us my mods were not adversely affected.
### Lessons Learnt
1. Take more GE/SUable mods in Year 1 to ensure that I can SU them if I do badly.
2. I did not study as hard as I should for LAJ1201 as I should ~~LAJ1201 is full of smurf (My Copium)~~.
3. CS2100, CS2105 and CS2107 were build ups to CS3235 which I will want too take eventually for my Security Specialization.
4. PLS8002, CFG1002 are S/U by default so I took it just for the extra MC Count.
- For more S/U able mods, you can check out my collated list [here](/post/cs-cu-guide/ "NUS CS/CU Mods")
5. Pick an orbital project that goes in the direction of what you want to learn.
6. For those who want to take a similar route and change course, remember to do it near exam week (otherwise you will have to wait 1 more semester to change course).
## Year 2
### Mods Taken
**Semester 1:**
- ALS1010 Learning to Learn Better
- CS2101 Effective Communication for Computing Professionals
- CS2103T Software Engineering
- CS2106 Introduction to Operating Systems
- LSM1306 Forensic Science
- ST2334 Probability and Statistics
- CS4238 (Audit Unofficially)
**Semester 2:**
- CS2102 Database Systems
- CS3235 Computer Security
- DYOM1401 Machine Learning In Practice
- ES2660 Communicating in the Information Age
- GES1035 Singapore: Imagining the Next 50 Years
**Holidays:**
- Student Internship Programme (SIP) at Shopee Pte Ltd
### Experience
In year 2, the COVID semester continues.
I took the final prerequisite to CS3235 (CS2106) and took CS3235 in the second semester to start clearing my information security modules.
In CS, there was also a Science requirement where every CS student have to take a relevant science module as part of our graduation requirements.
I chose to take forensic science to fulfill that requirement.
I am not sure if it is still eligible to fulfill the requirement now, but if it is I definitely recommend it as it is a very interesting module.
In the second semester, everything was slowly moving back to school again as the COVID situation was getting better.
I saved an S/U for ES2660 as I was not confident in my ability to write essays. However, luckily for me, I did not need to use it.
CS2102 (not a requirement for me) really make my cap tanked and I was unable to S/U it.
However, I felt that it was useful for me further down the line as learning how SQL worked helped me in many of the projects which I had to undertake in the future.
I also took on an internship during my year 2 holidays.
This internship is the first real "job" that I have taken.
I really wish that I could have visited the office more often as it was really nice.
However, due to COVID restrictions, I was unable to do so.
### Lessons learnt
1. There is no need to save too many S/Us after year 1 as there were not much modules left to SU anymore.
- Please check how many modules you have left to S/U before saving the S/U for it.
- Spoiler alert: I end up not using any of the S/Us that I have saved
2. Taking an early internship not only helped me with my portfolio but also helped me understand the concepts that I have learnt in school more effectively.
- Communication is very important between you and your colleagues and your boss.
## Year 3
### Modules taken
**Semester 1:**
- CS3203 Software Engineering Project
- CS3219 Software Engineering Principles and Patterns
- CS4239 Software Security
- GET1031 Computational Thinking
- CS4238 Computer Security Practice (Dropped in week 2)
Part time internship during semester
**Semester 2:**
- CS3230 Design & Analysis of Algorithms (COMP 550)
- CS3244 Machine Learning (COMP 562)
- GE1704 Geog Exchange mod (MASC 101)
- POLI 100 (Some 2k Pol Science mod I cant rmb)
**Holidays**
- Internship at DSO National Laboratories
**Start to look for FYP Projects to take**
### My experience
The first semester is the hardest semester of my life.
Taking 3 project modules with a part time internship was definitely not an ideal situation on my side.
The workload for CS3203 was heavier than expected on my side.
I was also taking CS3219 and CS4239 at the same time which was a bad idea.
I spent 1-2 days on the stuff on my part time internship every week.
Most of my time other time was spent on CS3203 with some intermittent time in between on CS3219 and CS4239.
The tutorials for my GET was mostly done 1-2days before the tutorial.
Coming from CS background, the tutorials were mostly understandable and I made code snippets to help me solve the questions instead of computing them manually.
After the hard grind in semester 1, I was rewarded with an exchange program in semester 2.
This was a very good lesson learnt as well as a life changing experience.
I had a very close group of friends whom we share different experiences together and traveled around.
It was also excellent character development for me as I learnt to be independent and it was really a test of my character.
We went on many trips and had a wide variety of experiences.
I came back just in time to start my internship at DSO National Laboratories for my 2nd SIP.
### Lessons Learnt
1. Do not take 3 project modules in 1 semester with part time internship.
2. Choose your teammates wisely
- I was lucky to have good group mates for the most part.
3. Go on exchange, it is a great life changing experience.
4. Take a later internship to spend more time on exchange.
## Year 4
### Modules Taken
**Semester 1:**
- CP4101 BComp Dissertation (FYP)
- CFG1003 Financial Wellbeing
- CS3103 Computer Networks Practice
- CS4225 Big Data Systems for Data Science
- CS4226 Internet Architecture
- CS3243 Introduction to Artificial Intelligence (Dropped)
- CS2107 TA
**Semester 2:**
- CP4101 BComp Dissertation (FYP)
- CFG1004 Financial Wellbeing
- CFG3001 Career Advancement
- CS3223 Database System Implementation (Dropped with W Grade)
- GEH1034 Clean Energy & Storage
### My Experience
My FYP started a little earlier during the middle of my internship.
It is a Software Development project to make a program to make learning Python Easier.
I also found CFG1004 about investing and budgeting. In order to take it I have to take CFG1003 (0MCs)
CS3103 and CS4226 completes my networking specialization.
I wanted to take CS4225 as it was a relatively more relaxed module and to complete my database specialization.
However, in semester 2, I wanted to focus on my FYP as my CAP was at stake of dropping out of FCH.
As a result I dropped CS3223.
CFG3001 and CFG1004 were surprisingly useful for me personally.
GEH1034 was also very interesting and the prof was very passionate about it.
It was a relatively slacker final semester where I focused on my FYP and chilling before graduation.
### Lessons Learnt
1. If you want to graduate 1 semester later, please leave one of your GEs to the final semester.
- I've heard that SoC can let you graduate once you have cleared your requirements and might not be able to stay another semester.
2. Take CFG1003 and CFG1004 if you are interested in budgeting and investing.
3. For those who were taking final year project, there is no need to be TOO stressed about the result.
- Just do your best and the result will come.
- I was over worrying about my FYP and it was not worth it.
4. I should have taken more useful mods like Parallel Programming and other algorithms related module to learn more about the field.
## General Lessons
Note that these is what worked for me.
It might not work for you and you should find your own way of studying if that is the case.
1. Read module reviews before taking them.
- Try to look for similar content and have a little taste before actually taking the module
2. Join CCAs to socialize and make friends.
- Even though school is tiring, finding friends to share the pain together will make it more bearable.
3. More time spent on studying does not mean better results
- This is especially true for me as I am a slow learner.
- I need to re do the same thing a few times to understand fully what is going on.
- 12 hours of studying with 4 hours of sleep is not as effective as 8 hours of studying with 8 hours of sleep.
- Don't just read slides, do practices with questions from the content to train your brain to recall.
- For programming related modules, do more practices and get familiar with the different types of questions.
4. For modules with not much past year papers / questions.
- Make quiz lets to help you remember the content.
- Re do tutorial questions and understand the concepts
- Try to think of other applications of the same question
5. Mark deadlines down early
- We might lose track/forget about them if we do not mark them down.
6. University is not all about studying, sometimes we just have to have some fun and unwind.
- Go out with friends, play games, watch movies, etc.
- Do not overwork yourself and burn out.
## My Schedule in SoC
### Pre NUS (8 MCs)
- CS1010X Programming Methodology
- CS2030 Programming Methodology II
### Year 1 Sem 1 (23 MCs)
- CFG1002 Career Catalyst
- CS1231 Discrete Structures
- CS2040C Data Structures and Algorithms
- CS2107 Introduction to Information Security
- GER1000 Quantitative Reasoning
- MA1521 Calculus for Computing
- PLS8002 Cultivating the Self
### Year 1 Sem 2 (24 MCs)
- CS2100 Computer Organization
- CS2105 Computer Networks
- GEQ1000H Asking Questions
- IS1103 Ethics in Computing
- LAJ1201 Japanese 1
- MA1101R Linear Algebra I
### Year 1 Sem 2 Special Term (4MCs)
- CP2106 Orbital
### Year 2 Sem 1 (22MCs)
- [ALS1010 Learning to Learn Better](/post/als1010-learning-to-learn-better/ "ALS1010 Review")
- [CS2101 Effective Communication for Computing Professionals](/post/cs2101-effective-communication-for-computing-professionals/ "CS2101 Review")
- CS2103T Software Engineering
- CS2106 Introduction to Operating Systems
- LSM1306 Forensic Science
- ST2334 Probability and Statistics
- CS4238 (Audit Unofficially)
### Year 2 Sem 2 (20MCs)
- [CS2102 Database Systems](/post/cs2102-database-systems/ "CS2102 Review")
- [CS3235 Computer Security](/post/cs3235-computer-security/ "CS3235 Review")
- [DYOM1401 Machine Learning In Practice](/post/dmy1401tt-machine-learning-in-practice/ "DYOM1401 Review")
- [ES2660 Communicating in the Information Age](/post/es2660-communicating-in-the-information-age/ "ES2660 Review")
- [GES1035 Singapore: Imagining the Next 50 Years](/post/gess1025-ges1035-singapore-imagining-the-next-50-years/ "GES1035 Review")
- CS2107 TA
- CS2103T Student Mentor
### Year 2 Holidays (6 MCs)
Student Internship Programme (SIP) at Shopee Pte Ltd
### Year 3 Sem 1 (20MCs)
- [CS3203 Software Engineering Project](/post/cs3203-software-engineering-project/ "CS3203 Review")
- [CS3219 Software Engineering Principles and Patterns](/post/cs3219-software-engineering-principles-and-patterns/ "CS3219 Review")
- [CS4239 Software Security](/post/cs4239-cs5439-software-security/ "CS4239 Review")
- [GET1031 Computational Thinking](/post/gei1000-get1031-computational-thinking/ "GET1031 Review")
- CS4238 Computer Security Practice (Dropped in week 2)
Part time internship during semester
### Year 3 Sem 2 (Exchange at University Of North Carolina At Chapel Hill) (16MCs)
- CS3230 Design & Analysis of Algorithms (COMP 550)
- CS3244 Machine Learning (COMP 562)
- GE1704 Geog Exchange mod (MASC 101)
- POLI 100 (Some 2k Pol Science mod I cant rmb)
Went on many trips :D
### Year 3 Holidays (6 MCs)
Student Internship Programme (SIP) at DSO National Laboratories
### Year 4 Sem 1 (22 MCs)
- [CP4101 BComp Dissertation (FYP)](/post/cp4101-b.comp.-dissertation/ "CP4101 Review")
- [CFG1003 Financial Wellbeing](/post/cfg1003-financial-wellbeing-introduction/ "CFG1003 Review")
- [CS3103 Computer Networks Practice](/post/cs3103-computer-networks-practice/ "CS3103 Review")
- [CS4225 Big Data Systems for Data Science](/post/cs4225-big-data-systems-for-data-science/ "CS4225 Review")
- [CS4226 Internet Architecture](/post/cs4226-internet-architecture/ "CS4226 Review")
- CS3243 Introduction to Artificial Intelligence (Dropped)
- CS2107 TA
### Year 4 Sem 2 (20 MCs)
- [CP4101 BComp Dissertation (FYP)](/post/cp4101-b.comp.-dissertation/ "CP4101 Review")
- [CFG1004 Art & Science and Investing](/post/cfg1004-financial-wellbeing---art-and-science-of-investing/ "CFG1004 Review")
- [CFG3001 Career Advancement](/post/cfg3001-career-advancement/ "CFG3001 Review")
- [CS3223 Database System Implementation (Dropped with W Grade)](/post/cs3223-database-system-implementation/ "CS3223 Review")
- [GEH1034 Clean Energy & Storage](/post/gec1010-geh1034-clean-energy--storage/ "GEH1034 Review")
---
# NUS Exchange Mod Mapping
- **Canonical URL:** https://nus-guide.com/post/exchange-mapping/
- **Published:** 2023-06-25
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** NUS Guide
- **Keywords:** NUS, Guide, Exchange Program, Module Mapping
- **Words:** 247
> NUS Exchange Mod Mapping guide. A list of modules which can be mapped over to NUS modules from overseas universities.
Many of my juniors are going on exchange programs to have fun abroad, but I noticed that they struggle to find equivalent courses for their majors. That's why I decided to write this blog post to help them out.
Hope this helps others who come across this post too.
I will be linking the mappings for each of the faculties when I went for my exchange program.
[Embedded content](https://docs.google.com/spreadsheets/d/1q2ICOBPwwiR5iBvZTNUot81afkm1-VVNZrIt3PjGglc?gridlines=false&range=A1:Z100)
- [A consolidated list of mappable modules on google sheets](https://docs.google.com/spreadsheets/d/1q2ICOBPwwiR5iBvZTNUot81afkm1-VVNZrIt3PjGglc/edit?usp=sharing "List of modules which can be mapped on exchange.")
- [Report missing mappings](https://forms.gle/RNu4vw5HBAXfm4Ys7 "Form to update the mappings").
- [Missing Mappings](https://docs.google.com/spreadsheets/d/16OTsYm3n4B6i_R42_Qien75IZnPyO4In0oFF1IRcVV0/edit?usp=sharing "SEP Mapping Responses")
There is also a link to google forms for the consolidated version of this mapping.
Feel free to make a copy of it for yourself or even suggest updates when required.
You can contact me via linkedin or just using the google forms
I will also be talking about my own experience during my exchange program (academic wise) in upcoming blog posts.
## Things to note
1. The modules which can be mapped over might not be available in the semester that you are taking them
2. The list of mapping is non-exhaustive, we can create our own mappings and get them approved via EduRec
3. If there is a module that does not map to anything in NUS, you can apply for faculty dummy codes to get them approved in EduRec.
## Useful links
- [NUS SEP Website](https://www.nus.edu.sg/gro/global-programmes/student-exchange "NUS SEP Website")
- [Computing SEP Website](https://www.comp.nus.edu.sg/programmes/ug/beyond/global/ "Computing SEP Website")
- [Science SEP Website](https://www.science.nus.edu.sg/undergraduates/study-abroad-programmes/outgoing/student-exchange-programme-sep/ "Science SEP Website")
- [CDE SEP Website](https://cde.nus.edu.sg/isem/student-exchange-programme-sep/module-mapping/ "CDE SEP Website")
- [Biz SEP Website](https://bba.nus.edu.sg/student-experience/exchange-programmes/about-us/ "Biz SEP Website")
- [FASS SEP Website](https://fass.nus.edu.sg/student-exchange-programme-sep/ "FASS SEP Website")
- [List of partner universities](https://www.nus.edu.sg/gro/global-programmes/student-exchange/partner-universities "List of SEP Partner Universities")
- [FASS SEP Admin Slides](https://fass.nus.edu.sg/wp-content/uploads/2020/07/SEPAdminmatters_SEP.pdf "FASS SEP Admin Slides")
## Other Exchange program reviews
- [NUS CNM Society Guide](https://www.nus-cnm.com/post/what-i-wished-i-had-known-before-exchange "NUS CNM Society Guide")
---
# NUS Guide to CS/CU Modules
- **Canonical URL:** https://nus-guide.com/post/cs-cu-guide/
- **Published:** 2023-02-09
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** NUS Guide
- **Keywords:** NUS, Guide, S/U, NUS SU, S/U, CS CU, Pass Fail Mods, NUS CS CU mod, NUS CS CU mods, NUS Pass Fail Modules
- **Words:** 4058
> A guide to all CS/CU Modules (Classes) within the National University Of Singapore (NUS). It will be updated as more CS/CU Modules are added.
There have been many blog posts out there which discusses whether we should S/U our modules or not.
However, we can also take mods which are S/U by default without wasting our precious S/U slots.
I have compiled a list of modules that I have taken and their respective grades.
I hope that this guide will help you in your decision making process.
Please do let me know if there are other modules which I missed out on [linkedin](https://www.linkedin.com/in/junhua-wen/ "Linkedin Profile").
For each of the modules, I will include the following information:
1. Course Information
2. Prerequisites
3. How to register (If there are any special steps)
4. Useful Links
## CFG Modules
Many of the CFG modules do not have the level-1000 course limit applied to them.
To see the full list of the courses, visit the [Degree Requirements Page](https://www.nus.edu.sg/registrar/academic-information-policies/undergraduate-students/degree-requirements "Degree requirements page")
### CFG1002 Career Catalyst (2 MC)
#### Course Information
Course Duration
- The course lasts for 6 weeks (Half a semester)
Assignments:
- Write a resume and upload to VMock
- Attend all the sessions and talks
**Note: For Year 1 Business students, you will have to complete your STR1000 requirements first**
#### How to register
1. Visit the [Official CFG Page](https://nus.edu.sg/cfg/students/career-ready/career-skills/career-catalyst "Official CFG Page").
2. Scroll to the bottom.
3. Click on your faculty and fill up the form.
4. Submit the form and wait for their reply.
#### Links
1. [NUSMods CFG1002](https://nusmods.com/modules/CFG1002/career-catalyst "CFG1002 NUSMods")
2. [Official CFG Page](https://nus.edu.sg/cfg/students/career-ready/career-skills/career-catalyst "Official CFG Page")
### CFG1003 Financial Well Being - Introduction (0 MC)
#### Course Information
There are no prerequisites for this module.
Course Duration:
- The course is an online module which can be completed at our own time.
- If you want to rush the course, you can complete it in 1 day.
For more information, take a look at my [review](# "CFG1003 Review")
#### How to register
1. Go to the [Official CFG1003 Page](https://nus.edu.sg/cfg/students/career-ready/soft-skills/financial-wellbeing "Official CFG1003 Page")
2. Scroll down to the CFG1003 Section
3. Click on the `Module Request Form` button
4. Fill in the form and submit.
#### Links
1. [NUSMods CFG1003](https://nusmods.com/modules/CFG1003/financial-well-being-introduction "CFG1003 NUSMods")
2. [Official CFG1003 Page](https://nus.edu.sg/cfg/students/career-ready/soft-skills/financial-wellbeing "Official CFG1003 Page")
3. [My CFG1003 Review](# "CFG1003 Review")
### CFG1004 Financial Well Being - Art and Science of Investing (2 MCs)
#### Course Information
The prerequisites for this module is [CFG1003 Financial Well Being - Introduction](#cfg1003-financial-well-being---introduction "CFG1003 Financial Well Being - Introduction")
Similar to CFG1003, this module is also an online module which can be completed at our own time.
However, this module is more time consuming as it requires us to complete various assignments.
To see the full details of the module, head over to [my review](# "CFG1004 Review")
#### How to register
1. Go to the [Official CFG1004 Page](https://nus.edu.sg/cfg/students/career-ready/soft-skills/financial-wellbeing "Official CFG1004 Page")
2. Scroll down to the CFG1004 Section
3. Open the module request form and submit it
#### Links
1. [NUSMods CFG1004](https://nusmods.com/modules/CFG1004/financial-wellbeing-art-and-science-of-investing "CFG1004 NUSMods")
2. [Official CFG1004 Page](https://nus.edu.sg/cfg/students/career-ready/soft-skills/financial-wellbeing "Official CFG1004 Page")
3. [My Review of the module](# "CFG1004 Review")
### CFG1500 Women’s Professional Development Programme (2 MCs)
#### Course Information
There are no prerequisites for this module.
There are 6 sessions for this module stretched over 8 weeks with both an e-learning and face-to-face components.
Assessment Criteria:
1. Attendance
2. Assessments
1. Submission of Group project **60%**
1. Interview Summary **10%**
2. Review session with mentor and submission of concept board **10%**
3. Submission of presentation slide and pitch deck **20%**
4. Pitching and Final Presentation **20%**
2. In class participation (Session 3 & 5) **20%**
3. Reflection Paper (Session 4) **10%**
4. Canvas Forum Participation **10%**
To pass:
1. Maintain at least 80% of classroom attendance (4/5 Live workshops)
1. Should not have < 80% attendance without any valid reason
2. Submit and complete all assessment components
**Note: This module is for Year 2-4 female students.**
#### Useful Links
1. [NUSMods CFG1500](https://nusmods.com/modules/CFG1500/womens-professional-development-programme "NUSMods CFG1500")
2. [Official CFG1500 Page](https://nus.edu.sg/cfg/students/career-ready/soft-skills/womens-professional-development-programme "CFG1500 Official Page")
### CFG1600 CommsLab Public Speaking (2 MCs)
#### Course Information
CommsLab Public Speaking Course aims to impart public speaking skills training to science students to improve their oral communication skills through a flipped classroom modality, a type of blended learning approach where students will learn essential frameworks required to craft and deliver a pitch through e-learning, apply the learning during in-person practice sessions, and enhance the skills through peer learning and expert feedback. Specifically, students will learn storytelling and persuasive communication techniques to craft a pitch, learn verbal and non-verbal communication skills for effective pitch delivery, practice delivering the pitch in class and receive feedback from their instructor and peers.
~ NUSMods
There is not much other information online on how to enroll for this course.
#### Links
- [NUSMods](https://nusmods.com/courses/CFG1600/comms-lab-public-speaking "NUS Mods for CFG1600")
### CFG2002 ID/KH/TH/VN Global Industry Insights (2 MCs)
#### Course Information
Pre-requisites: [CFG1002](#cfg1002-career-catalyst-2-mcs "CFG1002 Career Catalyst")
- `TH` stands for Thailand.
- `ID` stands for Indonesia.
- `KH` stands for Cambodia.
- `VN` stands for Vietnam.
This module runs from 04/12 to 10/12.
The program runs concurrently for each country so it is not possible to attend both at once.
The program fee is estimated to be S$1,100 to S$1,300 and CFG will provide support of $1,000 for eligible students.
The module consists of the following:
1. Company visits
2. Seminars
3. Case Studies
4. Cultural Exposure
#### How to register
1. Visit their [Official Page](https://nus.edu.sg/cfg/students/career-ready/industry "CFG2002 Official Page")
2. Scroll down to the Program details section
3. Click on `Submit your registration here` and fill up the form.
#### Useful Links
1. [NUSMods CFG2002I](https://nusmods.com/modules/CFG2002I/global-industry-insights "NUSMods CFG2002I")
2. [Official CFG2002 Page](https://nus.edu.sg/cfg/students/career-ready/industry "CFG2002 Official Page")
3. [Slides for CFG2002](https://nus.edu.sg/cfg/docs/default-source/students/career-ready/gii-2022-programme-details.pdf "Slides for CFG2002")
### CFG2100 Introduction to Decision-Making in Business (4 MCs)
#### Course Information
To excel in any commercial role, it is essential to have an integrated understanding of how an organisation works, and how to make critical business decisions, on both a theoretical and practical level. In this course, students will gain experience in making critical business decisions backed by comprehensive business insight, by taking part in a real-time business simulation to run a commercial enterprise in a complex competitive environment. This course provides an opportunity for students who are not from NUS Business school, to gain a foundational level of knowledge and skills in decision-making in business, where students will learn and apply foundational business management strategies and will also acquire critical skills for interpersonal success, including team development, leadership and principled negotiation.
- NUSMods
This mod cannot be taken by the following
- BIZ students cannot take CFG2100
- Have not taken MKT1705X and gotten a D
Taught by [Prof Ashok Charan](https://www.linkedin.com/in/ashok-charan-904bb0b7/?originalSubdomain=sg "Prof Ashok Charan")
For more information, you can refer to [Russell's CFG2100 Review](https://russelldash332.github.io/modrev/Y4S2 "Russell's CFG2100 Review").
#### Useful Links
1. [NUSMods CFG2100](https://nusmods.com/courses/CFG2100/introduction-to-decision-making-in-business "NUSMods CFG2100")
2. [Russell's CFG2100 Review](https://russelldash332.github.io/modrev/Y4S2 "Russell's CFG2100 Review")
### CFG2101 NUS Vacation Internship Program (4 MCs)
#### Course Information
These internships must be of minimum 10 weeks and need not be related to the students’ major or discipline.
Assessment Components:
1. Work plan Learning Placement Record **10%**
2. Reports **40%**
1. Pre internship Report **20%**
2. Post internship Report **20%**
3. Student Self Evaluation & Program Evaluation **20%**
4. Employer Evaluation **30%**
**Note:**
1. Students who are ineligible for their faculty internship modules may apply for CFG2101.
2. Students who are graduating in Semester 2 are not allowed to enrol in CFG2101 during the summer vacation in the same AY.
3. Law students are not eligible for CFG2101 as they are not allowed to read non-law modules for credits in Special Term Part 1 & Part 2.
#### How to register
1. Email to [cfginternships@nus.edu.sg](mailto:cfginternships@nus.edu.sg "CFG Internships Email") using the email subject "[CFG2101] Registration"
#### Links
1. [NUSMods CFG2101](https://nusmods.com/modules/CFG2101/nus-vacation-internship-programme "CFG2101 NUSMods")
2. [Official CFG Page](https://nus.edu.sg/cfg/students/jobs-internships/internships/vacation-internship-programme "CFG2101 Official Page")
### CFG3001 Career Advancement (2 MCs)
#### Course Information
Pre-requisites: Year 3-4 Undergraduate students
This course is fully online can we can do it at our own pace.
Module Structure
1. Define your brand
2. Communicate your brand via your resume and online
3. Networking
4. Interviewing skills for graduates
5. Supercharge your first 90 days at work
6. Etiquette for the office and remote working
Assignments
1. Informational Interview **40%**
1. Evidence of networking invitation
2. Completion of reflection on an informational interview
2. Submission of VIPS and online profile **30%**
3. Submission of VMOCK Interview Report **20%**
4. MCQ quiz **10%**
Passing Criteria: Complete all assignments
For more information, refer to my [review](# "CFG3001 Review") of this module.
#### How to register
- Bid for it in module registration from round 0 to 3.
#### Links
1. [NUSMods CFG3001](https://nusmods.com/modules/CFG3001/career-advancement "CFG3001 NUSMods")
2. [Official CFG Page](https://nus.edu.sg/cfg/students/career-ready/job-search-effectiveness/career-advancement/e-module "CFG3001 Official Page")
3. [CFG3001 Review](# "CFG3001 Review")
## ALS Modules
### ALS1010 Learning to Learn better (2 MCs)
#### Course Information
This module has no prerequisites.
This module goes over:
1. Memory techniques to learn better
2. Rules to build motivation and speed up learning
3. It also goes over the scientific evidence behind learning and memory techniques.
Assessment criteria
1. Attendance and Participation **30%**
2. Completion of Surveys **20%**
3. Learning Plan (1st Draft) **15%**
4. Updated Learning Plan (2nd Draft) **15%**
5. Course Reflection **15%**
There are no final exams.
#### How to register
1. Bid for it during module registration.
#### Links
1. [NUSMods ALS1010](https://nusmods.com/modules/ALS1010/learning-to-learn-better "ALS1010 NUSMods")
2. [ALS1010 Notes](https://www.studocu.com/sg/document/national-university-of-singapore/learning-to-learn-better/module-booklet-als1010-ay22-23-sem-1/33288241 "Notes for ALS1010")
### ALS1020 Learning to Choose better (2 MCs)
#### Course Information
This module is not offered any more.
This module discusses cognitive biases that we may have when we are making decisions.
#### How to register
- N/A
#### Links
1. [NUSMods ALS1020](https://nusmods.com/modules/ALS1020/learning-to-choose-better "ALS1020 NUSMods")
## GES/GESS Modules
### GES1035/GESS1025 Singapore: Imagining the Next 50 Years (4 MCs)
#### Course Information
Topics Covered:
1. Singapore in the World
2. Population
3. Economy
4. Security and Threats
5. Aspirations and Identities
Assessments:
1. Open book individual quiz **30%**
2. Group Presentation and Tutorial Participation **30%**
3. Presentation Group Write-up **20%**
4. Critical Reflections **20%**
#### How to register
1. Bid on ModReg from round 2 onwards.
#### Links
1. [NUSMods GES1035](https://nusmods.com/modules/GES1035/singapore-imagining-the-next-50-years "GES1035 NUSMods")
2. [NUSMods GESS1025](https://nusmods.com/courses/GESS1025/singapore-imagining-the-next-50-years "GESS1025 NUSMods")
## PLS Modules
PLS Modules are not counted towards the level 1000 UE Limit.
They are counted by under the [Roots & Wings 2.0 Program under CFG](https://nus.edu.sg/cfg/students/career-ready/soft-skills/roots-and-wings "CFG Roots & Wings 2.0").
They are typically conducted in groups of 25 students and split into 2 halves of the semester.
Students can accumulate up to 8 MCs in the UE space by taking different modules from Root & Wings 2.0.
Each module has approximately 9 contact hours (3 x 3hr lessons) in a semester.
To pass the modules under PLS, students will need to attend ALL sessions of the tutorial.
For more questions, visit [the official PLS Page](https://fass.nus.edu.sg/psy/roots-wings-overview/?_gl=1*1w6vmqr*_ga*MTg1NjIyMDUxLjE2NzQxOTc0NzY.*_ga_420855LXYD*MTY3NTkyMzk5NC40LjAuMTY3NTkyMzk5NC42MC4wLjA. "PLS Official Page")
### PLS8001 Cultivating Collaboration (1 MC)
#### Course Information
There are no prerequisites for this module.
This module focuses on soft skills on the interpersonal level in terms of more effective working with other people and reaching for better outcomes jointly.
Through various experiential activities (e.g. role-play, negotiation exercises), students learn to understand the importance of collaboration in various settings and to apply basic techniques to help resolve conflicts and to strive for win-win situations when collaborating with other people in task accomplishment.
#### How to register
1. Bid for it in module registration from round 0 to 3.
#### Links
1. [NUSMods PLS8001](https://nusmods.com/modules/PLS8001/cultivating-collaboration "PLS8001 NUSMods")
### PLS8002 Cultivating the self (1 MC)
#### Course Information
There are no prerequisites for this module.
This module is designed to help students achieve better self-awareness through the understanding of basic psychological concepts such as self-esteem, social comparison, self-perception and self-handicapping.
Students learn about how they acquire knowledge about themselves, how low self-esteem came about, and what psychologists learned about happiness.
#### How to register
1. Bid for it in module registration from round 0 to 3.
#### Links
1. [NUSMods PLS8002](https://nusmods.com/modules/PLS8002/cultivating-the-self "PLS8002 NUSMods")
### PLS8003 Cultivating Resilience (1 MC)
#### Course Information
There are no prerequisites for this module.
This module focuses on helping students recognize potential self-defeating beliefs and biases, and to overcome those beliefs.
Students will engage in experiential activities that foster positive emotions, engagement with the work they do and the people they interact with, and a positive narrative of their lives. The general aim of this module is to increase students’ awareness of self-limiting beliefs and to equip them with mindsets / behaviors that build psychological resilience.
#### How to register
1. Bid for it in module registration from round 0 to 3.
#### Links
1. [NUSMods PLS8003](https://nusmods.com/modules/PLS8003/cultivating-resilience "PLS8003 NUSMods")
### PLS8004 Optimizing Performance (1 MC)
#### Course Information
There are no prerequisites for this module.
This module focuses on soft skills derived from psychological research for students to better manage their performance level in tasks.
Through various experiential activities (e.g. visualization, attention regulation), students learn to develop a set of skills that will be useful for them to optimize their work performance by setting up effective goals, enhancing productivity, and dealing with the challenges of working in demanding and multi-tasking situations.
#### How to register
1. Bid for it in module registration from round 0 to 3.
#### Links
1. [NUSMods PLS8004](https://nusmods.com/modules/PLS8004/optimizing-performance "PLS8004 NUSMods")
### PLS8005 Cultivating Collaboration (1 MC)
#### Course Information
There are no prerequisites for this module.
This module focuses on soft skills derived from psychological research for students to develop effective interpersonal communication in everyday social interactions.
Through various experiential in-class activities (e.g. role play, conversation planning, speech practice), students learn about useful concepts and techniques for effective communication such as formulating an argument, asking effective questions, active listening, non-verbal communication, attempting a persuasion, and building relationships.
#### How to register
1. Bid for it in module registration from round 0 to 3.
#### Links
1. [NUSMods PLS8005](https://nusmods.com/modules/PLS8005/elevating-interpersonal-communication "PLS8005 NUSMods")
## DYOM Mods
You can only take up to 8 MCs of DYOM mods within the UE Space (Counted together with IaaS).
All DYOMs are CS/CU Modules
There are 2 possible options for DYOM Mods:
1. Option A - DYOM via MOOCs
2. Option B - DYOM via Group Work with Supervision
### DYOM Via MOOCs
This is further divided into 2 parts
1. edX MOOCs
2. AI For Industry (AI4I)®
#### edX MOOCs
This can be done in 4 steps
1. Enroll in the MOOC through Canvas ([Click to view the possible edX MOOCs that you can enroll in](https://wiki.nus.edu.sg/pages/viewpage.action?pageId=254674172 "Browse and enrol in your selected edX MOOC through Canvas"))
2. Obtaining a Verified Certificate as Evidence
3. This required paying for the course first
4. Print the Cert to PDF
5. Submit supporting documents in EduRec (edX)
6. [Follow Verification Instructions](https://wiki.nus.edu.sg/pages/viewpage.action?pageId=254674176 "Verification of edX Cert")
#### AI For Industry (AI4I)
This can be done in 3 simple steps:
1. Visit [AISG Singapore](https://learn.aisingapore.org/student-outreach-programme/ "AISG Singapore Website") to find a mod of your interest
2. Download the certificate once you have completed the module
3. [Submit supporting documents to get the MCs here](https://wiki.nus.edu.sg/pages/viewpage.action?pageId=309433294 "3 - Submit supporting documents in EduRec (AISG)")
#### DYOM Via Group Work
You can visit the [DYOM yammer guide](https://wiki.nus.edu.sg/display/DYOM/Yammer+Guide "DYOM Yammer Guide") where students and staff can find other like minded people to start a DYOM.
**Note: Medicine, Dentistry, LAW, Yale-NUS and SCALE cannot count DYOM Modules**
#### Links
1. [DYOC Official Link](https://www.nus.edu.sg/registrar/academic-information-policies/undergraduate-students/design-your-own-course "DYOC Official Link")
2. [edX MOOCs](https://wiki.nus.edu.sg/pages/viewpage.action?pageId=254674172 "Browse and enrol in your selected edX MOOC through Canvas")
## Other Mods
### CP1008 Learning With Generative AI Tools (2 MCs)
This course aims to prepare students to learn effectively with generative AI tools and how to work with them effectively.
This course is fully held online with self directed learning.
Based on the vacancy report, there are 241 slots available during AY2023/2024 and only 31 sign ups, making it a good module to bid for to clear your UE space.
#### Prerequisites
There are no prerequisites for this module.
#### Useful Links
1. [NUSMods](https://nusmods.com/courses/CP1008/learning-with-generative-ai-tools "NUSMods for CP1008")
2. [NUS Vacancy Report](https://www.nus.edu.sg/coursereg/docs/DemandAllocationRptUG_R1.pdf "NUS Vacancy Report")
### CP2106 Independent Software Development Project (4 MCs)
Orbital provides a platform for students to gain hands-on industrial experience for computing technologies related to students’ own interests. Done in pairs of two, Orbital students propose, design, execute, implement and market their project to peers and faculty. Peer assessment and critique of others’ projects are key components of the modules’ deliverables.
There are 4 different levels of achievement.
1. Vostok (Beginner)
2. Gemini (Intermediate)
3. Apollo 11 (Advanced)
4. Artemis (Extreme)
There are 5 main deadlines in Orbital.
1. Liftoff (Project Formulation + Planning)
2. Milestone 1 - 3 (Peer evaluation + Mentor evaluation of your project)
3. Splashdown (Poster Presentation + Awards Ceremony)
Some examples of past year project can be viewed from their [Official Website](https://orbital.comp.nus.edu.sg/ "Orbital Official Website").
#### Prerequisite
This mod requires that you have completed CS1010 or its equivalents and have NOT taken CS2103 and its equivalents.
#### Useful Links
- [Official Website](https://orbital.comp.nus.edu.sg/ "Official Orbital Website")
- [NUSMods Information](https://nusmods.com/modules/CP2106/independent-software-development-project-orbital "NUSMods Website on Orbital")
### CP2201 Journey of the Innovator (2 MCs)
Innovators practice the art of persuading people to accept changes in how they live—in work, leisure and social interaction. This module’s object is to introduce students to digital innovation, and to encourage them to embark on a personal journey of creativity and challenge. Inspirational innovators will be invited to present topics related to digital innovation, such as successful innovative projects of start-up teams and advanced development teams, innovative approaches such as Design Thinking, and opportunities for innovation, the vibrant intersection of energizing technology trends and new markets. This module will be graded as “Completed Satisfactory” or “Completed Unsatisfactory” (CS/CU).
There are no prerequisites for this module.
Based off the review from others, this module only runs for 4 weeks, with each week involving a guest speaker who will share their experience on entrepreneurship.
After each week, there is a reflection on the talk and a buffer dinner.
#### Useful Links
- [NUSMods](https://nusmods.com/modules/CP2201/journey-of-the-innovator "CP2201 NUSMods")
#### Reviews of this module
- [Review by Whirlwind Days](https://whirlwinddays.wordpress.com/2019/11/30/nus-ay19-20-year-4-sem-1-module-review/ "Whirlwind days review of CP2201")
- [Review by Harish v7](https://harishv7.wordpress.com/tag/cp2201/ "Harish v7 Review of CP2201")
- [Review by Zanblade](https://zanblade.wordpress.com/2021/06/22/year-3-sem-2-ay2020-2021-module-reviews/ "Review by Zanblade")
### CP3201 Industry Seminar (2 MCs)
The information technology (IT) industry is in an ever changing state of evolvement and innovation. This module aims to acquaint students with the latest Information Technology (IT) innovation, practices, and developments. Prominent leaders and practitioners in the IT industry will be invited to impart their knowledge and insights into the latest IT trends and developments from various industry arenas such as the finance, healthcare, consulting, manufacturing, and entertainment industries. Students' performance will be graded as "Completed Satisfactory/Completed Unsatisfactory (CS/CU)" at the end of the module based on the coursework.
There are no prerequisites for this module
Based on reviews from others, it involves listening to an industry expert talk about their company and their experience at that company.
#### Reviews of this module
- [Review by Whirlwind Days](https://whirlwinddays.wordpress.com/2019/11/30/nus-ay19-20-year-4-sem-1-module-review/ "Whirlwind days review of CP2201")
- [Review by Zanblade](https://zanblade.wordpress.com/2021/06/22/year-3-sem-2-ay2020-2021-module-reviews/ "Review by Zanblade")
- [Review by mushopea](http://mushopea.blogspot.com/2016/05/module-reviews-ay1516-sem-1.html "mushopea")
#### Useful links
- [NUSMods](https://nusmods.com/modules/CP3201/industry-seminar "NUSMods link for industry seminar")
- [CP3201 Official Website](https://www.comp.nus.edu.sg/~cp3201/ "CP3201 official website")
### EG2604 Innovation Programme (4 MCs)
Students will be engaged on a hands-on basis, as they work in pairs under the guidance of a group of faculty members, to create a novel outcome of practical significance. Students identify a problem and propose the solution(s) of which will improve our quality of life. Topics learnt in this module include problem definition and analysis, method of irritation, idea-generation methods and solutions, creativity and innovation, critical evaluation, intellectual property protection, and commercialization of ideas and products with real-life case studies. At the end of the programme, students produce a prototype or a demonstrable system and make a presentation to convince others of the value of the proposed idea, procedure or device. Teams may be formed by the course coordinators. The module is graded on CS/CU basis.
#### Syllabus
It spans 13 weeks and consists of
1. Seminars and workshops
2. Draft sessions
3. Hands on building
4. Innovation fair (Final Exhibit)
To view the full information, visit their [official website](https://cde.nus.edu.sg/undergraduate/build-your-own-degree/enhancement-modules/innovation-programme-eg2604/ "EG2604 Official Website")
#### Useful Links
- [NUSMods](https://nusmods.com/modules/EG2604/innovation-programme "NUSMods for EG2604s")
- [Official Website](https://cde.nus.edu.sg/undergraduate/build-your-own-degree/enhancement-modules/innovation-programme-eg2604/ "Official Website")
### MKT2711 Marketing Venture Challenge (4 MCs)
Every day new products are created that help fuel new ideas and innovation. Today, marketing helps these ideas become a successful business due to the abundance of digital tools that are available to small enterprises and online marketing solutions that help businesses find the right customers anywhere in the world. This class offers a unique opportunity for enterprising students to develop a marketing strategy to turn their ideas into real, viable businesses. From a marketing perspective, the class will cover digital tools, social media, and mobile marketing solutions to help students formulate their business plans and go-to-market strategies.
For more information,
#### Prerequisites
- Students must ba under Business Admin and year 2
- Completed MKT1705
- Have not completed MKT2414 with D or above
#### Breakdown
- Class participation **20%**
- Idea submission **10%**
- Full business and marketing plan **70%**
#### Useful Links
- [NUSMods](https://nusmods.com/modules/MKT2711/marketing-venture-challenge "NUSMods for MKT2711")
- [PDF for MKT2711](https://bba.nus.edu.sg/wp-content/uploads/sites/37/2019/07/MKT2414-MKT2711-Marketing-Venture-Challenge-S1AY1920.pdf "PDF Outline for NUS MKT2711")
### FAS3550 FASS Industry Seminar (2 MCs)
This module will introduce FASS students to the latest industry trends and emerging growth sectors so as to help them gain deeper knowledge and familiarize with evolving work environments. Business leaders and executives will share the industry challenges, innovations and best practices. The seminars will also expose FASS students to a wider repertoire of jobs/companies/industries including alternative options beyond the usual and traditional employers to enhance students’ employability. Lectures comprise a CEO leadership dialogue, a panel discussion on organizational effectiveness, Round table and workshop on global mobility. Students get to meet with industry mentors at company visits and networking sessions.
Based on reviews, it consists of weekly 2 hour seminars for the first 6 weeks of the semester.
You can sign up for this module by registering on ModReg.
#### Syllabus
- Class Participation **20%**
- Workshop Assignment **25%**
- Reflection Journals **30%**
- Internship Application **25%**
#### Prerequisites
- NUS FASS & CHS Undergraduates only
- Must have 40 MCs prior to enrolment
- Must have passed CFG1002
#### Useful Links
1. [NUSMods](https://nusmods.com/modules/FAS3550/fass-industry-seminar "NUSMods FASS Industrial Seminar")
2. [Official Website on CFG](https://nus.edu.sg/cfg/students/career-ready/industry "Official Website on CFG")
### SP2400IN/VN Science & Technology Global Industry Insights (2 MCs)
#### Course information
The code at the back stands for the emerging market that you will be studying
- IN for India
- VN for Vietnam
This course is conducted over intensive study week(s) in an emerging market economy. Through company visits, seminars, networking sessions and various assessments, students will learn what emerging market economies are, the importance of an overseas internship experience, and foreign workplace knowledge and skills. They will appreciate the inter-connectivity between the industry landscape of Singapore and that of India. They will also acquire first-hand experience of learning about the unique characteristics of different types of firms, and the latest trends in the industries that are complementary to the various undergraduate majors in the Faculty of Science.
- NUSMods
#### Prerequisites
- Taken and passed [CFG1002](#cfg1002-career-catalyst-2-mc "CFG1002")
- Completed 1 of HS1401A/HS1401S
- Completed 40 MCs of modules
#### Useful Links
1. [NUSMods (IN)](https://nusmods.com/courses/SP2400IN/science-technology-global-industry-insights "SP2400IN NUSMods")
2. [NUSMods (VN)](https://nusmods.com/courses/SP2400VN/science-technology-global-industry-insights "SP2400VN NUSMods")
### SP2401 Science & Technology Industry Insights (2 MCs)
This series of topical seminars introduce students to the latest innovations and developments in a range of industries and the career pathways they could undertake. Leading industry experts will be brought in to share their insights and advise students on the knowledge, skills and attributes that are needed to enter and succeed in each field. Complementary field trips will allow students to see how theory is applied in the industrial context. Workshop will provide the opportunity to develop and apply industry-valued transferrable skills, such as the ability to network and plan for their careers, culminating in an actionable career plan.
The module spans 6 weeks and includes
1. Seminars and panel discussion by industry partners
2. Company visits
3. Career preparatory workshop
4. Networking event to engage with NUS Alumni and industry experts.
For more information, visit their [official website](https://nus.edu.sg/cfg/students/career-ready/industry "SP2401 Official Website")
#### Prerequisites
- Completed CFG1002 or HS1401/2/S/A
- Completed 60 MCs
#### Useful Links
- [NUSMods](https://nusmods.com/modules/SP2401/science-technology-industry-insights-i "NUSMods for SP2401")
- [Official CFG Website](https://nus.edu.sg/cfg/students/career-ready/industry "CFG Website for SP2401")
### SP2402 Science & Technology Industry Insights II (2 MCs)
#### Course Information
This is a 6 week course that consists of the following:
1. Seminars and Panel Discussions by industry partners
2. 2 physical company visits to see the company's operation first hand
3. A critical skill workshop that covers the following
1. Industry Overview
2. Career planning
3. Networking Skills
4. Networking events to engage with NUS Alumni and Industry Experts
You can enroll for this course in CourseReg.
#### Prerequisite
- Completed CFG1002 OR HS1401/HS1402
- Completed 40 MCs
#### Useful Links
1. [NUSMods](https://nusmods.com/courses/SP2402/science-technology-industry-insights-ii "SP2402 NUSMods")
2. [Official CFG Page](https://nus.edu.sg/cfg/students/career-ready/industry "Official CFG Page")
3. [SP2402 Program Details](https://nus.edu.sg/cfg/docs/default-source/students/career-ready/stii-sp2401-02-programme-details.pdf "SP2402 Program Details")
### SPH3001 Public Health Practice (4 MCs)
This course introduces students to the public health infrastructure and functions in Singapore, as well as provide hands-on exposure to work by way of attachments at selected public health agencies. It allows students to explore career opportunities in public health, develop related essential skills, specifically soft skills such as management of resources, time, money and human, interpersonal relationships, communication and advocacy and provides practical exposure to selected public health careers.
This is only available during special term.
Application for Special Term Part 1 and 2 opens in October/ November. Students who self‐source
for internship opportunities and would like the internship to be counted under SPH3201/ SPH3001
must inform the course coordinators in advance ‐ requests will not be entertained once their
placement in organizations offered by SSHSPH is confirmed
#### Prerequisites
- Completed 8 MCs of Core Public Health Modules
- Completed 8 MCs of Elective Public Health Modules
#### Useful Links
- [NUSMods](https://nusmods.com/courses/SPH3001/public-health-practice "NUSMods for SPH3001")
- [Official SPH3001 Website](https://sph.nus.edu.sg/wp-content/uploads/2023/06/SSHSPH-Public-Health-Internships.pdf "SPH3001 PDF Website")
- [NUS Public Health Student Resources](https://sph.nus.edu.sg/education/ph-minor/student-resources/ "Public Health Student resources")
### BST3762 Effective Leadership in Action (2 MCs)
#### Course information
This course is designed to help graduating students prepare themselves for the working world. It deals with topics like Personal Strengths and Effective Interpersonal Relationships, Ethics and Integrity, Leadership styles and practices, understanding Management vs Leadership, etc. A distinctive element of the course is that senior practitioners from businesses and industry co-teach and mentor students through small group meetings and discussions in every class meeting.
- NUS Mods
The workload are as follows
1. Class participation (40%)
2. Personal Journal (20%)
3. Leadership manifesto & Action Plan (40%)
The schedule of the course is a weekly 3 hour session over the 1st 6 weeks of the semester.
**Note:**
- All participants are required to present their resumes to and may be interviewed to ascertain their fit and commitment for this module.
- Preference for the module will be given to students who are graduating.
#### Prerequisites
1. Must have taken at least 1 internship program
2. Must have completed at least 1 of their specialization modules
3. Must be from 1 Business School (Full details in the [NUSMods Link](https://nusmods.com/courses/BST3762/effective-leadership-in-action "BST3762 NUSMods"))
#### Links
- [NUSMods](https://nusmods.com/courses/BST3762/effective-leadership-in-action "NUS Mods Link for BST3762")
- [BST3762 Module summary](https://bba.nus.edu.sg/wp-content/uploads/sites/51/2023/06/BST3762-Effective-Leadership-in-Action.pdf "BST3762 Module summary")
### IT2900 Technical Management and Leadership (4 MCs)
#### Course information
In today’s complex and rapidly evolving business landscape, technical leaders require both leadership and soft skills to deliver high-quality product and drive innovation. In this course, students will be introduced to foundational theories of leadership and management. Students will develop self-awareness, emotional intelligence, resilience, perspective-taking, empathy and conflict management skills. They will also learn about the importance of psychological safety in teams. Students can expect readings, class presentations, interactions with guest speakers as well as participate in facilitated discussions and self-reflection exercises.
- NUSMods
#### Links
1. [NUSMods](https://nusmods.com/courses/IT2900/technical-management-and-leadership "IT2900 NUSMods")
2. [CCSGP Page for IT2900](https://www.ccsgp.comp.nus.edu.sg/leadership-programme "CCSGP Page for IT2900")
## Credits
- [u/happibunnie on Reddit](https://www.reddit.com/r/nus/comments/rbv15s/compilation_of_cscu_mods_in_nus/ "u/happibunnie on reddit")
- [u/Andreng on Reddit](https://www.reddit.com/user/Andreng/ "u/Andreng on reddit")
- [u/wxkelvin on Reddit](https://www.reddit.com/r/nus/comments/zwzxv9/compilation_of_cscu_modules_in_nus/ "u/wxkelvin on reddit")
---
# Open Network Operating System (ONOS)
- **Canonical URL:** https://nus-guide.com/post/onos/
- **Published:** 2022-11-22
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS4226
- **Keywords:** Networking, ONOS, CS4226, Internet Architecture
- **Words:** 473
> More about ONOS and how it works. This is part of my learning notes for CS4226 Internet Architecture at NUS School of Computing.
In this blog post, I will be going through more about Open Network Operating System (ONOS) and how it works.
## Open Network Operating System (ONOS)
The Open Network Operating System (ONOS) is an open source software defined network (SDN) controller for building SDN solutions.
It was designed to meet the needs of network operators who wish to build carrier-grade solutions using conventional equipment while having the flexibility to create and deploy dynamic networks.

The ONOS model is the open northbound API and a Specification Abstraction, allowing a controller to express the desired network behavior without implementing it.
The ONOS system is a distribution abstraction, shielding the SDN from the distributed states and making the distributed control logically centralized and highly available.
## ONOS Architecture
The architecture of ONOS is similar to any other horizontally scalable distributed system.
It consists of the following a set of loosely coupled subsystems which:
1. Each for an aspect of networking (EG: Topology, Host tracking, etc)
2. Maintains its own service abstraction
It is often associated with a microservices architecture and includes a highly available key value store.

The illustration aboves show a logical layering of the ONOS architecture. However, do note that the system is distributed.
It consists of the following main components:
1. Northbound Interfaces (NBI)
1. These are for the app to use to stay informed about the current network state
2. This is also used to control the network data plane
3. EG: Topology, Intercept packets, FlowRule, FlowObjective, etc
2. Distributed Core
1. This component is responsible for managing network state and notifying apps about the relevant changes in state
2. It also consists of an internal distributed key-value store
3. Southbound Interfaces (SBI)
1. This is constructed from a set of plugins
2. Including shared protocol libs and device specific drives
3. This is the API that interfaces with the hardware itself
4. EG: OpenFlow, P4Runtime, gNMI, etc
## ONOS Abstractions
There are some new abstractions which are provided by ONOS.
These include the following:
1. Intent
2. Flow Objectives
3. Flow Rule
We will be going through them in detail
### Intent
These are high-level abstractions which are implemented network wide. They are topology independent programming constructs.
It allows applications to specify their network control desires in the form of a policy rather than mechanism.
These intents are translated into installable intents, which are essentially actionable operations on the network environment, and are then installed on the network.
To view the full documentation, visit [ONOS Project](https://wiki.onosproject.org/display/ONOS/Intent+Framework "ONOS Project")
### Flow Objectives
These are finer grain control compared to intents. They are device centric programming constructs which are pipeline independent.
They are designed to make the application pipeline unaware while leveraging the scalability and flexibility of the multi-stage openflow pipeline.
### Flow Rule
These are the lowest level abstractions. They are used to control various pipelines, both fixed function ones and programmable ones.
## References
- [ONOS Page](https://opennetworking.org/onos/ "ONOS Page")
- [ONOS Project Wiki](https://wiki.onosproject.org/ "ONOS Project Wiki")
- [The benefits of Multiple Flow Tables and TTP](./TR_Multiple_Flow_Tables_and_TTPs.pdf "The benefits of Multiple Flow Tables and TTP")
---
# Openflow
- **Canonical URL:** https://nus-guide.com/post/openflow/
- **Published:** 2022-11-22
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS4226
- **Keywords:** Networking, Openflow, CS4226, Internet Architecture
- **Words:** 826
> More about Openflow and how it works. This is part of my learning notes for CS4226 Internet Architecture at NUS School of Computing.
If you have not read the previous post [Software Defined Networks](/post/software-defined-networks/ "Software Defined Networks"), feel free to go and see it.
In this blog post, I will be discussing how OpenFlow works in the context of SDNs.
## Openflow
Openflow is a communication protocol that gives access to the forwarding plane of a network switch or router over the network. It enables network controllers to determine the path of the network packets across a network of switches. The controllers are distinct from the switches.

The Openflow Protocol is an open-source southbound API that enables the network operating system to communicate with the forwarding devices within the underlying network infrastructure.
The Openflow switch is the forwarding abstraction which allows forwarding behavior without exposing the underlying implementation of the forwarding process.
## OpenFlow Switch Architecture

The Openflow switch consists of 2 main components.
1. Control channel
2. Data Path
The control channel is responsible for contacting the controller (using TCP but also can have multiple other channels) and inferring which flow the current packet is from. This will allow the switch to route the packet based on the flow correctly.

The data path is responsible for forwarding the packet to the correct destination. It consists of many pipelines. Each section of the pipeline consist of a flow table. The flow table is a lookup table that contains the flow entries. The flow entries are the rules that the switch uses to forward the packet. The flow entries are matched against the packet headers. The flow entries are matched in order. The first match is the one that is used to forward the packet.
They also contain a group table to aggregate ports and the actions performed on the packet as well as a meter table which is responsible for rate limiting.
## Openflow Terminology
For each packet from a packet flow, it consists of the following
1. Packet Header and header fields
2. Pipeline fields
1. This is where values are attached to the packet during pipeline processing
2. EG: Ingress port & Meta data (implement more complex forwarding logic)
3. Action
1. An operation that acts on a packet
2. EG: Drop, Forward, Modify (like decreasing TTL)
4. Action Set
1. A set of action accumulated while being processed
2. They are lazily evaluated at the end of the pipeline processing (There are some exceptions to this)
## OpenFlow flow entries
A flow table entry looks like the diagram below

The flow table entry consists of the following
1. Match Fields
2. Priority
3. Counters
4. Instructions
5. Timeouts
### Match Field
This are the fields that the packets are matched against. This is can contain any of the following:
1. Header fields
2. Pipeline fields
Each of the above fields can be a wildcard or bit mask.
### Priority
As the name suggests, this field is used to prioritize matches from one another. The first match of the highest priority is applied to the packet.
### Counters
This keeps track of the number of packets that matched the defined rule
### Instructions
This is the set of instructions which are used to modify the action set. They can be instructions from the following set
1. Meter: Directs the packet to the specified meter to rate limit the packets
2. Apply-Actions: Applies the specified actions in the action list immediately
3. Clear-Actions: Clears all the actions in the action set immediately
4. Write-Actions: Modifies all actions in the action set immediately
5. Write-Metadata: Modifies packets between two flow tables (If multiple tables exists.)
6. Goto-Table: Indicates the next flow table in the processing pipeline
7. Action Set: When the instruction set of a flow entry does not contain a Goto-Table instruction, the action set is applied to the packet based on the order of the instruction set.
8. Action List: The actions in the action list are executed immediately in the order specified by the action list. The effects of those actions is cumulative.
9. **Output**: The output action forwards a packet to the specified OpenFlow port. OpenFlow switches must support forwarding packets to physical ports, logical ports and reserved ports
10. **Drop**: Packets which have no explicit output actions are dropped. (Either due to empty instruction or actions set, or due to a Clear-Action instruction)
11. **Group**: Process the packet through the specific group. (Depends on the group type of the packet)
12. Set-Queue: Sets the queue ID of the packet to the specified queue ID. When the packet is output to a port, the packet is placed in the queue with the specified queue ID for the port to be scheduled and forwarded.
13. Set-Field: The Set-Field action sets the value of a field in a packet header. (This only applies to the outermost header of the packet, EG: Vlan ID sets the outermost VLAN tag)
### Timeouts
Timeouts consists of 2 types: Hard and Idle timeouts.
Idle Timeout: The flow entry is removed when it has matched no packets during the idle time
Hard Timeout: The flow entry is removed when the hard time timeout is exceeded regardless of anything.
### Cookie
This is the flow entry identifier specified by the controller.
## References
- [OpenFlow flow Table](https://techhub.hpe.com/eginfolib/networking/docs/switches/5940/5200-1028b_openflow_cg/content/491966856.htm "OpenFlow Flow table")
- [OpenFlow Switch Specification](https://opennetworking.org/wp-content/uploads/2014/10/openflow-switch-v1.5.1.pdf "OpenFlow Switch Specification")
---
# Peer To Peer Networking
- **Canonical URL:** https://nus-guide.com/post/peer-to-peer-networks/
- **Published:** 2022-11-23
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS4226
- **Keywords:** Networking, P2P, Peer To Peer, Peer2Peer, CS4226, Internet Architecture
- **Words:** 2385
> An Introduction to Peer To Peer Networking. This is part of my learning notes for CS4226 Internet Architecture at NUS School of Computing.
## History
Traditionally, the internet has been built on a client-server architecture.
There were distinct roles given to the devices which were involved.
They were either clients who received data or servers who serve data.
Extending on that concept, there is now delegation of roles.
The role of the client remained the same while servers can be iterative or recursive.
An example of this is used in Domain Name Systems (DNS).
When a client sends a DNS request, it can either be resolve iteratively or recursively.
### Iterative Resolution
In iterative resolution, the client sends a request to a DNS server A.
A then sends a request to another DNS server B.
However, B does not help A ask C for the address for the target, it sends A the address of C for A to ask C itself.
A then **iteratively** ask each of the DNS servers until the domain name is resolved before replying to the client.
### Recursive Resolution
Similar to the iterative resolution, the client sends a request to DNS server A.
A then sends a request to another DNS server B.
Instead of replying with an IP address of C for A to check out, B helps A to ask C.
This process repeats (C asks D, D asks E, etc) until the domain name is resolved.
Each DNS Server **recursively** asks the next DNS server until the domain name is resolved before replying to the client.
Eventually, C replies B, B replies A, A replies the client.
## Peer To Peer
However, peer to peer systems do not have the same architecture.
There is no central server which all the clients connect to, instead, arbitrary clients can connect to each other and communicate directly.
It has a flat architecture with no hierarchy unlike DNS above.
However, switching to this architecture has its own set of problems.
1. Peers intermittently connect and disconnect
2. Service providers may be unreliable
3. Resource lookup is hard
Let us look at how technology over the years have tried to tackle this problem.
## Some examples of P2P systems
1. File Sharing
1. **Napster (1999 - 2002)**
2. **KaZaa (2001 - 2012)**
3. **Gnutella**
2. Content Distribution
1. **BitTorrent**
3. Voice over IP
1. **Skype**
4. Video Streaming
1. PPLive
2. PPStream
5. Other applications
1. Blockchain & Cryptography
2. P2P Computation
We will be going some of the examples above (ones in bold) to see how they tackle the issues with P2P systems.
## Napster (1999-2001)
Napster is a peer to peer file sharing application.
It was launched on 1st June 1999 with an emphasis on digital audio distribution.
It is based on a central index server which keeps track of users.
The server sends a list of files to be shared to the peers and the server knows all the peers and the files in the network.
Searching based on keywords were supported and the server will return a list of files together with the peer carrying the file.
Some information was keyed in by the user manually which is unreliable.
### How does it work?
Similar to Delegation, the central Napster server indexes all the clients and files in the network.
When a client wants to search for a file, it sends a request to the server.
The server then redirects you to a peer which has the file and the client downloads the file from the peer directly.

Using the diagram above, when Napster client A wants to download a file:
1. It first sends a request to the server
2. The server sends the location of the peer which has the file
3. Client A requests the file from Client B and downloads it
### Pros and Cons
Pros:
1. It had a consistent view of the network
2. There was fast and efficient searching
3. Searches were guaranteed correct answers
Cons:
1. The central server was a single point of failure
2. Large computations were required to handle queries
3. Download was only from a single peer
4. Content was unreliable
5. It was vulnerable to attacks
6. There was no copyright protection for the files being shared which lead to a lawsuit.
The lawsuit eventually resulted in their shutdown in 2002.
## Gnutella
Gnutella was a peer to peer network protocol which was developed in 2000.
It was the first of its kind, leading other networks to adopt a similar model.
Unlike Napster, it was a decentralized network and does not require a central server.
### How does it work?
Gnutella only consisted of a network of fully equal peers.
To join the network, peer needs the address of another separate peer through out of band channels. (IE: Through websites, chat rooms, etc)
Once joined, the peer learns about others as well as the topology of the network.
Queries flood the network and download happens directly between peers.

Using the diagram above, when Gnutella Peer A sends a request for a particular file, it floods the network with the request.
1. Gnutella Peer A sends the query to B, E and F
2. E has the file and sends a hit reply to Peer A
3. B does not have the file but is connected to other peers
4. B floods the query to C and D
5. D replies to B with a hit reply
6. B replies to A with a hit reply
### Pros and Cons
Pros:
1. The system was fully distributed
2. The protocol was open source
1. It was easy to write clients.
3. The system was robust to node failures
1. This is only true for random failures as it forms a power-law network
4. Less susceptible to denial of service
Cons:
1. The queries were inefficient
1. It is a waste of network resources to flood the network with queries
2. Inefficient network management
1. Constant probing is required to check if the peer was still active
## KaZaA
Similar to Napster, KaZaA was a peer to peer file sharing application using the FastTrack protocol. It was launched in March 2001 after the shutdown of Napster.
Similarly to Napster, it also faced a lawsuit which let to its shutdown in August 2012.
### How does it work?
KaZaA contains 2 kinds of nodes.
1. Ordinary nodes (ON) which acts as a normal user peer.
2. Super Nodes (SN) which is a peer with more resources and responsibilities.
This results in a 2 tier hierarchy.

The top level contains only Super Nodes and the bottom level contains only Ordinary Nodes.
Each Ordinary Node is connected to 1 Super Node. This can change but it can only connect to at most 1 super node at any 1 time.
The super nodes acts as a `hub` for all of its ordinary node children. This includes keeping track of files within the ON children peers.
Using the diagram above, if an ordinary node wants to download a file, it sends a request to the super node that it is connected to. By default, the request have a time to live (TTL) of 7.
The super node will flood the request to other super nodes. After receiving the request, the super node will reduce the TTL by 1 and continue querying the other super nodes.
When it runs out, the request will stop propagating.
After the file is found, the file is transferred directly over the network from the source node to the destination node using HTTP (Hyper Text Transfer Protocol).
### Super Vs Ordinary Nodes
Super nodes:
1. Exchange information within themselves
2. Do not form a complete mesh
3. SNs change connections to other SN every 10s of minutes
1. This allows for larger network ranges to be explored
2. SNs have an average lifespan of 2.5 hours with large variances
4. SNs do not cache information from disconnected ONs
5. 1 SN has connection to roughly 30-50 other SNs
6. There are roughly 30,000 SNs at any given time.
7. Each super node serves 60 to 150 ordinary nodes at any one time
Ordinary Nodes
1. Obtain address of super node and sends request and gives list of files to share
2. Super node keeps track of ordinary node
3. Ordinary nodes under a super node are not visible to other super nodes.
4. Can be promoted to a super node when it has sufficient bandwidth and up time.
1. But the nodes can refuse to become a super node
2. Bandwidth requirements are usually between 160 - 200 kb/s
5. Roughly 13% of the ONs are responsible for 80% of the uploads
## Skype
Skype is a proprietary telecom application which allows users to make voice calls over the internet.
Instead of using real phone networks and real phone numbers to make calls, skype makes use of the internet to make calls. This reduces the cost of making calls for the user.
In 2017 it was migrated over to a centralized Azure-based service.
In this blog, we will be discussing its peer to peer capabilities before migration.
### How it works?
Similar to Kazaa, the architecture of Skype is also a 2 tier hierarchy consisting of super nodes and ordinary nodes.
Although the protocol was not released, it is believed that the pairs of users used a proprietary, encrypted application-layer protocol.
Each client maintains a host cache with the IP address and port numbers of reachable super nodes. The skype user directory is decentralized and distributed among the super nodes in the network.
Super nodes are grouped into slots (of 9 to 10 super nodes) and slots are group in blocks (of 8 slots). Before they were acquired by Microsoft, any node who has good bandwidth, no restrictions due to firewall or NAT (Network Address Translation) and sufficient processing power can become a super node.
After being acquired by Microsoft, they changed the design to only use their own servers as super nodes.

As shown in the diagram above, the network contains three types of entities, namely:
1. Super Nodes
2. Ordinary Nodes
3. Login Service
When client A searches for client B, the request is sent to a Super Node. If the Super Node does not have the information required, it will send a list of other Super Nodes to query and the client iteratively queries the other Super Nodes (Similar to DNS Server's Iterative Query). The Process continues until the client finds the user or determines that the user does not exist.
After searching for the user, it caches the information about the user on its local machine. When the client makes a call to the user, it will send a TCP packet to the user's IP address and port number and the call will continue from there.
### Problems
There might be a problem with the call when both clients are behind NAT (Network Address Translation) boxes which prevents an outside peer from initiating a call to an inside peer.
To solve this problem, a relay is chosen using the super node of the caller and the callee. Each peer will initiate the connection to the relay and the relay will inform both peers of the other peer's IP address and port number.
The peers will then communicate through their NATs via the relay.
## BitTorrent
BitTorrent is a peer to peer file sharing protocol which allows users to download files from each other. It was first released in 2001 and is still widely used today.
BitTorrent builds a network (swarm) for every file that is distributed.
### Pros and Cons
Pros
1. A Link can be sent to a friend
2. A Link always refers to the same file
3. Not feasible on search-based p2p networks (Like Napster, Gnutella or Kazaa)
Cons
1. Websites with link collections and search exists but there is no name service.
### How does it work?
For each shared file, there is (initially) one server (seed) which hosts the original copy of the file. The file is broken into chunks on the server.
A torrent file is created which contains the metadata about the contents of the file. The file is typically hosted on a web server.
Clients download the torrent file from the website and use the information to identify a tracker and get the size and checksums of chunks.

The diagram above shows the steps involved when a file is hosted by the seed and downloaded by a new client.
| Step No | Description |
| ------- | -------------------------------------------------------------------------------------- |
| 1 | The seeds starts the tracker |
| 2 | The seed creates the torrent file and hosts it on a web server |
| 3 | A new client obtains the torrent file from the web server |
| 4 | The new client contacts the tracker and obtain the list of peers containing the chunks |
| 5 | The new client downloads / exchanges chunks with the peer |
The tracker only keeps track of which seeds and peers are in the swarm but does not actually participate in the actual file distribution.
A torrent refers to a group of peers exchanging chunks of a file (IE: Me downloading a torrent from another peer)
A Swarm refers to seeds and peers.
### Details of BitTorrent
The chunk size for files in BitTorrent is 256 KB.
For peers joining the torrent:
1. They start with no chunks and will slowly accumulate them over time.
2. They register with tracker to get list of peers and connects to a subset of them.
When downloading chunks, peers upload chunks to other peers at the same time.
Once the peer has the entire file (Download finishes), it may leave or remain within the swarm.
To keep the peers synchronized and optimized, BitTorrent makes use of the following mechanism:
1. Pulling chunks
2. Tit-for-tat
### Pulling Chunks
At any given time, peers have a different subset of file chunks.
Periodically, a peer asks each neighbor for a list of chunks that they possess.
The peer then sends requests for the chunks which she is missing (By rarest first).
This process keeps the peers up to date on the chunks and aids in the chunks accumulation process.
### Tit-for-tat
In this mechanism, a peer sends chunks to four neighbors currently sending her chunks (at the highest rate) and reevaluates the top 4 every 10 seconds.
Every 30 seconds after that, the peer will randomly select another peer and start sending chunks to it.
The new peer may be chosen to be the new top 4. This is known as optimistically un-choking.
## Summary
We went through a list of P2P systems of various categories and how they worked.
We also looked at the pros and cons of each system.
1. File Sharing
1. **Napster (1999 - 2002)**
2. **KaZaa (2001 - 2012)**
3. **Gnutella**
2. Content Distribution
1. **BitTorrent**
3. Voice over IP
1. **Skype**
## References
- [Napster Wiki](https://en.wikipedia.org/wiki/Napster "Napster Wiki")
- [Gnutella](https://en.wikipedia.org/wiki/Gnutella "Gnutella Wiki")
- [Query Flooding](https://en.wikipedia.org/wiki/Query_flooding "Query Flooding")
- [Kazaa](https://en.wikipedia.org/wiki/Kazaa "Kazaa Wiki")
- [Kazaa](https://computer.howstuffworks.com/kazaa.htm "Kazaa")
- [Skype Protocol](https://en.wikipedia.org/wiki/Skype_protocol "Skype Protocol Wiki")
- [Silver Needle in the Skype](https://www.blackhat.com/presentations/bh-europe-06/bh-eu-06-biondi/bh-eu-06-biondi-up.pdf "Silver Needle in the Skype")
- [An Analysis of the Skype p2p Protocol](https://arxiv.org/ftp/cs/papers/0412/0412017.pdf "An Analysis of the Skype p2p Protocol")
- [BitTorrent](https://en.wikipedia.org/wiki/BitTorrent "BitTorrent Wiki")
---
# Software Defined Networks and its uses
- **Canonical URL:** https://nus-guide.com/post/software-defined-networks/
- **Published:** 2022-11-22
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** CS4226
- **Keywords:** Networking, Software Defined Networks, SDN, CS4226, Internet Architecture
- **Words:** 2299
> Software Defined Networks and its uses. This is part of my learning notes for CS4226 Internet Architecture at NUS.
This week's topic is more on networks as I am trying to study for CS4226 Internet Architecture. Hopefully this can help others who are trying to learn about software defined networks.
## What are software defined networks?
Software Defined Networks (SDNs) are a new approach to network management that allows dynamic and and programmable network configuration. This allows improved network performance and monitoring.
## Traditional Networking
In traditional networking, equipments are software bundled with hardware. This usually meant that the hardware that you buy locks you into the software which are managed by the hardware manufacturers.
The various manufacturers have their own implementation of a particular protocol. Any new proposed protocol will have to go through the process of getting the hardware manufacturers to implement it. This is a slow process and the hardware manufacturers will only implement it if it is profitable for them to do so.
On top of that, only those specific vendors who have access to the hardware and software of the equipment can innovate on the network. This means that the network is not open to innovation from the community.
As a result, there is slow protocol standardization and slow innovation.
Such slow processes can impact the performance, security and reliability of the network.
Operating a large network is expensive. According to [Wired](https://www.wired.com/insights/2012/10/move-to-cloud-consider-saas/ "Wired: Move to cloud"), the annual cost of operating a network can be as much as 4 times the cost of the purchase of the network. Some companies even spend 75% of their total budget to maintain and run existing systems.
Routers also contain buggy software. With over 20+ million lines of code, it is not surprising that there are bugs in the software. This can lead to security vulnerabilities and network outages.
This is where Software Defined Networks (SDNs) come in.
## Core of networking
In the core of networking, there are 2 key features.
1. Running routing algorithms / protocols (RIP, OSPF, BGP, etc)
2. Forwarding data packets from incoming links to outgoing links
These 2 categories can be split up into 2 different sections.
1. Data Plane
2. Control Plane
We can think of routers of having both a data and a control plane and switches as only having a data plane.

The data plane deals with the delivering of packets and the control plane deals with the routing.
### Data plane
The data plane deals with the processing and delivering of network packets based on the internal state of routers. This is the part of the network that is responsible for forwarding packets from incoming links to outgoing links.
This is on relatively fast time scales (per packet) which happens very quickly and many times per second.
### Control plane
The control plane determines how and where packets are forwarded to. This includes the routing, network engineering and firewall.
This is also where all the networking algorithms run (BGP, OSPF, RIP, etc)
These happens on a relatively slow time scale (per control event)
## Principles of Software Defined networks
These are the main principles of software defined networks
1. Disaggregation
2. Centralized Control
3. Programmability
We will be diving into each of the principles in detail below.
## Disaggregation
Disaggregation is the separation of the control plane and the data plane. This allows a network operator to independently source and purchase control and data planes from different vendors.
The data plane generally consists of cheaper commodity forwarding devices (bare-metal switches) and the control plane consists of software which control these switches.
In order to achieve this, there is a need to define a forwarding abstraction layer. This layer is a general purpose way for the control plane to tell the data plane to forward packets in a particular way.
An example of this will be [OpenFlow's Flow rules](https://opennetworking.org/wp-content/uploads/2013/04/openflow-spec-v1.3.1.pdf "OpenFlow Switch Specification"). This is an open-source general purpose way for the control plane to tell the data plane to forward packets in a particular way.
In Openflow, a flow rule is a Match-Action pair. Any packets that match will have the action applies to it.
Let us demonstrate this using the table below
| Match | Action |
| ---------------- | --------------- |
| Ingress Port = 1 | Output Port = 2 |
| Ingress Port = 2 | Output Port = 1 |
| Ingress Port = 3 | Drop |
In the above table, we can see that any packets that come in through port 1 will be forwarded to port 2 and any packets that come in through port 2 will be forwarded to port 1. Any packets coming from port 3 will be dropped.
The actual configuration consists of many more rules and actions for the network operator to configure.
### Benefits
The benefits of disaggregation are as follows:
1. Hardware and software can be independently sourced and purchased
2. Hardware and software can be independently upgraded
3. Innovation can happen in parallel on both the hardware and software
An analogy can be made to the PC industry. The PC industry has been disaggregated for a long time. The CPU, RAM, Motherboard, GPU, etc are all sourced from different vendors. This allows for innovation to happen in parallel on the CPU, RAM, Motherboard, GPU, etc.
Likewise, after you have built your computer, the computer, operating system and applications can all evolve independently from one another due to disaggregation.
## Centralized Control
Before we talk about centralized control let us talk about the difference between control and configuration.
### Control Vs Configuration
Control is the process of making real-time decisions on how to respond to link / switch failures. The control plane is required to learn about the failure and provide a remedy immediately.
Configuration is the process of setting up the network devices. This can be seen as setting up a new flow rule in SDNs.
### Why Centralized Control?
When discussing about the control plane, we can either have a centralized control plane or a on-switch (Distributed) control plane.
On-Switch control planes means that the switches are operating separately and independently from one another. The state of each switch is not shared with the other switches.
Centralized control planes means that the switches are operating in a centralized manner. The state of each switch is shared to a controller who will be making decisions on how to forward packets.
Centralized control planes come with a host of benefits
### Pros and Cons of Centralized Control
Benefits
1. It removes the complexity of managing distributed systems (EG: In OSPF, RIP, other routing protocols)
2. Able to make decisions based on the entire network topology instead of just with local information.
Disadvantages
1. There will be a single point of failure.
To address the disadvantages, the centralized controller is only logically centralized instead of physically centralized. This means that the controller can make use of distributed system techniques to ensure that the controller is highly available.
## Programmability
Programmability is the ability to configure the network programmatically. This allows for the network to be configured in a more dynamic and flexible manner.
Network programmers can make use of programs to create different rules for the network to forward packets. This includes but is not limited to the following.
1. Load balancing
2. Setting up firewalls
3. Forwarding packets with switch loops
### Load balancing
As the centralized controller is able to see all the network traffic in the network, they are able to optimized and send network packets on other paths when they detect a network congestion.
## Setting up firewalls
The controller can match packets to a set of rules and apply actions to the packets. This allows for the creation of firewalls where packets which fit a certain set of rules can be dropped.
## Forwarding packets with switch loops
Imagine a series of switches connected in a triangle. In a traditional setup, there is a possibility where each switch thinks that the destination is from the next switch. This can lead to a switch loop where the packets are forwarded in a loop infinitely within the switch and never reach the destination.
With software defined networking, the controller can choose to forward the packet based on the network architecture that it sees. This allows for the controller to break the switch loop and forward the packet to the destination.
### Benefits of programmability
1. Allows for the network to be configured in a more dynamic and flexible manner
2. Performance optimizations
3. Rapid innovation and fast evolution
4. Supports change of protocol in the future, without having to change the hardware
## Network Operating Systems
All of the above is generally implemented using a Network operating system. This is a software that runs on the controller and is responsible for managing the network. It sits just on top of the control plane and is a foundation for building control applications which are deployed on the network.
## Summary

In this article, we have covered the following
1. Principles of Software defined networking
1. Separation of Control Plane and Data Plane
2. Logically Centralized Control
3. Programmability
All of the principle above makes use of abstractions
1. Specification abstraction
1. Allows a controller to express the desired network behavior without implementing it
2. EG: Openflow rules
2. Distribution abstraction
1. Shield SDN from the distributed states, making the distributed control logically centralized
2. Using distributed systems techniques to ensure that the controller is highly available
3. Forwarding abstraction
1. Allow forwarding behavior by apps while hiding the details of the forwarding hardware.
For a more in-depth explanation, you can check out [Software-Defined Networking: A Comprehensive Survey](https://arxiv.org/pdf/1406.0440.pdf "Software-Defined Networking: A Comprehensive Survey").
## Main users of SDNs
There are 3 main categories of users of SDNs:
1. Cloud Providers (EG: Google, Facebook, Microsoft, etc)
2. Network operators (EG: Comcast, AT&T, NTT, etc)
3. Enterprises (EG: Universities and companies)
## Use Cases of SDNs
These are the use cases of SDN
1. **Network Virtualization**
2. **Switching Fabrics**
3. **Traffic Engineering**
4. **Software Defined WANs**
5. Last-mile access networks
6. Software-Defined Internet exchanges (SDX)
7. Mobility and wireless
8. Security, measurement and monitoring
We will be taking a look at some of them (those in bold) in detail below.
## Network Virtualizations
Before we talk about network virtualization, let us talk about some of the current virtualization technology to draw an analogy.
### Current Virtualization technologies
Some current technology for hardware virtualization::
1. Virtual Machines (VMs)
2. Containers
These technologies seek to virtualize the hardware resources of a computer. For example, a VM is a virtual computer that runs on top of a physical computer. It is able to do so by virtualizing the hardware resources of the physical computer.
For networks:
1. Virtual Private Networks (VPNs)
2. Virtual Local Area Networks (VLANs)
These technologies seek to virtualize the network resources of a computer. For example, a VPN is a virtual network that runs on top of a physical network. It is able to do so by virtualizing the network resources of the physical network.
### What is network virtualization?
Network Virtualization is similar to the ones state above but done in terms of network infrastructure. It can divide 1 physical network into multiple virtual networks or divide a big network into multiple smaller independent virtual networks.
### How does network virtualization work?
This is done by virtualizing the network resources of the physical network similar to how a virtual machine virtualize the hardware resources of a physical computer.
For the first time, cloud providers are able to virtualize networks for other users to use. Enterprises can now rent network from cloud providers to set up their own virtual networks without knowing the underlying network infrastructure.
### Benefits of Network Virtualization
1. Reduces network provisioning time from weeks to minutes
2. Achieve greater operational efficiency by automating network provisioning
3. Improve network security by isolating different virtual networks
## Switching Fabrics
Switching fabrics are the network infrastructure that connects the servers in a data center. Using SDNs, switching fabrics can be virtualized.
Within data centers, they typically make use of Leaf-Spine topology.
Spines are the core switches that connect to the leaf switches. Leaf switches are the switches that connect to the servers.
Usually strong switches are used for the spines and weaker switches are used for the leaf switches.
With the introduction of SDNs, it makes it easier to connect virtual switch networks to physical network devices.
The network administrator will only have to manage from the controller software to configure the virtual switches rather than login to each of the switch to configure them.
## Traffic Engineering
Traffic engineering is a method of optimizing the performance of a network by analyzing, predicting, and regulating the behavior of traffic flows.
With SDNs, traffic engineering can be done in a more efficient way as the controller will now have a global view of the data instead of local view from the point of view of switches.

In this example, instead of each switch having to decide which path to take based on ARP requests, the controller will be able to decide which path to take for each flow to arrive at the destination the quickest.
## Software Defined WANs (SD-WAN)
Software Defined Wide Area Networks is a virtualized service that connects and extends enterprise networks over large geographical distances.
Before we take a deep dive into SD-WANs, let us first talk about the current WAN technology.
### Current WAN technology
Traditional WANs are based on conventional routers and switches. It spans beyond a single location and connects multiple locations together. The most common WAN is the internet of today.
### Purpose of WANs
The main purpose of WANs include
1. Communication using voice and video
2. Share resources between different devices
3. Running applications
### How does SD-WAN improve on WANs?
SD-WAN enables the WAN to be more flexible and dynamic. It can be configured to use the best path for each flow to arrive at the destination the quickest.
It does this by separating applications from the underlying network services with a policy-based virtual overlay. It abstracts away all the details of the network layer and allows the WAN to use a variety of different connection types interchangeably.
## References
- [Software Defined Networking](https://en.wikipedia.org/wiki/Software-defined_networking "Software Defined Networking")
- [Six reasons to move to cloud by Wired](https://www.wired.com/insights/2012/10/move-to-cloud-consider-saas/#:~:text=Resource%20costs%3A%20Gartner%20estimates%20that,run%20existing%20systems%20and%20infrastructure. "Reasons to move to cloud by Wired")
- [Openflow Switch Specification](https://opennetworking.org/wp-content/uploads/2013/04/openflow-spec-v1.3.1.pdf "OpenFlow Switch Specification")
- [Software-Defined Networking: A Comprehensive Survey](https://arxiv.org/pdf/1406.0440.pdf "Software-Defined Networking: A Comprehensive Survey")
- [Heuristic Traffic Engineering for SDN](https://www.tandfonline.com/doi/full/10.1080/24751839.2020.1755528 "Heuristic Traffic Engineering for SDN")
- [Traffic Engineering in SDNs](https://ieeexplore.ieee.org/document/6567024 "Traffic Engineering in SDNs")
- [What is a WAN](https://aws.amazon.com/what-is/wan/ "What is a WAN")
- [What is SD-WAN?](https://www.arubanetworks.com/sea/faq/what-is-sd-wan/ "What is SD-WAN")
- [SD-WAN](https://www.catonetworks.com/sd-wan/ "SD-WAN")
- [Open Networking Foundation](https://www.opennetworking.org/ "Open Networking Foundation")
---
# ST2334 Probability And Statistics
- **Canonical URL:** https://nus-guide.com/post/st2334-probability-and-statistics/
- **Published:** 2023-11-11
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** Mod Review
- **Keywords:** ST2334, Probability And Statistics, NUS, National University of Singapore
- **Words:** 231
> A review of ST2334 Probability And Statistics AY20/21 Semester 1 at NUS including useful links and places to look for resources for the module.
## Introduction
This course introduces students to basic probability theory and statistical inference. Topics include basic concepts of probability, conditional probability, independence, random variables, joint and marginal distributions, mean and variance, some common probability distributions, sampling distributions, estimation and hypothesis testing based on a normal population.
~ NUSMods
## Personal Opinion
I took this module during the covid semester so everything was done online.
I felt that I could have learnt more if it was physical.
Some of the topics taught here can be used to estimate your final grade based on the information some module has released (With Grades/Average/Variance, etc).
## Prerequisites
MA1102R or MA1312 or MA1505 or MA1507 or MA1521
## Format
1. 70% Final Exams
2. 30% Online Quizzes
## Topics
1. Basic Probabilities
2. Concept of Random Variables
3. Two dimensional variables and conditional distributions
4. Special Probability distributions
5. Sampling and Sampling distributions
6. Estimation based on Normal Distribution
7. Hypothesis testing based on normal distribution
## Exam
Here are the rules for the exam
1. No headphones
2. Can use multiple screens
3. Zoom on phone and PC
4. Excel/R for distribution calculations
As it was the covid semester, the exam was conducted online.
1. It was done on online
2. There was no backwards navigation during the exam
Expected Grade: B
Final Grade: B+
## Useful Links
1. [ST2334 Helper](https://github.com/prit3010/ST2334-Helper "ST2334 Helper"): A GitHub repository with tools for ST2334 Probability And Statistics.
2. [NUS Mods](https://nusmods.com/courses/ST2334/probability-and-statistics "ST2334 NUS Mods")
3. [St2334 Cheat Sheet](./notes/st2334_cheat_sheet.xlsx "ST2334 Cheat sheet")
### Other Reviews
1. [Deunitato's Review](https://deunitato.github.io/NUSCSMODS/ST2334/ "ST2334 Review")
2. [Hafeez's Review](https://izzhafeez.com/blog/mod-reviews/st2334 "ST2334 Review")
3. [Mundane mortal's Review](https://mundanemortal.wordpress.com/2021/06/15/y2s1-mod-review/ "ST2334 Review")
4. [Kokonut Shibe's Review](https://kokonutshibe.wordpress.com/2018/05/10/nus-ay17-18-semester-2-module-review/ "ST2334 Review")
---
# Tools to cruise through NUS
- **Canonical URL:** https://nus-guide.com/post/nus-tools/
- **Published:** 2024-02-13
- **Last modified:** 2025-10-20
- **Author:** Junhua
- **Tags:** NUS Guide
- **Keywords:** NUS, Tools
- **Words:** 482
> A list of tools that will help you plan your journey through NUS. This list will be updated as we find more tools that are useful for NUS students.
Here are a list of tools that you may find useful while you are in NUS.
## Before entering NUS
Before entering NUS, if you have some free time, I would recommend you guys to check out some special term courses that you can take.
This courses count for credits so that you can clear modules before school even starts.
1. [iBloc Returning NSF](https://www.nus.edu.sg/ibloc/iBLOC.html "iBloc Program"): A program for returning Full-Time National Servicemen (NSmen) who wish to have a head start in university education and transition back to academic life.
2. [Special Term](https://www.nus.edu.sg/registrar/academic-activities/special-term "Special Term"): A special term that allows students to take modules during the vacation period. (Yes this includes before you enter NUS)
3. [List of Special Term courses](https://www.nus.edu.sg/coursereg/docs/UG-NG-ST-Courses-Available.pdf "List of Special Term courses"): A list of modules that are available during the Special Term.
## If you are new to NUS
If you are just starting out, getting to know course registration is very important as there will be no emails sent to tell you how to do it.
Please take a look at this to understand how they work.
They are the main way that you will register for your courses.
1. [How CourseReg Works](https://www.nus.edu.sg/coursereg/using_coursereg_undergraduate.html "How CourseReg Works"): A guide to using CourseReg for module registration and how the system works
## While you are in NUS
### Module Planning
For module planning, the most popular website is NUSMods.
Before the start of every semester, the modules for the next semester will available in NUS Mods.
Usually NUS Mods is sufficient for planning.
However, if you still require other tools, feel free to take a look at the other websites which are available below.
1. [NUSMods](https://nusmods.com/ "NUSMods"): A tool to view NUS modules, timetable, and module reviews.
2. [CourseRekt](https://courserekt.vercel.app/ "CourseRekt"): A tool to view vacancies of NUS modules from past Module Registration Rounds.
3. [NUS Optimizer](https://nus-optimizer.com/ "NUS Optimizer"): A tool to help you plan your timetable.
4. [CourseReg Schedule](https://www.nus.edu.sg/coursereg/schedule-and-timeline.html "Schedule for coursereg"): View official coursereg schedule
### Internships
For those who are seeking internships, there are multiple websites available to find jobs.
Here are some of the aggregated websites which I have used to look for jobs/internships.
In the future, when I have more time, I will add in more places to look for jobs.
1. [Sushinoya Summer Tech Internships](https://github.com/sushinoya/singapore-tech-internships "SushiNoya Summer Tech Internships"): A list of tech internships available in Singapore.
2. [My Job Board](https://jh123x.com/job_board "Jh123x Job Board")
### Telegram Groups
Telegram is the main social platform that are used by NUS Students.
To look for telegram groups for different activities, please take a look at the links below
1. [Academia.Tools](https://www.academia.tools/ "Academia Tools"): A collection of telegram groups for NUS Students.
2. [Telenus](https://telenus.nusmods.com/ "TeleNUS"): A list of NUS Related Telegram Groups.
3. [Uni Telegram Groups (Reddit Post)](https://www.reddit.com/r/SGExams/comments/ui4ybn/uni_telegram_groups_for_nusntusmusutdsuss/ "University Telegram Groups"): A list of Telegram Groups for NUS, NTU, SMU, SUTD, SUSS, MIT.
## After you graduate
After graduation, there are still many things that are offered by NUS.
There are e-resources as well as further education opportunities.
1. [NUS Alumni Portal](https://alumnilifelong.nus.edu.sg/ "NUS Alumni Portal"): A portal for NUS alumni to make use of NUS E-Resources, Book NUS Facilities and more.
2. [NUS Lifelong Learning](https://scale.nus.edu.sg/programmes/lifelonglearning/alumni "NUS Lifelong Learning"): A portal for NUS alumni to continue learning and up-skilling.