5 - Unix Net Prog

5 - Unix Net Prog - Last Lecture Introduction to Networking...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Last Lecture Introduction to Networking and the Internet Protocol Architecture SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This Lecture Elementary BSD socket API for network programming in C under Unix Client/server design alternatives ( No time for ) Some brief mentioning of several advanced features Multicasting/broadcasting, Socket options, IPv4/v6, interoperability, Daemon processes, Raw sockets, Out of band data SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 2
Background image of page 2
TCP/IP Protocol Suite – A Reminder SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 3 Supports Network Applications Transports applications’ messages TCP: connection-oriented, reliable UDP: connectionless, unreliable Routes data packets from hosts to hosts IP: Internet Protocol, and many routing protocols Deals with algorithms to achieve reliable, efficient communication between two adjacent machines Moves raw bits (0/1) between adjacent nodes depending on the physical medium used
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
TCP Overview Establish connection : 3-way handshake Data transmission Byte-stream service Reliable (retransmission with timer) In-order delivery (reorder packets if necessary) Support flow control (fast sender vs slow receiver) Full-duplex (data transferred both ways) Close connection SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 4
Background image of page 4
Typical TCP Client-Server SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Why Connection Establishment? TCP is a “ reliable ” transport protocol Before the protocol can be realized, connection establishment phase is needed for Allowing each side to know the other exists Negotiation of optional parameters Max segment size Initial Sequence Numbers (ISN) Triggering allocation of transport entity resources Buffer Timers (if any) The above are done by mutual agreement SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 6
Background image of page 6
TCP Connection Establishment Server gets ready ( socket, bind, listen ) Client gets ready ( socket ) Client requests connection ( connect ) SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 7
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Timeout of Connection Establishment Retransmissions of SYNs (typically on Unix): 6 seconds after the first SYN 24 seconds after the second SYN 48 seconds after the third SYN give up Most Berkeley derived OSs have an upper limit of 75 sec In reality, there is one timer that goes off every 500ms All timeouts are based on this timer (just a count of the number of ticks) SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 8
Background image of page 8
Tips and Tricks What’s a quick way to find out how long your
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/03/2010 for the course CS 489 taught by Professor Hungngo during the Fall '10 term at SUNY Buffalo.

Page1 / 59

5 - Unix Net Prog - Last Lecture Introduction to Networking...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online