Assignment 2 - Software Defined Network Traffic System

Due - Sunday, June 22, 2025

This is a group assignment. Group members can be found in Assignment2Groups.docx.

Introduction

The Hamilton Public Transportation department wishes to bring some intelligence to the control of traffic in its downtown area. Since there are many one-way streets it should be possible to synchronize the traffic lights to facilitate traffic flow. Traffic flow is very similar to the flow of packets in a computer network, therefore it should be feasible to control the flow of traffic through a software defined network.

This assignment is more in the form of a knowledge base (or sometimes called a Book of Knowledge, for example see The Guide to the Software Engineering Book of Knowledge). You will be collecting and analyzing this project from several angles, and you will group your knowledge in various categories before proposing your design.

This is not a for-profit based project. It is a service-based project. In the end the hope is that traffic conditions in downtown Hamilton will be alleviated by a well-thought out centralized traffic controller. The implications are that proper traffic control will not only save the travellers' time and money for fuel, but the absence of vehicles idling at a stop light will be better for the environment.

Videos

The Software Defined NetworkIntroduction to SDN (Software-defined Networking)
What is software-defined networking (SDN)?
Software Defined Networking | SDN
Traffic FlowTraffic Flow Optimization
Transportation 101: Traffic Flow
Traffic flow measured on 30 different 4-way junctions
The Simple Solution to Traffic (a case for self-driving cars)

Research Material

Background information

The downtown area of Hamilton consists of the following:

Hamilton Downtown

As you can see from the map there are many one-way streets in downtown Hamilton. The goal is to synchronize these lights by some central controller such that a driver can drive through the downtown area in one direction at a certain speed without ever having to stop his/her car. The timing of these lights will determine the speed of the traffic.

Traffic Challenges

One can start this problem by assuming a perfectly ideal situation. This would mean one car on one road travelling in one direction. If you start with such a grid, you can determine the timing of the traffic lights to ensure that no one has to face a red light. In the following 5×5 grid, assume the lights are 500m apart (0.5km) making the grid 2km×2km:

A 4x4 Traffic Grid

To approach this problem, answer the following questions in your submitted assignment:

Non-Ideal Situations

If the synchronization of lights depended on an ideal situation, there would probably be no need for a central controller. Non-ideal situations do occur. In your assignment, answer how you would deal with the following:

In your assignment, answer the following question: if it is not possible to synchronize the lights to ensure all travellers will always see a green light at every intersection, what approach do we take now?

Information Collection

To assist with the corner-cases of traffic control, some sort of congestion detection mechanism is required. In your assignment, please answer how the following can help with your traffic controller.

Centralized Traffic Management

To assist with deriving your algorithm, you might consider the following questions:

The Traffic Light

At the base of your traffic controller is the traffic light. Look at the links to traffic simulators given in the Research Material section of the assignment and add to your assignment any other considerations you can think of connected with the traffic light.

The Environment, Cost Savings

Do an analysis on how much fuel cost is saved with synchronized traffic lights. You can assume a flow of 100 cars per hour, each travelling 5km, going through 10 traffic lights. Likewise, do an analysis on the effect of engine idling on the environment with synchronized traffic lights. You can assume the same: a flow of 100 cars per hour, each travelling 5km, going through 10 traffic lights.

Conclusion

You have up until know analyzed many sides of this problem. Do you think you could prepare a centralized traffic controller that would alleviate traffic problems in downtown Hamilton? Is such a project worth it, or are there simply too many variables that trying to bring order would be pointless?

Weekly Problems

All weekly problems are to be done in class unless otherwise specified.

Week 4 - The Environment and Public Welfare (by email, due Sunday, June 1st, midnight)

  1. Locate three reports which are aligned with the Global Reporting Initiative. Compare and contrast the data contained within them. How readily does the data enable comparisons between the different organisations?
  2. Select two of the 2015 Sustainable Development Goals and explain how progress towards the targets could be measured. How could these measurements inform the overall assessment of progress?
  3. A study is being carried out on alternative energy sources for the future generation of electricity in your province. The energy sources include coal, natural gas, nuclear, solar and wind energy (and combinations thereof). List and describe the environmental and social effects which would need to be considered when comparing these alternatives.

Week 5 - The Design Process I

  1. What are the main engineering problems to be faced in establishing a permanent human settlement on the moon?
  2. The fishing industry of Newfoundland wants to improve the efficiency of detecting large schools of fish as well as the species of the fish in the school. This is to prevent the overfishing of endangered species. What are the components of such an engineering system, and provide design details for each component.

Week 6 - The Design Process II

  1. Consider the energy supply and distribution system of the city where you live. How would you undertake a planning study to provide adequate energy over the next thirty years? What background information would you want to gather in undertaking this study? List several alternative sources of energy that might be used to increase supply to meet demand. What other energy options would you consider in your study?
  2. The Government of South Australia is considering developing a nuclear waste storage site in a remote area of the state. Go through the steps of problem formulation for this project using the below table as a guide. Include in this process a list of the background data that you would require in order to adequately formulate the problem.

    Actions for Problem Solving

Marking Rubric

Assignment 2 is worth 15% of your final grade and as such is marked out of 15 as follows:

Does not meet expectationsSatisfactoryGoodExceeds Expectations
Traffic Challenges - the ideal situation
(2 marks)
Does not meet requirementsMeets the most important requirementsMeets all requirements with minor errorsMeets all requirements with no errors
Non-ideal Situations
(2 marks)
Does not meet requirementsMeets the most important requirementsMeets all requirements with minor errorsMeets all requirements with no errors
Information Collection
(2 marks)
Does not meet requirementsMeets the most important requirementsMeets all requirements with minor errorsMeets all requirements with no errors
Centralize Traffic Management
(2 marks)
Does not meet requirementsMeets the most important requirementsMeets all requirements with minor errorsMeets all requirements with no errors
The Traffic Light
(1 marks)
Does not meet requirementsMeets the most important requirementsMeets all requirements with minor errorsMeets all requirements with no errors
Environment, Cost Savings
(1 marks)
Does not meet requirementsMeets the most important requirementsMeets all requirements with minor errorsMeets all requirements with no errors
The Conclusion
(2 marks)
Does not meet requirementsMeets the most important requirementsMeets all requirements with minor errorsMeets all requirements with no errors
Weekly Questions
(3 marks)
Answers no question correctlyAnswers some questions correctlyAnswers most questions correctlyAnswers all Questions correctly

Submission

Please email any source code and documentation to: miguel.watler@senecapolytechnic.ca

Late Policy

You will be docked 10% if your assignment is submitted 1-2 days late.
You will be docked 20% if your assignment is submitted 3-4 days late.
You will be docked 30% if your assignment is submitted 5-6 days late.
You will be docked 40% if your assignment is submitted 7 days late.
You will be docked 50% if your assignment is submitted over 7 days late.