chapter 3 Flashcards
how do computers communicate with each other?
by sending network messages
how do programs send / receive network messages?
through sockets
what is a socket?
is an endpoint in a 2 way communication link between 2 programs running on the same network
what are communication paradigms built from?
sockets
what are the 2 type of networks?
circuit switched and packet switched
what is circuit switching?
is a network that relies on a physical connection b/n 2 nodes for communication
what network guarantees constant QOS?
circuit switching
what is packet switching?
is a network that splits a message into packets to transmit them independently over a digital network
what is internet protocol?
a unique address that identifies a device on a network
what do we mean when we say IP offers no guarantees?
packets may get:
- lost
- delivered twice
- corrupted
- delivered in wrong order
what is UDP?
a transport protocol that does not guarantee the delivery or the ordered delivery of datagrams [ packets ]
what is TPC?
a bidirectional transport protocol that provides reliable [ data ] packet flow b/n devices
how are network addresses represented in UNIX?
a generic struct sockaddr.
- for internet we use sockaddr_in
what is a domain name?
a human readable IP address
what is DNS?
a domain name service translates human readable domain names to machine readable IP address
how is domain name converted to IP?
using : gethostbyname ()
list TCP based protocols?
- TELNET
- FTP
- HTTP
- SMTP
- SSH
in sockets, what are the roles of:
- socket ()
- connect ()
- bind ()
- listen () and
- accept ()
- creates socket
- allows client to initiate a connection to server
- specifies socket id
- listen for a connection
- blocks process til incoming connection is received
what are socket function calls in TCP client side?
socket, connect , write , read, close