clientserverIntro - CS 580 Client-Server Programming Spring Semester 2009 Doc 3 Intro to Client-Server Copyright All rights reserved 2010 SDSU Roger

clientserverIntro - CS 580 Client-Server Programming Spring...

This preview shows page 1 - 13 out of 57 pages.

CS 580 Client-Server Programming Spring Semester, 2009 Doc 3 Intro to Client-Server Jan 28, 2009 Copyright ©, All rights reserved. 2010 SDSU & Roger Whitney, 5500 Campanile Drive, San Diego, CA 92182-7700 USA. OpenContent ( http:// ) license defines the copyright on this document.
Reading 2 Java Java Network Programming, Harold 3rd Ed, Chapter 2 - Network Basics Chapter 4 Streams Chapter 9 Sockets for Clients Ruby Programming Ruby, Thomas, 2'ed Chapter 10 Basic Input & Output Class IO documentation (pp 503-515) IPSocket & TCPSocket in Appendix A
References 3 Wikipedia, various articles, explicit references on individual slides
Network Overview 4 Messages divided into packets Each packet routed separately Routing Issues Overhead issues
Send Message To Machine A 5 Network Cloud A B This is just a sample message that one might send on a network to another machine.
Sending 6 This is just a sample message that one might send on a network to another machine. A:1:This is just a samp A:2:le message that one A:3: might send on a ne A:4:twork to another ma A:5:chine. Network Cloud A B Tanenbaum - please forgive the gross oversimplification here.
Receiving 7 This is just a sample message that one might send on a network to another machine. A:1:This is just a samp A:2:le message that one A:3: might send on a ne A:4:twork to another ma A:5:chine. Network Cloud A B Tanenbaum - please forgive the gross oversimplification here.
Issues 8 How does the message get to A How does the message get to the correct program on A How do packets get lost How do packets get out of order
Routers 9 Cover routing tables, delay, bu er overflow, congestions, loops, ttl. See for more information.
Some Useful Programs 10 netstat Show status of network connections on machine lsof list open files (& pipes & sockets) traceroute Show the route to remote machine
netstat 11 Windows, Unix/Linux Al pro 14->netstat Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 17680 0 10.0.1.192.60840 kusc-pc-stream2..irdmi ESTABLISHED tcp4 0 0 10.0.1.192.60627 208.43.202.32-st.http ESTABLISHED tcp4 0 0 10.0.1.192.60623 adsl-68-20-22-55.28205 ESTABLISHED tcp4 0 0 localhost.26164 localhost.60431 ESTABLISHED tcp4 0 0 localhost.60431 localhost.26164 ESTABLISHED tcp4 0 0 10.0.1.192.afpovertcp 10.0.1.200.53611 ESTABLISHED tcp4 0 0 localhost.26164 localhost.53896 ESTABLISHED tcp4 0 0 localhost.53896 localhost.26164 ESTABLISHED tcp4 0 0 localhost.26164 localhost.51153 ESTABLISHED tcp4 0 0 localhost.51153 localhost.26164 ESTABLISHED tcp4 0 0 localhost.26164 localhost.49164 ESTABLISHED tcp4 0 0 localhost.49164 localhost.26164 ESTABLISHED tcp4 37 0 10.0.1.192.49163 174.36.30.66-sta.https CLOSE_WAIT tcp4 37 0 10.0.1.192.49162 174.36.30.67-sta.https CLOSE_WAIT tcp4 0 0 10.0.1.192.60862 WAREHOUSE-THREE-.55510 TIME_WAIT tcp4 0 0 10.0.1.192.60861 dhcp128036163075.55165 TIME_WAIT etc See
netstat -s 12 Al pro 13->netstat -s tcp: 1290678 packets sent 169 data packets (52330 bytes) retransmitted 686952 ack-only packets (8670 delayed) 1530460 packets received 332351 acks (for 114678930 bytes) 8686 duplicate acks 760 completely duplicate packets (611003 bytes) 27337 out-of-order packets (34890076 bytes) 11654 connection requests 104 connection accepts 48 bad connection attempts 8 listen queue overflows etc.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture