Understanding Networks: RESTful interface

Roxanne and I decided to specify a concept for the RESTful interfaces assignment.

I am still unsure about the concept of a RESTful interfact, and how it differs from how the internet usually works. It would help to get an example of a non-RESTful interface on the internet. But it seems like RESTful describes how we usually interact with the internet. For example, I go on YouTube, I type in “flock of seagulls” in the search bar, and the website returns a representation of their stock of resources corresponding to flock of seagulls. I then select the video I want, and YouTube provides me with that resource. To my knowledge, this is how all websites work. Is this is RESTful?

Our concept:

  • a website-controlled 50-pixel LED strip, where each user will be able to see what color the current strip is and what pattern is being run on it.
  • The user will be able to select their own color, and select one of three patterns on it (the patterns based on fastLED and Neopixel demo-reel default patterns).
  • The interface will be based on the last user’s commands, so if you change the color/pattern of light, it can be changed the moment after you submit it. (This will be one of the challenges to the interface, how to handle competing user commands).

 

 

Understanding Networks: Packet Analysis Assignment

Packet Analysis Assignment

My house Wi-Fi  has the internet IP address of 192.168.0.8. I learned that there was a public vs private IP addresses and that the 192.X.X.X range was reserved for private use.

This afternoon on Wireshark, I ran a short 64 second trace that captured 4049 packets. I based this analysis on that trace.

How much of your network traffic is inbound? 

the filter ip.dst==192.168.0.8 yielded: 2502/4049 packets (61% of traffic inbound)

How much is outbound?

the filter ip.src==192.168.0.8 yielded: 1466/4049 packets (36% of traffic outbound)

What portion of it is HTTP traffic? 

I learned that HTTP traffic is found using TCP filter port 80. I did not find any packets were HTTP.

How many devices are active on your network? 

If all the devices connected to my wifi network are 192.168.X.X then simply all devices are different devices using that wifi. I also learned these addresses are called IPv4 addresses.

192.168.0.9

192.168.0.6 that’s me

192.168.0.41

192.168.0.12

192.168.0.1

What are their relative levels of activities? 

it was mostly my address and the router address that was active (out of the 192.168.X.X addresses) since I was the only on home at the time. Other roommate was home too, but not sure how active they were. I am unsure why my traffic show up as my IPv4 if everything to the internet went through the router anyway?

What sites are the most common sources and destinations for your traffic? 

The most common destinations from my router are GQUIC to “Payload (Encrypted)” or TCP to “50XXX [ACK]”

Understanding Networks / Traceroute Assignment

For my traceroute assignment I decided to traceroute three sites I frequently visit: YouTube (www.youtube.com), BBC News (news.bbc.co.uk) and my website (jasonyung.ca).

Summary of Analysis:

-for the first 8 routes (defining a route as 1,2,3 etc which appeared in Terminal sequentially) the routes were the name: “AS12 New York University”

-BBC veers off to England soon after, the other two stay in America. To my surprise my website never goes to Canada. They both go to middle America, mostly through Google servers.

Questions:

-the ending location for facebook seems to be geolocated at the bottom of a lake?

“AS15169 Google LLC”
“37.7510,-97.8220”
Geo-Location seems to be in the middle of the Cheney reservoir

17 * lga34s19-in-f14.1e100.net (172.217.12.142) 3.912 ms 3.829 ms

Trace-route documentation: https://docs.google.com/document/d/1QYGymUcS-1oNRSc4GgNwwtc_yCxfw0SNVZ5Ik5HPDWg/edit?usp=sharing

 

 

Understanding Networks: Assignment #1 Ball Game

The ball drop game took some doing but I managed to figure it out.

Most difficult was figuring out how the link up the Arduino Sketch to the Processing Sketch and ITP Sandbox Server. To be honest, I’m still not sure how it all works. All I know is that I stuck the BallDropServer IP address from the Sandbox and stuck it into the Arduino sketch, the BallDropClient sketch and it started working! (See video above).

Instead of a joystick, I used two potentiometers for the X and Y axis respectively. It was a while since I used both a button and pots, so I had to test both separately on a isolated Arduino sketch.

Here’s a photo of the way the Arduino was connected: