cs2911-3-1Lab-SocketsInPythonx

Download Report

Transcript cs2911-3-1Lab-SocketsInPythonx

CS2911
Week 3, Lab

Today





Review Muddiest Point
Lab 3
Lab 4
Muddiest Point
Thursday Friday

Quiz 2: Encoding in Python
CS2911
Dr. Yoder
1
Muddiest Point 3-1
Still feel confused about the differences between TCP
and UDP.
Are we writing the next_bytes method in our lab 3?
Will we be expected to actually program a client and
server in Python in class/lab
Where are all the python code coming from? Are they
all from our notes? For example, I did not remember
the to_bytes thing. [class 2-1, slide 33]
An IPv6 packet walks into a bar. Nobody talks to him
Does 'host' mean client?
What happens if you do not close the socket?
Is the code from the slides today sort of what we need
to gear towards in our lab code?
TCP vs UDP
Lab 3
Labs
class slides
joke
terminology
sockets
Lab 3
2
Muddiest Point 3-1
Could you walk the class through how to solve and write
the Python code in the last exercise we did? Storing
encoding in
2000 as a 2 byte big-endian raw binary number?
python
The great thing about TCP jokes is that you always get
them.
joke
What kind of labs can we expect later in the course? Are
we going to get into setting up a sever that can actually
handle multiple clients at once? [Yes, but
multithreading code is provided]
Labs 4-10
Where is the socket located? Built into the application
layer, or known by the socket?
sockets
A TCP packet walks in to a bar and says "I want a beer",
barman says "you want a beer?" and TCP packet says
"yes, a beer".
joke
3
Muddiest Point 3-1
Confused as to the way TCP demultiplexes. How is it sure
it is ordering all the packets, and how is it sure if a packet tcp
hasn't been delivered? Does it require a return?
implementation
encoding in
still lost in Python
python?
I'd tell you a UDP joke but I don't know if you'd get it
joke
Could you give more examples of coding in Python?
encoding in
[Please run example code from slides in Python Console] python?
character
joke
what does listen_socket.accept() return?
sockets
from_bytes is still a little off to me, it doesn't seem to encoding in
return what i expect yet
python
Does TCP make things easier for the application side of
the client?
sockets
4
Questions about Lab 3?




Design process
How to implement in Python?
Protocol definition
What your code should do



Receive message
Print to screen or write to file
…
5
Questions about Lab 4?
CS2911 Dr. Yoder
6
SE-2811
Dr. Josiah Yoder
7
Acknowledgement

This course is based on the text
Computer Networking: A Top Down
Approach
7th edition
Jim Kurose, Keith Ross
Addison-Wesley
8