Podcast
Questions and Answers
How many HTTP requests are involved when downloading two embedded images from the same web server using non-persistent TCP connections?
How many HTTP requests are involved when downloading two embedded images from the same web server using non-persistent TCP connections?
- 2
- 6
- 4 (correct)
- 8
What transport protocol is used for HTTP?
What transport protocol is used for HTTP?
- UDP
- ICMP
- TCP (correct)
- SCTP
What is the size of the header in a DNS message?
What is the size of the header in a DNS message?
- 16 bytes
- 8 bytes
- 10 bytes
- 12 bytes (correct)
Which command is used to fetch the IP address of www.school.edu?
Which command is used to fetch the IP address of www.school.edu?
In a DNS response message, which UDP port is used as the source port?
In a DNS response message, which UDP port is used as the source port?
Which of the following flags is set to 0 in a DNS query?
Which of the following flags is set to 0 in a DNS query?
What is the first segment sent by the client when requesting a webpage from a web server for the first time?
What is the first segment sent by the client when requesting a webpage from a web server for the first time?
How is the length of a DNS message calculated?
How is the length of a DNS message calculated?
What is the size of a TCP header?
What is the size of a TCP header?
During TCP connection establishment, which segment does the client send first?
During TCP connection establishment, which segment does the client send first?
What happens to the client's sequence number when the client downloads objects over a TCP connection?
What happens to the client's sequence number when the client downloads objects over a TCP connection?
Which fields in the TCP segment are specifically used for flow control?
Which fields in the TCP segment are specifically used for flow control?
What is the typical size of an IPv4 header?
What is the typical size of an IPv4 header?
Which flag is specifically activated for closing unused TCP ports?
Which flag is specifically activated for closing unused TCP ports?
How does the acknowledgement number of the client change when the client uploads objects over a TCP connection?
How does the acknowledgement number of the client change when the client uploads objects over a TCP connection?
What is the total bit size of a TCP sequence number?
What is the total bit size of a TCP sequence number?
What is the primary protocol used for dynamic addressing?
What is the primary protocol used for dynamic addressing?
How is the checksum calculated in the network layer?
How is the checksum calculated in the network layer?
What is the size of the Identification field in bits?
What is the size of the Identification field in bits?
What is the purpose of the Echo messages exchanged in a Ping operation?
What is the purpose of the Echo messages exchanged in a Ping operation?
What command is used to send an echo message to the IP 192.168.1.10 from 192.168.1.1?
What command is used to send an echo message to the IP 192.168.1.10 from 192.168.1.1?
Which field is common in both TCP and IP headers and has the same size?
Which field is common in both TCP and IP headers and has the same size?
What statistics are expected when pinging a host?
What statistics are expected when pinging a host?
What is one disadvantage of static routing compared to dynamic routing?
What is one disadvantage of static routing compared to dynamic routing?
What header line is included in a conditional GET message but not in a regular HTTP GET message?
What header line is included in a conditional GET message but not in a regular HTTP GET message?
When comparing Date and Last Modified header lines in an HTTP response, what does the Last Modified header indicate?
When comparing Date and Last Modified header lines in an HTTP response, what does the Last Modified header indicate?
Which of the following HTTP status codes corresponds to a request for a resource that has been permanently moved?
Which of the following HTTP status codes corresponds to a request for a resource that has been permanently moved?
In HTTP message format, what is the term used to refer to the entity that creates the client process?
In HTTP message format, what is the term used to refer to the entity that creates the client process?
What characterizes persistent TCP connections as opposed to non-persistent TCP connections in HTTP?
What characterizes persistent TCP connections as opposed to non-persistent TCP connections in HTTP?
How many HTTP requests are involved when downloading a webpage with three embedded objects using a persistent TCP connection?
How many HTTP requests are involved when downloading a webpage with three embedded objects using a persistent TCP connection?
Which of the following header lines would you typically find in an HTTP request but not in an HTTP reply?
Which of the following header lines would you typically find in an HTTP request but not in an HTTP reply?
How is the total access delay calculated when multiple objects are fetched using persistent TCP?
How is the total access delay calculated when multiple objects are fetched using persistent TCP?
What field in TCP is used to negotiate the Maximum Segment Size (MSS) between sender and receiver?
What field in TCP is used to negotiate the Maximum Segment Size (MSS) between sender and receiver?
Which of the following statements correctly distinguishes between TCP and UDP?
Which of the following statements correctly distinguishes between TCP and UDP?
What is the method for fragmenting messages under TCP?
What is the method for fragmenting messages under TCP?
Which routing protocol uses UDP?
Which routing protocol uses UDP?
What is the purpose of error detection in both the network and transport layers?
What is the purpose of error detection in both the network and transport layers?
Which command would you use to check the line statuses of all interfaces in a router?
Which command would you use to check the line statuses of all interfaces in a router?
Which of the following Python commands correctly opens a TCP connection to a server?
Which of the following Python commands correctly opens a TCP connection to a server?
What is the valid range of usable IP addresses under the address space 192.168.1.128/28?
What is the valid range of usable IP addresses under the address space 192.168.1.128/28?
Which command is used to exclude a specific IP address range from being assigned by the DHCP server?
Which command is used to exclude a specific IP address range from being assigned by the DHCP server?
What is the source IP address of the first message in the DHCP process?
What is the source IP address of the first message in the DHCP process?
Which of the following messages is NOT part of the DHCP exchange process?
Which of the following messages is NOT part of the DHCP exchange process?
What does the command 'R1(dhcp-config)# network 10.0.1.0 /24' signify?
What does the command 'R1(dhcp-config)# network 10.0.1.0 /24' signify?
Which command allows you to view the number of messages exchanged between the DHCP server and clients?
Which command allows you to view the number of messages exchanged between the DHCP server and clients?
What is one disadvantage of using NAT (Network Address Translation)?
What is one disadvantage of using NAT (Network Address Translation)?
When configuring a DHCP server, which command specifies the DNS server address?
When configuring a DHCP server, which command specifies the DNS server address?
What is the purpose of the commands enabling static NAT mapping?
What is the purpose of the commands enabling static NAT mapping?
Flashcards
HTTP Reply Without Object Headers
HTTP Reply Without Object Headers
When an HTTP response does not include an object, headers like "Last-Modified", "Content-Length", and "Content-Type" are missing.
Conditional GET vs. GET
Conditional GET vs. GET
A Conditional GET request includes an "If-Modified-Since" header, which is absent in a regular GET request. This allows the server to check if the resource has changed since a specific time.
Date vs. Last-Modified Header
Date vs. Last-Modified Header
"Date" in an HTTP response refers to the time the server sent the response. "Last-Modified" indicates the time the resource on the server was last modified.
HTTP Request Line (Example)
HTTP Request Line (Example)
Signup and view all the flashcards
Web Server Identification
Web Server Identification
Signup and view all the flashcards
Persistent vs. Non-persistent TCP
Persistent vs. Non-persistent TCP
Signup and view all the flashcards
HTTP Header Location (Example)
HTTP Header Location (Example)
Signup and view all the flashcards
Persistent TCP Connection Requests
Persistent TCP Connection Requests
Signup and view all the flashcards
TCP Header Size
TCP Header Size
Signup and view all the flashcards
TCP Connection Establishment
TCP Connection Establishment
Signup and view all the flashcards
Client TCP Connection Close
Client TCP Connection Close
Signup and view all the flashcards
Sequence Number Change(Download)
Sequence Number Change(Download)
Signup and view all the flashcards
Sequence Number Change(Upload)
Sequence Number Change(Upload)
Signup and view all the flashcards
Acknowledgement Number Change(Download)
Acknowledgement Number Change(Download)
Signup and view all the flashcards
Acknowledgement Number Change(Upload)
Acknowledgement Number Change(Upload)
Signup and view all the flashcards
TCP Congestion/Flow Control Fields
TCP Congestion/Flow Control Fields
Signup and view all the flashcards
HTTP Request for Embedded Images
HTTP Request for Embedded Images
Signup and view all the flashcards
DNS Port Numbers
DNS Port Numbers
Signup and view all the flashcards
HTTP and DNS Transport Protocols
HTTP and DNS Transport Protocols
Signup and view all the flashcards
DNS Message Structure
DNS Message Structure
Signup and view all the flashcards
DNS Header Length
DNS Header Length
Signup and view all the flashcards
DNS Message Length Calculation
DNS Message Length Calculation
Signup and view all the flashcards
Nslookup for Canonical Name
Nslookup for Canonical Name
Signup and view all the flashcards
Nslookup for IP Address
Nslookup for IP Address
Signup and view all the flashcards
TCP MSS negotiation
TCP MSS negotiation
Signup and view all the flashcards
TCP vs. UDP
TCP vs. UDP
Signup and view all the flashcards
Message Fragmentation (TCP)
Message Fragmentation (TCP)
Signup and view all the flashcards
UDP Socket Python
UDP Socket Python
Signup and view all the flashcards
TCP Socket Python
TCP Socket Python
Signup and view all the flashcards
IP Address Range (192.168.1.128/28)
IP Address Range (192.168.1.128/28)
Signup and view all the flashcards
IP Route Check
IP Route Check
Signup and view all the flashcards
Show IP Interface Brief Command
Show IP Interface Brief Command
Signup and view all the flashcards
Static Addressing
Static Addressing
Signup and view all the flashcards
Dynamic Addressing
Dynamic Addressing
Signup and view all the flashcards
Checksum Calculation
Checksum Calculation
Signup and view all the flashcards
Identification Field
Identification Field
Signup and view all the flashcards
TTL Field
TTL Field
Signup and view all the flashcards
Fragmentation Offset
Fragmentation Offset
Signup and view all the flashcards
Datagram Length
Datagram Length
Signup and view all the flashcards
Dynamic Routing Advantages
Dynamic Routing Advantages
Signup and view all the flashcards
RIP Version 2
RIP Version 2
Signup and view all the flashcards
Static Route Configuration
Static Route Configuration
Signup and view all the flashcards
DHCP Discovery Message
DHCP Discovery Message
Signup and view all the flashcards
DHCP Excluded Address Range
DHCP Excluded Address Range
Signup and view all the flashcards
DHCP Server Configuration - Gateway and DNS
DHCP Server Configuration - Gateway and DNS
Signup and view all the flashcards
NAT Advantage: Address Space Expansion
NAT Advantage: Address Space Expansion
Signup and view all the flashcards
NAT Disadvantage: Complex TCP Connections
NAT Disadvantage: Complex TCP Connections
Signup and view all the flashcards
NAT Static Mapping
NAT Static Mapping
Signup and view all the flashcards
Study Notes
HTTP Reply without Object
- Last modified, Content length, and Content type headers are absent
- Reply does not carry an object
GET vs. Conditional GET
- Conditional GET message includes If-Modified-Since header
- GET message does not include this header
Date vs. Last Modified
- Date: Time of web server reply
- Last Modified: Time object was created/modified
HTTP Status Codes
- Examples:
- 301 Moved Permanently
- 200 OK
- 400 Bad Request
- 404 Not Found
- 302 Found
- 502 Bad Gateway
- 304 Not Modified
HTTP Request Line (Example)
- GET /homepage.html HTTP/1.1
Web Server in HTTP
- Web server is referred to as Host in HTTP message format
- Client and server processes are referred to as User-agent and Server respectively
HTTP Header Locations
- Host, Accept Language are in HTTP request
- Server and Date are in HTTP reply
- Connection is in both request and reply
Persistent vs. Non-Persistent TCP
- Persistent TCP: Multiple objects over one TCP connection (Connection: Keep-alive)
- Non-persistent TCP: Each object over a separate TCP connection (Connection: Close)
Webpage with Embedded Objects (Persistent TCP)
- 4 HTTP requests
- Total access delay: 5 Round Trip Times (RTTs)
Webpage with Embedded Objects (Non-Persistent TCP)
- 4 HTTP requests
- Total access delay: 8 RTTs
DNS Server and Client Ports
- Server port: 53
- Client port: Random 16-bit number (excluding server-defined ones)
- HTTP: TCP
- DNS: UDP
DNS Message Contents
- DNS header (Identification, Flags, Question/Answer/Additional RR counts)
- Body (Questions, Answers, Authoritative RRs, Additional RRs)
DNS Header Length
- 12 bytes
- DNS message length determined by UDP length field minus 8 bytes
Fetching Canonical Name and IP Address
- Command examples:
- nslookup –Type=CNAME www.school.edu
- nslookup –Type=A www.school.edu
Identifying Query and Response in Wireshark
- Look for source/destination IPs
- UDP port 53 in response, other port in query
- Response flags, Recursion available flag
HTTP Request for Webpage (Client)
-
- DNS query (UDP) to DNS server
-
- SYN segment to web server
-
- ACK segment to web server
-
- HTTP request (combined with ACK)
TCP Header and IPv4 Header Sizes
- TCP header: 20 bytes
- Typical IPv4 header: 20 bytes
TCP Connection Establishment
- Client sends SYN to server
- Server replies with SYN-ACK
- Client sends ACK
- Connection established
TCP Connection Closing
- Client sends FIN to server
- Server replies with ACK
- Server sends FIN to client
- Client sends ACK
TCP Segment Header Fields (Congestion/Flow Control)
- Sequence number
- Acknowledgement number
TCP Segment Flags
- SYN, ACK, FIN, PSH, URG, RST
- PSH with ACK for in-line data
- RST for closing unused ports
MSS Negotiation in TCP
- Options field
- Affects TCP header size
TCP vs. UDP
- TCP: Connection-oriented, reliable, congestion control
- UDP: Connectionless, unreliable (no congestion control, faster)
Routing Protocols (using TCP/UDP)
- UDP: RIP
- TCP: OSPF, BGP
DNS Message Fragmentation
- Divided by MSS (estimated message size)
- Client acknowledges received segments and client sends acknowledgment to the server when completes
Socket Library (Python)
- Open/close TCP connection example
- Examples for sending/receiving data using UDP/TCP sockets
Network Layer (GNS3)
- Checking line statuses: show ip interface brief
- Checking network reachability: show ip route
TCP Checksums
- Transport Layer: Computed over entire message
- Network Layer: Computed only over header portion of packets
Static vs. Dynamic Addressing
- Static: Simple for a few devices, complex for many
- Dynamic: DHCP, complex for many devices, works well for large networks
Network Layer Checksum Calculation
- Split into 16-bit words and summed
- Any carry added to the sum
- Ones complement of the final sum
IP Address Ranges (e.g., 192.168.1.128/28)
- Subnet mask: e.g., 255.255.255.240
- Usable range: e.g., 192.168.1.129 - 192.168.1.142
DHCP Message Exchange
- 4 messages (Discovery, Offer, Request, Acknowledgement)
- Source IP: 0.0.0.0, Destination IP: 255.255.255.255
Excluding Address Ranges (DHCP)
- Prevents IP assignment in that range
- Command example:
R1(dhcp-config)# ip dhcp excluded-address 10.0.1.10 10.0.1.20
Configuring Gateway and DNS in DHCP Server (R1)
R1(dhcp-config)# default-router <IP address of R1's interface>
R1(dhcp-config)# dns-server <IP address of DNS server>
DHCP Server Statistics
- Use
show ip dhcp server statistics
command
Network Address Translation (NAT)
- Advantages: Increased address space, simplifies network configuration
- Disadvantages: Complicates address translation for private hosts
NAT Pool (Example)
- Define public IP addresses to be used
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
Test your knowledge of HTTP protocols, including the differences between GET and Conditional GET requests. Explore the significance of HTTP status codes, header locations, and persistent TCP connections in web communications.