Tags:
view all tags
-- Main.DonaldActon - 21 Jun 2011 ---+ Socket Programming ---++ Knowledge assumed prior to starting this module * Data is sent in packets * For TCP data is streamed and broken up into packets * ACKS combined with timeouts are used to ensure the reliable delivery of data * Both ACKS and data can be lost * Packets have addresses in them that are used to indicate where the packet is delivered ---++ Learning Outcomes 1 Explain what the role of an IP address is in a computer network. 1 Explain what the role of a port number is in a computer network. 1 Write a Java program that can make a TCP connection 1 Write a Java program that can accept a TCP connection 1 Write a Java program that can send and receive data on an established TCP connection 1 Enumerate and explain the different type of network related errors a program using/establishing a TCP connection might encounter and why/how they might be caused (e.g. connection not accepted, connection times out, connection failure during transfer 1 Compare and contrast the properties of a TCP vs UDP "connection." 1 Something about XDR and the relationship ---++ Lesson Plan ------+++ Lecture 1 * Pre class Activities * Video discussing the construction of code to send a UDP packet * Video Discussing the construction of code to receive a UDP packet * In Class Activities * Student groups assigned to be either the client or the server and then they have to exchange data between each other. First they send character data, then they go to numbers * Have to interact with a provided server that does things in binary * Invention activity for XDR * After Class Activities ------+++ Lecture 2 * Pre-class Activities * Video discussing the construction of code to make a TCP connection * Video discussing the construction of code to accept a TCP connection * In Class Activities * Post Class Activities ---++ Instructor Resources * [[http://cgi2.cs.rpi.edu/~hollingd/netprog/netprog.php][RPI Introductory Networking Course]] The course content includes things like: * Simple Client Server using TCP * Simple UDP client and server * Byte Ordering issues * Errors that can be returned by socket API * I/O multiplexing * Java Network Programming ---++ Student Resources * [[http://www.faqs.org/faqs/unix-faq/socket/][Socket FAQ]] * [[http://beej.us/guide/bgnet/][Beej's Guide to Network Programming]] The perspective is primarily from C, but it does provide a decent overview of program structure and what needs to be done.
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r7
|
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r2 - 2011-06-21
-
DonaldActon
Home
Site map
BETA web
Communications web
Faculty web
Imager web
LCI web
Main web
SPL web
Sandbox web
TWiki web
TestCases web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback