{"id":210451,"date":"2018-09-14T12:46:54","date_gmt":"2018-09-14T12:46:54","guid":{"rendered":"http:\/\/localhost\/wordpress\/index.php\/2018\/09\/14\/ecet-465-week-3-homework-chapters-3-and-4\/"},"modified":"2018-10-24T08:48:00","modified_gmt":"2018-10-24T08:48:00","slug":"ecet-465-week-3-homework-chapters-3-and-4","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/ecet-465-week-3-homework-chapters-3-and-4\/","title":{"rendered":"ECET 465 Week 3 Homework (Chapters 3 and 4)"},"content":{"rendered":"<p>Chapter 3 Review Questions\tR4.\u00a0Describe why an application developer might choose to run an application over UDP rather than TCP.\tR6.\u00a0Is it possible for an application to enjoy reliable data transfer even when the application runs over UDP? If so, how?\tR8.\u00a0Suppose that a Web server runs in Host C on port 80. Suppose this Web server uses persistent connections, and is currently receiving requests from two different Hosts, A and B. Are all of the requests being sent through the same socket at Host C? If they are being passed through different sockets, do both of the sockets have port 80? Discuss and explain.\tChapter 3 Problems\tP2.\u00a0Consider Figure 3.5. What are the sources and destination port values in the segments flowing from the server back to the clients&#8217; processes? What are the IP addresses in the network- layer datagrams carrying the transport- layer segments?\tP3.\u00a0UDP and TCP use 1s complement for their checksums. Suppose you have the following three 8- bit bytes: 01010011, 01010100, 01110100. What is the 1s complement of the sum of these 8- bit bytes? (Note that although UDP and TCP use 16-bit words in computing the checksum, for this problem you are being asked to consider 8-bit sums.) Show all work. Why is it that UDP takes the 1s complement of the sum; that is, why not just use the sum? With the 1s complement scheme, how does the receiver detect errors? Is it possible that a 1-bit error will go undetected? How about a 2-bit error?\tChapter 4 Review Questions\tR21.\u00a0Compare and contrast link-state and distance-vector routing algorithms.\tR23.\u00a0Is it necessary that every autonomous system use the same intra-AS routing algorithm? Why or why not?\tR25.\u00a0Compare and contrast the advertisements used by RIP and OSPF.\tR28.\u00a0Why are policy considerations as important for intra-AS protocols, such as OSPF and RIP, as they are for an Inter-AS routing protocol like BGP?\tR33.\u00a0For each of the three general approaches we studied for broadcast communication (uncontrolled flooding, controlled flooding, and spanning-tree broadcast), are the following statements true or false? You may assume that no packets are lost due to buffer overflow and all packets are delivered on a link in the order in which they were sent.\tR36.\u00a0What is the difference between a group-shared tree and a source-based tree in the context of multicast routing?\tChapter 4 Problems\tP20.\u00a0Suppose you are interested in detecting the number of hosts behind a NAT. You observe that the IP layer stamps an identification number sequentially on each IP packet. The identification number of the first IP packet generated by a host is a random number, and the identification numbers of the subsequent IP packets are sequentially assigned. Assume all IP packets generated by hosts behind the NAT are sent to the outside world.\ta.Based on this observation, and assuming you can sniff all packets sent by the NAT to the outside, can you outline a simple technique that detects the number of unique hosts behind a NAT? Justify your answer.\tP24.\u00a0Consider the following network. With the indicated link costs, use Dijkstra&#8217;s shortest-path algorithm to compute the shortest path from\u00a0x\u00a0to all network nodes. Show how the algorithm works by computing a table similar to Table 4.3.\tP26.\u00a0Consider the network shown below, and assume that each node initially knows the costs to each of its neighbors. Consider the distance-vector algorithm and show the distance table entries at node\u00a0z.\tP28.\u00a0Consider the network fragment shown below.\u00a0x\u00a0has only two attached neighbors,\u00a0w\u00a0and\u00a0y.\u00a0w\u00a0has a minimum-cost path to destination\u00a0u\u00a0(not shown) of 5, and\u00a0y\u00a0has a minimum-cost path touof 6. The complete paths from\u00a0w\u00a0and\u00a0y\u00a0to\u00a0u\u00a0(and between\u00a0w\u00a0and\u00a0y) are not shown. All link costs in the network have strictly positive integer values.\tP35.\u00a0Consider the network shown below. Suppose AS3 and AS2 are running OSPF for their intra-AS routing protocol. Suppose AS1 and AS4 are running RIP for their intra-AS routing protocol. Suppose eBGP and iBGP are used for the inter-AS routing protocol. Initially suppose there is no physical link between AS2 and AS4.\tP50.\u00a0We saw in Section 4.7 that there is no network-layer protocol that can be used to identify the hosts participating in a multicast group. Given this, how can multicast applications learn the identities of the hosts that are participating in a multicast group?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Chapter 3 Review Questions R4.\u00a0Describe why an application developer might choose to run an application over UDP rather than TCP. R6.\u00a0Is it possible for an application to enjoy reliable data transfer even when the application runs over UDP? If so, <a href=\"https:\/\/www.benedictsol.com\/blogs\/ecet-465-week-3-homework-chapters-3-and-4\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-210451","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/210451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=210451"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/210451\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=210451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=210451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=210451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}