Difference between TCP and UDP : There are two types of internet protocol (IP) traffic, and both have very different uses.
1. TCP(Transmission Control Protocol). TCP is a connection-oriented protocol, a connection can be made from client to server, and from then on any data can be sent along that connection. * Reliable - when you send a message along a TCP socket, you know it will get there unless the connection fails completely. If it gets lost along the way, the server will re-request the lost part. This means complete integrity, things don't get corrupted. * Ordered - if you send two messages along a connection, one after the other, you know the first message will get there first. You don't have to worry about data arriving in the wrong order. * Heavyweight - when the low level parts of the TCP "stream" arrive in the wrong order, resend requests have to be sent, and all the out of sequence parts have to be put back together, so requires a bit of work to piece together. 2. UDP(User Datagram Protocol). A simpler message-based connectionless protocol. With UDP you send messages(packets) across the network in chunks. * Unreliable - When you send a message, you don't know if it'll get there, it could get lost on the way. * Not ordered - If you send two messages out, you don't know what order they'll arrive in. * Lightweight - No ordering of messages, no tracking connections, etc. It's just fire and forget! This means it's a lot quicker, and the network card / OS have to do very little work to translate the data back from the packets. ************************************************************************************************ OSI Model : Layer Name -------------------------- 7 Application <----x | 6 Presentation | Application | 5 Session <----x ----------------------------------------------------------------- 4 Transport Transport ----------------------------------------------------------------- 3 Network Internet Layer ----------------------------------------------------------------- 2 DataLink <----x | Network Interface Layer 1 Physical <----x --------------------------------------------------------------------- ************************************************************************************************ --- On Fri, 6/20/08, shanthiavari <[EMAIL PROTECTED]> wrote: From: shanthiavari <[EMAIL PROTECTED]> Subject: [LinuxVadaPav] networking To: [email protected] Date: Friday, June 20, 2008, 2:00 PM What's the difference between UDP and TCP? How would you find what ports are open on a machine (local and remote)? What's the OSI model? What are the seven levels? How would you capture network traffic? [Non-text portions of this message have been removed] ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/linuxvadapav/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/linuxvadapav/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
