The protocol data unit (PDU) for the application layer in the Internet stack is
Question 1 Explanation:
The Protocol Data Unit is the unit of communication at a particular layer.
The Layer 1 (Physical Layer) PDU is the bit or, more generally, symbol The Layer 2 (Data Link Layer) PDU is the frame. The Layer 3 (Network Layer) PDU is the packet. The Layer 4 (Transport Layer) PDU is the segment for TCP or the datagram for UDP. The Layer 5 (Application Layer) PDU is the data or message.
Consider different activities related to email.
m1: Send an email from a mail client to a mail server m2: Download an email from mailbox server to a mail client m3: Checking email in a web browser Which is the application level protocol used in each activity?
ml: HTTP m2: SMTP m3: POP
ml: SMTP m2: FTP m3: HTTP
ml: SMTP m2: POP m3: HTTP
ml: POP m2: SMTP m3: IMAP
What is the maximum size of data that the application layer can pass on to the TCP layer below?
216 bytes - size of TCP header
Question 3 Explanation:
The default TCP Maximum Segment Size is 536. Where a host wishes to set the maximum segment size to a value other than the default, the maximum segment size is specified as a TCP option, initially in the TCP SYN packet during the TCP handshake. Because the maximum segment size parameter is controlled by a TCP option, a host can change the value in any later segment. Source: http://en.wikipedia.org/wiki/Maximum_segment_size
Identify the correct order in which the following actions take place in an interaction between a web browser and a web server.
1. The web browser requests a webpage using HTTP. 2. The web browser establishes a TCP connection with the web server. 3. The web server sends the requested webpage using HTTP. 4. The web browser resolves the domain name using DNS.
Question 4 Explanation:
The web browser first need to figure out IP address of site from url using DNS, then establishes a TCP connection, typically at port 80. Once the TCP connection is established, the browser sends a HTTP request using GET. Finally web server responds with HTTP response.
A graphical HTML browser resident at a network client machine Q accesses a static HTML webpage from a HTTP server S. The static HTML page has exactly one static embedded image which is also at S. Assuming no caching, which one of the following is correct about the HTML webpage loading (including the embedded image)?
Q needs to send at least 2 HTTP requests to S, each necessarily in a separate TCP connection to server S
Q needs to send at least 2 HTTP requests to S, but a single TCP connection to server S is sufficient
A single HTTP request from Q to S is sufficient, and a single TCP connection between Q and S is necessary for this
A single HTTP request from Q to S is sufficient, and this is possible without any TCP connection between Q and S
Question 5 Explanation:
In one of the pairs of protocols given below, both the protocols can use multiple TCP connections between the same client and the server. Which one is that?
Question 6 Explanation:
HTTP may use different TCP connection for different objects of a webpage if non-persistent connections are used. FTP uses two TCP connections, one for data and another control. TELNET and FTP can only use ONE connection at a time.
Which one of the following statements is NOT correct about HTTP cookies?
A cookies is a piece of code that has the potential to compromise the security of an Internet user
A cookie gains entry to the user’s work area through an HTTP header
A cookie has an expiry date and time
Cookies can be used to track the browsing pattern of a user at a particular site
Question 7 Explanation:
Cookies are not piece of code, they are just strings typically in the form of key value pairs.
Consider the following statements: I. telnet, ftp and http are application layer protocols. II.l EJB (Enterprise Java Beans) components can be deployed in a J2EE (Java2 Enterprise Edition) application server. III. If two languages conform to the Common Language Specification (CLS) of the Microsoft.NET framework, then a class defined in any one of them may be inherited in the other. Which statements are true?
l and II only
II and III only
l and III only
I, II and III
Question 8 Explanation:
If two languages conform to the Common Language Specification (CLS) of the Microsoft.NET framework ,then there are certain compliance rules which may be used for inheritance. Other statements are true.So,A is the Answer
Which of the following is/are example(s) of stateful application layer protocols?
(i) HTTP (ii) FTP (iii) TCP (iv) POP3
(i) and (ii) only
(ii) and (iii) only
(ii) and (iv) only
Question 9 Explanation:
In computing, a stateless protocol is a communications protocol that treats each request as an independent transaction that is unrelated to any previous request so that the communication consists of independent pairs of request and response. Examples of stateless protocols (IP) and (HTTP) Source: https://en.wikipedia.org/wiki/Stateless_protocol TCP is stateful as it maintains connection information across multiple transfers, but TCP is not an application layer protocol. Of the given protocols, only FTP and POP3 are stateful application layer protocols.
There are 9 questions to complete.