Shared Flashcard Set

Details

Networking 1
fds
11
Advertising
Kindergarten
12/03/2009

Additional Advertising Flashcards

 


 

Cards

Term
What is protocol?
Definition
an agreed set of rules regarding how to act, communicate, and/or transfer information.
Term
What are the layers of the IP model and what functions do they serve?
Definition
Application - user interface
Transport - transfers data
Network - addresses packets and where to send them
Access - connections (internet, power cords)
Term
What protocols (IP, TCP, UDP) are in which layers of the IP model?
Definition
Transport - TCP, UDP
Network - IP
Term
What does a IP address identify?
Definition
A machine or group of machines
Term
what does a port identify?
Definition
the process we wish to communicate with
Term
What port is allocated if a client connects without binding to a port?
Definition
If they connect without binding it will connect to any available port
Term
What are the two types of transport protocol services and their features?
Definition
TCP - connection, re-trys send, in order, stream of bytes, Transport Layer
UDP - negate above
Term
how do you detect a graceful vs abnormal disconnect?
Definition
graceful - when program is shutting down
abnormal - disconnects by force
Term
What is network byte order, how do u identify it?
Definition
Big-Endian
Term
What are the differences between Unicast, Multicast, and Broadcast?
Definition
Unicast - send message to one person
Multicast - multiple ppl
Broadcast - Broad cast message to everyone
Term
Write code for a receive loop paper
Definition
while(nBytesRecieved < uLengthofMessage)
{
_size = recv(m_ClientSocket, _buffer + nBytesRecieved, _size - nBytesRecieved, 0);
if(_size < 1 && m_bIsRunning) return DISCONNECT;
returns SHUTDOWN
nBytesRecieved += _size;
}
Supporting users have an ad free experience!