application layer Flashcards
As a service, what is the internet’s main roles
provides service to applications
provides programming interface to applications - hooks that allow sending and receiving app programs to connect to internet - think post service
What are network applications?
programs that :
- run on different end systems - exchange msgs
- communicate over a network
- e.g. web server communications with browser
do we need to write software for network core devices?
no - net core devices dont run on user applciations
what are 2 application architectures?
client-server
peer-to-peer (P2P)
Describe client-server architecture
server - always on host, permanent ip address, data centers for scaling
clients
- communicate with server
- doesnt need to be on all the time
- dynamic IP
- no direct communication with other clients
Describe P2P architecture
no always on server end systems communicate directly peers request service from other peers peers intermittently connected dynamic IP
what is p2p self-scalability?
new peers bring new service capacity and resources as well as new service demands
what is a service
capabilities provided by system to users
what is a service access point
instantiation of the port set with an IP that identifies the device/host
what is the transport service
allows networked applications to exchange messages
what are 3 things that identify applications
host IP address
port number
protocol - type of trans protocol
some transport primitives
request
indication - request for connection
response
confirm
connectionless service
src just sends information without first establishing a connections
problems with connectionless service
message lost, message transformed, duplication, order of message changed
connection-oriented service
connection request sent and confirmed before trying to send data packets
message mode transfer
messages sent is received in the same unit format that it was sent in
stream mode transfer
not concerned about units just concerned that messahes are received in the same order that they were sent
TCP properties
reliable
flow control - sender doesnt overwhelm receiver
congestion control - throttle sender when network is overloaded
connection-oriented
what does TCP not provide?
timing, minimum throughput guarantee, security
UDP properties
unreliable
what does udp not provide
reliability, flow/congestion control, timing, throughput guarantee, security, connection setup
why bother with udp
quick messaging
message units
what is a process
program running within a host - two processes communicate using inter-process communication