Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 36

Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

CSE 390B, Spring 2022


Building Academic Success Through Bottom-Up Computing

Procrastination &
Computer Networks

Procrastination Activity, Stress Response Cycle Discussion,


Gearing up for Finals Week, Introduction to Computer Networks
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Lecture Outline
❖ Procrastination Activity
▪ Combating Procrastination, Surviving Dead Week

❖ Stress Response Cycle Discussion


▪ Completing the Stress Response Cycle

❖ Gearing up for Finals Week


▪ Tips for Making the Most out of Your Preparation

❖ Introduction to Computer Networks


▪ Connecting our Computer to the Internet
2
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Let’s Talk Procrastination


❖ What is procrastination?
▪ Procrastination is the act of putting
things off or choosing to do
something you prefer to do (or
might even need to do) instead of
the actual project or chore or work
you need to be doing now
▪ Common challenge for college
students, with about 80-95% of
students reporting that they
procrastinate (Steel, 2007)

Steel, Piers. “The nature of procrastination: a meta-analytic and theoretical review of quintessential
self-regulatory failure.” Psychological Bulletin Journal 133, no. 1 (2007): 65–94.
https://www.researchgate.net/publication/6598646_The_nature_of_procrastination_a_meta-
analytic_and_theoretical_review_of_quintessential_self-regulatory_failure_Psychol_Bull_133_65-94 3
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Combatting Procrastination
❖ Identifying why we
procrastinate and the
internal dialogue we have
with ourselves

❖ Creating a proactive strategy


to course-correct when you
notice you're putting off
what needs to be done

4
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Grab a piece of paper!

5
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Grab a piece of paper!

6
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Grab a piece of paper!

AVOIDANCE
AREAS

When you
procrastinate,
what do you
avoid doing?

Identify 3-5 areas

7
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Where does procrastination impact you most?

PERSONAL
SHOPPING/HOME/
SCHOOL/COLLEGE MAINTENANCE
● Eating well
● Exercising / Wellness ● Going to class ● Paying bills
activities ● Doing class readings ● Getting financial aid
● Getting enough sleep ● Studying for tests/exams taken care of (i.e.
● Bathing & hygiene ● Doing homework/ FAFSA, forms, etc)
● Health care (i.e. assignments ● Doing laundry
doctor’s visit) ● Writing papers ● Cleaning
● Balancing bank ● Starting long-term ● Grocery shopping
account projects ● Doing dishes
● Relaxation & hobbies ● Finding a study group
● Talking to an instructor
or TA
● Making an advising
SOCIAL/RELATIONSHIPS appointment WORK/CAREER

● Talking with friends ● Going to work


● Writing email ● Applying to
responses internships/jobs
● Socializing ● Preparing a resume
● Calling relatives ● Studying for interviews

8
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Grab a piece of paper!

AVOIDANCE PROCRASTINATION
AREAS BEHAVIORS

When you How do you


procrastinate, procrastinate?
what do you In other words, what
avoid doing? do you do instead of
the work that needs
to be done?

Identify 3-5 areas Identify 3-5 behaviors

9
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Grab a piece of paper!

AVOIDANCE PROCRASTINATION PLANNING FOR


AREAS BEHAVIORS SUCCESS

When you How do you What can you do to


procrastinate, procrastinate? avoid procrastination?
what do you In other words, what What action can you
avoid doing? do you do instead of take to refocus yourself
the work that needs on the task you need to
to be done? complete?

Identify 3-5 areas Identify 3-5 behaviors Identify 3-5 actions

10
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Lecture Outline
❖ Procrastination Activity
▪ Combating Procrastination, Surviving Dead Week

❖ Stress Response Cycle Discussion


▪ Completing the Stress Response Cycle

❖ Gearing up for Finals Week


▪ Tips for Making the Most out of Your Preparation

❖ Introduction to Computer Networks


▪ Connecting our Computer to the Internet
11
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Completing the Stress Response Cycle


❖ In Episode 2, the Nagoski sisters talk about 12 evidence-
based strategies to deal with the stress itself
▪ Helps you complete the stress response cycle and return to a state
of safety inside your body

▪ Of the 12 strategies discussed in the podcast episode, which one


resonated most with you and why?

12
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Completing the Stress Response Cycle


❖ A major part of finding activities that complete your stress
response cycle is being able to judge if an activity caused a
release feeling for you
▪ Can you think of any moments in the past where this release
occurred?

▪ Can you think of any moments where you were trying to relieve
your stress, but you didn't feel that release?

❖ How can we build these practices into our daily routine


without thinking about them as a “chore” we have to do?

13
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Lecture Outline
❖ Procrastination Activity
▪ Combating Procrastination, Surviving Dead Week

❖ Stress Response Cycle Discussion


▪ Completing the Stress Response Cycle

❖ Gearing up for Finals Week


▪ Tips for Making the Most out of Your Preparation

❖ Introduction to Computer Networks


▪ Connecting our Computer to the Internet
14
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Gearing up for Finals Week


❖ Revisit and reassess your goals each day
▪ Break-up into different levels—minimal, solid, reach

❖ Have an accountability buddy


▪ Study groups or working sessions—having someone who can help
you stay motivated, accountable, and avoid procrastination

❖ Recall Bloom’s Taxonomy


▪ How is your preparation involving higher level thinking skills?

❖ Stick to a routine
▪ Provides normalcy & structure for maintaining sleep and wellness
15
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Lecture Outline
❖ Procrastination Activity
▪ Combating Procrastination, Surviving Dead Week

❖ Stress Response Cycle Discussion


▪ Completing the Stress Response Cycle

❖ Gearing up for Finals Week


▪ Tips for Making the Most out of Your Preparation

❖ Introduction to Computer Networks


▪ Connecting our Computer to the Internet
16
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Overview of Computer Networks


❖ We will go over an overview of networks
▪ Take CSE 333 (Systems Programming), CSE 461 (Computer
Networks), and CSE 452 (Distributed Systems) to learn more

❖ Our focus:
▪ Brief intro to what connecting to the internet looks like under the
hood
▪ What that connection might look like implemented in our
computer

17
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Networks = Really, Really Long Wires


❖ At a fundamental level, there’s nothing magic about the
Internet—it’s the same concepts we used to build our
CPU, just with longer wires
▪ Still 1s and 0s, still just combinational + sequential logic


Combinational & Combinational &
Computer.hdl Computer.hdl
Sequential Logic Sequential Logic

18
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Thinking about the Network: Layers


❖ To manage the Application Layer

complexity, we think webpage (.html) meme (.png)

about the network in


layers Other layers exist between
here; out of 390B scope

Data Link Layer

❖ It’s all 0s and 1s, but dest source


data
address address
each layer is a different
way of “framing” or
thinking about those 0s
Physical Layer
and 1s
1 0 1 0 0 0 1 0 1 1 0 0
▪ Each layer zooms out a
little more
19
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Application Layer
❖ Conceptually the “top” layer: looking at internet traffic as
direct communication between applications
❖ Common use: HTTP (HyperText Transfer Protocol)
▪ Your browser sends an HTTP request to a server
▪ The server sends back an HTTP response with data attached

I would like to load:


http://instagram.com/dog/latest_story.png

I found it:

Browser Server

20
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Application Layer
❖ Conceptually the “top” layer: looking at internet traffic as
direct communication between applications
❖ Common use: HTTP (HyperText Transfer Protocol)
▪ Your browser sends an HTTP request to a server
▪ The server sends back an HTTP response with data attached

I would like to load:


http://instagram.com/dog/latest_story.png
Data Link Layer

dest source
data
addressI foundaddress
it:
dest source
data
address address
Browser Server
dest source
data
address address

dest source
data
address address 21
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Data Link Layer


❖ A computer network is simply multiple computers
connected by a single wire

0B t
39 ne
)
of er
e Int
sc om
d fr
op
on ta
ey da
❖ Why is it better to send smaller chunks of data?

(b ets
G
router
computer computer computer
(also a computer)
00:1d:4f:47 4c:44:1e:8f de:ad:be:ef
24:48:96:12

dest address source address


data
4c:44:1e:8f 24:48:96:12

22
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Data Link Layer


❖ Every computer will “hear” the message

0B t
39 ne
)
of er
e Int
❖ How do the other computers know to ignore

sc om
d fr
op
on ta
ey da
an incoming packet of data?

(b ets
G
router
computer computer computer
(also a computer)
00:1d:4f:47 4c:44:1e:8f de:ad:be:ef
24:48:96:12

dest address source address


data
4c:44:1e:8f 24:48:96:12

23
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

NIC (Network Interface Card)


❖ We don’t want the CPU to waste time always listening to
the network wire, especially when it’s not even the
destination computer
❖ Solution: the NIC—a new piece of the computer
dedicated to dealing with the network wire
▪ Listens to the network wire until it hears a destination address,
checks if it matches this computer, and only sends to CPU if so

computer
00:1d:4f:47

NIC dest address source address


data
4c:44:1e:8f 24:48:96:12

24
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

NIC Implementation in Your Computer


❖ Before, would have to accept NIC as “magic”
❖ Now, can imagine exactly how to build this chip, and for a
simple implementation, turns out it’s fairly doable
(controls whether to
AND pass on to CPU)

0 = 1 = 1 = 1 = 0 = 1 = 0 = 0 =

0 1 1

Next Index:
3
1
0 1 0 25
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

NIC Implementation in Your Computer


❖ Before, would have to accept NIC as “magic”
❖ Now, can imagine exactly how to build this chip, and for a
simple implementation, turns out it’s fairly doable
(controls whether to
AND pass on to CPU)

0 = 1 = 1 = 1 = 0 = 1 = 0 = 0 =

0 1 1

Making a
choice? Our
good friend
Next Index:
Mux.hdl!
3
1
0 1 0 26
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

NIC Implementation in Your Computer


❖ Before, would have to accept NIC as “magic”
❖ Now, can imagine exactly how to build this chip, and for a
simple implementation, turns out it’s fairly doable
(controls whether to
AND pass on to CPU)

0 = 1 = 1 = 1 = 0 = 1 = 0 = 0 =

0 1 1

Making a
choice? Our
good friend
Next Index:
DMux.hdl!
3
1
0 1 0 27
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

NIC Implementation in Your Computer


❖ Before, would have to accept NIC as “magic”
❖ Now, can imagine exactly how to build this chip, and for a
simple implementation, turns out it’s fairly doable
(controls whether to
AND pass on to CPU)

0 = 1 = 1 = 1 = 0 = 1 = 0 = 0 =

0 1 1

Constantly
incrementing Making a
an address? choice? Our
Sounds like good friend
PC.hdl Next Index:
DMux.hdl!
3
1
0 1 0 28
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

NIC Implementation in Your Computer


❖ Before, would have to accept NIC as “magic”
❖ Now, can imagine exactly how to build this chip, and for a
simple implementation, turns out it’s fairly doable
(controls whether to
AND pass on to CPU)

0 = 1 = 1 = 1 = 0 = 1 = 0 = 0 =

0 1 1

Constantly
incrementing Making a
an address? choice? Our
Sounds like good friend
PC.hdl! Next Index:
DMux.hdl!
3
1
0 1 0 29
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

NIC Implementation in Your Computer


❖ Before, would have to accept NIC as “magic”
❖ Now, can imagine exactly how to build this chip, and for a
simple implementation, turns out it’s fairly doable
(controls whether to
AND pass on to CPU)

Selectable
0 = 1 = 1 = 1 = 0 = 1 = 0 = 0 = read/write?
Sounds like
RAM.hdl!
0 1 1

Constantly
incrementing Making a
an address? choice? Our
Sounds like good friend
PC.hdl! Next Index:
DMux.hdl!
3
1
0 1 0 30
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

NIC Implementation in Your Computer


❖ Before, would have to accept NIC as “magic”
❖ Now, can imagine exactly how to build this chip, and for a
simple implementation, turns out it’s fairly doable
(controls whether to
AND pass on to CPU)

Selectable
0 = 1 = 1 = 1 = 0 = 1 = 0 = 0 = read/write?
Sounds like
RAM.hdl!
0 1 1

Constantly
incrementing Making a
an address? choice? Our
Sounds like good friend
PC.hdl! Next Index:
DMux.hdl!
3
1
0 1 0 31
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

NIC Implementation in Your Computer


❖ Before, would have to accept NIC as “magic”
❖ Now, can imagine exactly how to build this chip, and for a
simple implementation, turns out it’s fairly doable
(controls whether to
Bitwise/multi-bit
Bitwise/multi-bit AND pass on to CPU)
operations?
operations?
Sounds
Sounds like
like Selectable
And16.hdl! read/write?
0 = 1 = 1 = 1 = 0 = 1 = 0 = 0 =
Sounds like
RAM.hdl!
0 1 1

Constantly
incrementing Making a
an address? choice? Our
Sounds like good friend
PC.hdl! Next Index:
DMux.hdl!
3
1
0 1 0 32
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

NIC Implementation in Your Computer


❖ Before, would have to accept NIC as “magic”
❖ Now, can imagine exactly how to build this chip, and for a
simple implementation, turns out it’s fairly doable
(controls whether to
Bitwise/multi-bit AND pass on to CPU)
operations?
Sounds like Selectable
And16.hdl! read/write?
0 = 1 = 1 = 1 = 0 = 1 = 0 = 0 =
Sounds like
RAM.hdl!
0 1 1

Constantly
incrementing Making a
an address? choice? Our
Sounds like good friend
PC.hdl! Next Index:
DMux.hdl!
3
1
0 1 0 33
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Connecting NIC to Memory


❖ The keyboard and screen communicated with the CPU via
memory maps—agreed-upon regions of RAM that can be
read/written by the hardware of the devices themselves
❖ NIC could be no different
▪ Every time the right address is detected, copy the following data
into part of RAM where the CPU can retrieve it once it gets a
chance
NIC

CPU Screen

Keyboard
34
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Takeaways: Networking
❖ The network is fundamentally the same hardware we’ve
been looking at

❖ Its incredible power comes from scale: how much data


and how many computers it connects
▪ To manage this complexity, we think of it in layers

❖ Interfacing with the network can be done with specialized


hardware
▪ This frees the CPU from monitoring constantly
▪ Access data only when needed

35
Lecture 18: Procrastination & Computer Networks CSE 390B, Spring 2022

Lecture 18 Wrap-up
❖ We’re on the Week 10 home stretch!
▪ Tuesday: Final Project Check-in, Professor Meeting Report Discussion
▪ Thursday: Course Wrap-up, TA-led activity(!)

❖ Project Reminders
▪ Project 7, Part II: Professor Meeting Report due tonight (5/26) at
11:59pm PDT
▪ Project 8: Debugging & Implementing a Compiler due next Tuesday
(5/31) at 11:59pm PDT
▪ Final Project, Part I: Outline of E-Portfolio due next Thursday (6/2) at
11:59pm PDT

36

You might also like