Topics Covered: Wireless, Mobility, Indirect Routing, Brief Cumulative Review
Wireless is not the same thing as mobility, but are related. Wireless just refers to being able to connect hosts over a wireless link. Mobility is connecting hosts where the network that one "belongs to" changes over time. Imagine you have a smart phone, you're on a Whatsapp call over data, then connect to WiFi halfway through. How do we handle that?
AP (Access Point): Also called a base station, provides wireless connectivity to a local area. In fact, wireless routers in homes are common, providing both wireless connectivity and routing in one unit. The administrator chooses a frequency for that AP, and broadcasts a beacon frame periodically with its MAC address. Devices which want to connect to a certain AP listen for this beacon frame, and then run DHCP to get IP address in the AP's subnet (note: AP is not a subnet).
BSS (Basic Service Set): An AP and its wireless hosts.
In passive scanning, the beacon frames are sent from APs, and the association request frame (request to join a certain AP) is sent from the host, and response from the AP.
In active scanning, the host broadcasts a probe request frame, AP sends probe response frame. The host then sends an association request frame and AP responds as with passive scanning.
Key difference between the two is that passive scanning involves the APs bearing responsibility for informing possible hosts of their availability, while active scanning involves the new host asking for what is available.
In wireless, we can't really detect collisions, due to the nature of wireless mediums. It's hard to measure radio frequency signals since they fade quickly (not gonna go into the EE stuff here but trust me). So instead of CSMA/CD we introduce CSMA/CA (collision avoidance).
DIFS
period of time, then transmit the entire frame (no aborting or jamming).SIFS
period of time.Mobility involves selecting the right AP and maintaining a reachable IP address. If we are staying within the same subnet, then our IP address doesn't need to change, which simplifies things. If we detect that our current AP is too weak (we are too far from it), then find a new AP, and since we are connected to the same switch, that switch can relearn which interface is connected to our host. Not too difficult. But what if our movement means our IP address needs to change?
Let's first define a home to be the place where the host is based from. For a stationary host, like a desktop computer, it's always home. For a mobile host, like a smartphone, it might not be at home (going to work, school, etc). If we aren't at home, we need to get a new IP address. We assign a home agent to keep track of where the mobile host is.
We define a few more terms.
So the steps are fairly simple. When the mobile host joins a new network (visited network):
Let's say you were on a video call on your iPhone with someone, and you started on your home network, then during the call walked over to Starbucks across the street. Starbucks has its own WiFi and network, which you connected to because your home connection was too weak. Starbucks gives you a new IP (DHCP), and you inform your home agent of your new IP. The person you're calling only knows about your old IP though, so how does the call continue?
Sometimes this is called triangle routing.
Let's go over what happens if we have a new device/host and we want to connect to the Internet and access google.com, incorporating as much of what we learned along the way as possible.
I'll go off the example in lecture for this.
I like to think of this process as obtaining prerequisites.
These summarized lecture notes, along with the activities and content covered in discussion, should be enough to have a solid theoretical (and a bit applied thanks to the projects) understanding of networking. In my opinion, this is one of the most undervalued courses within the UCLA CS department and is a must-do for any good software engineer. Assuming we keep offering CS 134, distributed systems is a good next step, and there are a LOT of jobs (yes, even in this job market) in backend and big data engineering systems. Best of luck with your future endeavors!
โ Spring 2024 LAs