0% found this document useful (0 votes)
9 views12 pages

HWC02

The document outlines homework instructions related to network standards, including questions about Internet standards, protocols, and message syntax. It covers topics such as the roles of various standards agencies, the differences between standards and protocols, and the structure of TCP segments. Additionally, it includes exercises on encoding, binary conversion, and the reliability of protocols.

Uploaded by

durjoy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views12 pages

HWC02

The document outlines homework instructions related to network standards, including questions about Internet standards, protocols, and message syntax. It covers topics such as the roles of various standards agencies, the differences between standards and protocols, and the structure of TCP segments. Additionally, it includes exercises on encoding, binary conversion, and the reliability of protocols.

Uploaded by

durjoy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

2

NETWORK STANDARDS
Last Name: _____________________________________
First Name: _____________________________________
Due Date: ___________________

INSTRUCTIONS
Homework files are in Word for Windows format.
You download them from the book’s website.
In a chapter, your teacher may assign you questions to complete.
To begin typing your answer, click after the right angle brackets.

HOW INTERNET STANDARDS COME TO BE


1. a) What are IETF standards called? (Spell out the name and give the acronym.)
>>>
b) What factors in the Internet’s informal development process lead to rapid standards development and
low-cost products?
>>>

INTRODUCTION
2. a) Distinguish between standards and protocols.
>>>
b) What is a network standard?
>>>
c) What is interoperability?
>>>
d) What are the benefits of standards?
>>>
CREATING STANDARDS
3. a) What standards agency creates Internet standards?
>>>
b) What other two standards agencies work together to create network standards?
>>>
c) Which standards agency(ies) is(are) especially important for internet processes?
>>>
d) For physical transmission processes?
>>>
e) For data link processes?
>>>
f) For transport processes?
>>>
g) For Internet supervisory processes?
>>>
4. a) Why do standards architectures have multiple layers?
>>>
b) To what does a standards layer provide services?
>>>
c) If you change a standard at one layer, do standards at other layers need to be changed?
>>>
d) Why may it be advantageous to change a standard if the standard at the layer below it is upgraded?
>>>
5. a) What are the standards agencies for OSI? Just give the abbreviations.
>>>
b) Distinguish between ISO and OSI.
>>>
c) What is the standards agency for TCP/IP? (Give both the name and the abbreviation.)
>>>
d) What standards architecture do most organizations actually use in practice?
>>>
e) At which layers of this architecture are IETF standards dominant?
>>>
f) At which layers are ISO and ITU-T standards dominant?
>>>
g) Why does it usually not matter what standards agency creates an application layer standard?
>>>
6. a) What layer or layers govern(s) transmission media?
>>>
b) Application programs?
>>>
c) Transmission through a single network?
>>>
d) Transmission through the Internet?
>>>
e) Application message fragmentation?
>>>
7. a) At what layer will you find standards for routers?
>>>
b) Wireless access points?
>>>
c) Packets?
>>>
d) Switches?
>>>
e) Frames?
>>>
f) IP addresses?
>>>
g) Routes?
>>>
h) EUI-48 addresses?
>>>
i) Data links?
>>>
8. a) If two hosts are connected by five networks, how many packets will there be when one host sends a
packet to the other host? (Hint: draw a picture.)
>>>
b) How many frames?
>>>
c) How many routers?
>>>
d) If every host and router connects with a point-to-point connection, how many physical links will there be?
>>>

MESSAGE ORDERING (PLUS RELIABILITY AND CONNECTION ORIENTATION) IN


STANDARDS
9. a) In HTTP, which application program initiates an interaction?
>>>
b) Is HTTP a connectionless protocol?
>>>
c) Is HTTP a reliable protocol?
>>>
10. a) What do we call TCP messages?
>>>
b) Describe the three-step opening in TCP.
>>>
c) Is every TCP segment acknowledged?
>>>
d) What is noteworthy about control segments?
>>>
11. a) Is TCP connection-oriented or connectionless?
>>>
b) What benefits do sequence numbers bring?
>>>
c) How many segments are transmitted to open a connection?
>>>
12. a) What kind of message does the destination host send if it receives an error-free segment?
>>>
b) What kind of message does the destination host send if it does not receive a segment during a TCP
connection?
>>>
c) What kind of message does the destination host send if it receives a segment that has an error during a
TCP connection?
>>>
d) Under what conditions will a source host TCP process retransmit a segment?
>>>
13. a) What are the four steps in the four-way close?
>>>
b) When the side that initiates the close sends its FIN segment, does it stop transmitting more TCP segments?
Explain.
>>>

MESSAGE SYNTAX IN STANDARDS


14. a) What are the three general parts of messages?
>>>
b) What higher-layer content does the data field contain?
>>>
c) What is the definition of a header?
>>>
d) Is there always a data field in a message?
>>>
e) What is the definition of a trailer?
>>>
f) Are trailers common?
>>>
g) Distinguish between headers and header fields.
>>>
15. a) List the first bit number on each IPv4 header row in 2-12, not including options. (Remember that the first
bit in Row 1 is Bit 0.)
>>>
b) What is the bit number of the first bit in the Destination IP Address Field in IPv4?
>>>
c) Describe how the internet process checks an arriving packet for errors.
>>>
d) What does the receiving internet process do if it finds an error?
>>>
e) What does it do if it does not find an error?
>>>
f) Is IP reliable or unreliable? Explain.
>>>
g) Is IP a connectionless or connection-oriented protocol?
>>>
16. a) What are 1-bit fields called?
>>>
b) If someone says that a flag field is set, what does this mean?
>>>
c) If the ACK bit is set, what other field must have a value?
>>>
d) Why are sequence numbers good?
>>>
e) What is the purpose of the Acknowledgment Number Field?
>>>
f) Do SYN segments have data fields?
>>>
g) Can a single TCP segment both send information and provide an acknowledgment?
>>>
17. a) What are the four fields in a UDP header?
>>>
b) Describe the third.
>>>
c) Describe the fourth.
>>>
d) UDP does error detection and discarding but does not do the retransmission of damaged or lost
datagrams. Is UDP reliable? Explain.
>>>
18. a) What type of port numbers do servers use for common server programs?
>>>
b) What type of port numbers do clients use when they communicate with server programs?
>>>
c) What is the range of port numbers for each type of port?
>>>
d) How are ephemeral port numbers generated?
>>>
e) Why are they called ephemeral?
>>>
19. a) What is the syntax of a socket?
>>>
b) In Figure 2-16, when the client transmits to the mail server, what is the source socket?
>>>

c) What is the destination socket?


>>>
d) When the SMTP server transmits to the client host, what is the source socket?
>>>
e) What is the destination socket?
>>>
20. a) How is the syntax of Ethernet II frames depicted?
>>>
b) In what field is the IP packet carried in Ethernet II frames?
>>>
c) Why does this version of the book deal with Ethernet II frames?
>>>
d) How does the receiving data link layer process know what is in the data field of an Ethernet II frame?
>>>
e) Why is Ethernet unreliable despite having a Frame Check Sequence Field that is used to check for errors?
>>>

ENCODING APPLICATION MESSAGES INTO BINARY


21. a) What is encoding?
>>>
b) At what layer is the encoding of application messages done?
>>>
22. a) What is alphanumeric information?
>>>
b) Explain how many bytes it will take to transmit “Go team” without the quotation marks. (Answer: 7)
>>>
c) Explain how many bytes it will take to transmit “Hello World!” without the quotation marks.
>>>
d) Go to a search engine and find a converter to represent characters in ASCII. What are the 7-bit ASCII codes
for “Hello world!” without the quotation marks? (Check: H is 1001000.) Show this in a table with two
columns. The first will show letters or other keyboard characters. The second will show the ASCII code for
that character.
Letter ASCII
H 1001000
23. Answer the following questions without using a calculator or a computer.
a) What is an integer?
>>>
b) Is 4,307 an integer?
>>>
c) Is 45.7 an integer?
>>>
d) To encode a decimal number into binary, is the first bit position on the right in Figure 2-20 a 0 or 1?
>>>
e) Convert the decimal number 6 to binary without using a computer. (Answer 110.)
>>>
f) Convert decimal 0 to binary.
>>>
g) Convert decimal 15 to binary.
>>>
h) Convert 62 to binary.
>>>
i) This time using Excel or a decimal to binary converter, convert 128 to binary. (Answer: 10000000).
>>>
j) Also using Excel or a decimal to binary converter, convert 255 to binary.
>>>
k) Convert the binary number 100 to decimal. (Answer: 4.)
>>>
l) Convert the binary number 1111 to decimal.
>>>
m) Convert the binary number 10110 to decimal.
>>>
n) Convert the binary number 100100 to decimal.
>>>
24. a) How many alternatives can you represent with a 4-bit field? (Answer: 16.)
>>>
b) For each bit you add to an alternatives field, how many additional alternatives can you represent?
>>>
c) How many alternatives can you represent with a 10-bit field? (With 8 bits, you can represent 256
alternatives.)
>>>
d) If you need to represent 129 alternatives in a field, how many bits long must the field be? (Answer: 8.)
>>>
e) If you need to represent 18 alternatives in a field, how many bits long must the field be?
>>>
f) Come up with three examples of things that should be encoded with 3 bits.
>>>
25. a) In TCP, port number fields are 16 bits long. How many possible port numbers are there?
>>>
b) IPv6 addresses are 128 bits long. How many IPv6 addresses are there? Just represent the formula for
calculating the value.
>>>
c) The IP version number field is 4 bits long. How many possible versions of IP can there be?
>>>
d) UDP length fields are 16 bits long. This field gives the number of bytes in the data field. How many bytes
long may a UDP data field be?
>>>
e) ASCII has a 7-bit code. How many keyboard characters can it represent?
>>>

PROTOCOLS IN THIS CHAPTER


26. a) What protocols that we saw in this chapter are reliable?
>>>
b) Why aren’t all protocols reliable?
>>>

END-OF-CHAPTER QUESTIONS
2-1.How do you think TCP would handle the problem if an acknowledgment were lost, so that the sender
retransmitted the unacknowledged TCP segment, therefore causing the receiving transport process to
receive the same segment twice?
>>>
2-2 a) Compute the minimum number of TCP segments required to open a connection, send an HTTP request
and response message, and close the connection. Justify this number by creating a table showing each
message and its sequence number. (Hint: Do the table in Excel and paste it into your homework document.)

Step Sender Segment


1 BROWSER SYN
2
3
4
5
6
7
8
9
10
11
12
13
14
15
b) Repeat the question, this time if the HTTP response message is damaged during transmission.

Step Sender Segment


1 BROWSER SYN
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2-3 Compute the minimum number of TCP segments required to open a connection, send an HTTP request and
response message, and close the connection if the HTTP response message must be fragmented across ten
packets. Justify this number by creating a table showing each message and its sequence number. (Hint: Do
the table in Excel and paste it into your homework document.)
Step Sender Segment
1 B SYN
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
25

>>>
2-4.a) In Figure 2-16, what will be the value in the destination port number field if a packet arrives for the e-mail
application? (Yes, this is a repeat question from earlier.)
>>>

b) When the HTTP program on a webserver sends an HTTP response message to a client PC, in what field of
what message will it place the value 80?
>>>
2-5.Do the following without using a calculator or computer, but check your answers with a calculator or a
computer. a) Convert 6 to binary.
>>>
b) Convert 47 to binary.
>>>
c) Convert 100 to binary.
>>>
d) Convert 110100 to decimal.
>>>
e). Convert 001100 to decimal.
>>>
2-6.Do the following without using a calculator or a computer, but check your answers with a calculator or a
computer. You need to represent 1,026 different city names. How many bits will this take if you give each
city a different binary number? Explain your answer.
>>>
2-7.a) The port number fields in TCP and UDP are 16 bits long. How many port numbers can they represent?
>>>
b) In IP, the Time to Live Field is 8 bits in size. How many values can it represent?
>>>
c) How many values can a flag field represent?
>>>
2-8. Consult the Wikipedia Webpage April Fools' Day Request for Comments
(https://en.wikipedia.org/wiki/April_Fools%27_Day_Request_for_Comments). Select one of the RFCs listed
on the page and write a paragraph on its claimed purpose. (Don’t just pick the first few.)
>>>
2-9.What was the most surprising thing you learned in this chapter?
>>>
2-10. What was the most difficult material for you in this chapter?
>>>

You might also like