2018 Past Paper Flashcards
What does TTL stand for?
Time to live
What is TTL?
a value in an IP packet that tells a network router whether or not the packet has been in the network too long and should be disregarded
How do routers impact the TTL?
TTL initially set to number between 1-255. Each router that receives the packet subtracts at least 1 from the count.
What happens if TTL is 0?
router disregards it and sends an ICMP message back to the originating host
What is the transmission delay, Tx?
time taken to put bits onto the wire
what is the equation for working out the Tx?
Tx = b/r
where b = no of bits
r=data rate (b/s)
What is the propagation delay, Tp?
time taken for a signal to traverse a link
what is the equation for working out the Tp?
Tp=d/Ss
where d = distance of link, m
Ss= speed of signal in m/s
Differences between client-server and P2P?
- in client-server there is a specific server and specific clients connected to a server, whereas with P2P client and server are not distinguished
- in client-server data is stored in centralised server, whereas P2P each peer has its own data
- in client server the client requests service and the server responds with it, in P2P each node can request service but also provide
What is the role of CSS in the development of a web-based application?
applies presentation to webpage, like layout, font, colours
What
advantages does the use of CSS have over alternatives?
- ease of presenting different styles to different users
- more formatting options
- faster download time
What does the onload property of tag in DOM API do?
- occurs when object has been loaded
- can be used to check the visitors browser type and browser version and load the proper version of webpage based on info
is false ==”0” true or false?
true
both sides converted to numbers and then the comparison is performed
What is a WebSocket?
protocol for creating a fast 2-way channel between a web browser and a server
Used for allowing interaction between web browser and a web server
Why does WebSockets not need HTTP?
- doesnt rely on HTTP as it is its own protocol
- overcomes limitations with HTTP to allow low latency communications