Docsity

Network Programming Final Othman, Exams of Advanced Education

Toggle sidebar
bg1
Network Programming Final Othman
Describe why an application developer might choose to run an application over UDP
rather than TCP. - correct answer ✔✔An application developer may not want its
application to use TCP's congestion control, which can throttle the application's
sending rate at times of congestion. Often, designers of IP telephony and IP
videoconference applications choose to run their applications over UDP because
they want to avoid TCP's congestion control. Also, some applications do not need
the reliable data transfer provided by TCP.
Is it possible for an application to enjoy reliable data transfer even when the
application runs over UDP? If so, how? - correct answer ✔✔Yes. The application
developer can put reliable data transfer into the application layer protocol. This
would require a significant amount of work and debugging, however.
In our rdt protocols, why did we need to introduce sequence numbers? - correct
answer ✔✔Sequence numbers are required for a receiver to find out whether an
arriving packet contains new data or is a retransmission.
Suppose Host A sends two TCP segments back to back to Host B over a TCP
connection. The first segment has sequence number 90; the second has sequence
number 110.
a. How much data is in the first segment?
b. Suppose that the first segment is lost but the second segment arrives at B. In the
acknowledgment that Host B sends to Host A, what will be the acknowledgment
number? - correct answer ✔✔The acknowledgement number is the sequence
number of the next byte the receiver expects to receive. The receiver ack'ing
sequence number x acknowledges receipt of all data bytes less than (but not
including) byte number x.
Discuss why each input port in a high-speed router stores a shadow copy of the
forwarding table. - correct answer ✔✔With the shadow copy, the forwarding decision
is made locally, at each input port, without invoking the centralized routing
processor. Such decentralized forwarding avoids creating a forwarding processing
bottleneck at a single point within the router.
pf3
pf4
pf5

Partial preview of the text

Download Network Programming Final Othman and more Exams Advanced Education in PDF only on Docsity!

Network Programming Final Othman

Describe why an application developer might choose to run an application over UDP rather than TCP. - correct answer ✔✔An application developer may not want its application to use TCP's congestion control, which can throttle the application's sending rate at times of congestion. Often, designers of IP telephony and IP videoconference applications choose to run their applications over UDP because they want to avoid TCP's congestion control. Also, some applications do not need the reliable data transfer provided by TCP. Is it possible for an application to enjoy reliable data transfer even when the application runs over UDP? If so, how? - correct answer ✔✔Yes. The application developer can put reliable data transfer into the application layer protocol. This would require a significant amount of work and debugging, however. In our rdt protocols, why did we need to introduce sequence numbers? - correct answer ✔✔Sequence numbers are required for a receiver to find out whether an arriving packet contains new data or is a retransmission. Suppose Host A sends two TCP segments back to back to Host B over a TCP connection. The first segment has sequence number 90; the second has sequence number 110. a. How much data is in the first segment? b. Suppose that the first segment is lost but the second segment arrives at B. In the acknowledgment that Host B sends to Host A, what will be the acknowledgment number? - correct answer ✔✔The acknowledgement number is the sequence number of the next byte the receiver expects to receive. The receiver ack'ing sequence number x acknowledges receipt of all data bytes less than (but not including) byte number x. Discuss why each input port in a high-speed router stores a shadow copy of the forwarding table. - correct answer ✔✔With the shadow copy, the forwarding decision is made locally, at each input port, without invoking the centralized routing processor. Such decentralized forwarding avoids creating a forwarding processing bottleneck at a single point within the router.

Suppose that an arriving packet matches two or more entries in a router's forwarding table. With traditional destination-based forwarding, what rule does a router apply to determine which of these rules should be applied to determine the output port to which the arriving packet should be switched? - correct answer ✔✔A router uses longest prefix matching to determine which link interface a packet will be forwarded to if the packet's destination address matches two or more entries in the forwarding table Three types of switching fabrics are discussed in Section 4.2. List and briefly describe each type. Which, if any, can send multiple packets across the fabric in parallel? - correct answer ✔✔Switching via memory: Fabric switching with the use of Crossbar, and Switching with use of Bus. Suppose Host A sends Host B a TCP segment encapsulated in an IP datagram. When Host B receives the datagram, how does the network layer in Host B know it should pass the segment (that is, the payload of the datagram) to TCP rather than to UDP or to some other upper-layer protocol - correct answer ✔✔The 8-bit protocol field in the IP datagram contains information about which transport layer protocol the destination host should pass the segment to. Do routers have IP addresses? If so, how many? - correct answer ✔✔Yes, one per router interface. What is the 32-bit binary equivalent of the IP address 223.1.3.27? - correct answer ✔✔Each decimal number represents a byte (8 bits).11011111 00000001 00000011 00011011 Suppose there are three routers between a source host and a destination host. Ignoring fragmentation, an IP datagram sent from the source host to the destination host will travel over how many interfaces? How many forwarding tables will be indexed to move the datagram from the source to the destination? - correct answer ✔✔An IP datagram sent from a source host to a destination host will travel through 8 interfaces. 3 forwarding tables will be indexed to move the datagram from source to destination. What is a private network address? Should a datagram with a private network address ever be present in the larger public Internet? Explain. - correct answer ✔✔A network address only meant to be used by devices in the same network. Never should be present in public internet because it can cause overlap with devices assigned to the same address.

system has an administrative control for routing within it. Gateway routers are responsible for forwarding packets outside of AS Why are different inter-AS and intra-AS protocols used in the Internet? - correct answer ✔✔for scalability over a large amount of networks and for performance reasons True or false: When an OSPF route sends its link state information, it is sent only to those nodes directly attached neighbors. Explain. - correct answer ✔✔True, when an OSPF route sends its link state information, it is sent only to those nodes directly attached neighbors. What is meant by an area in an OSPF autonomous system? Why was the concept of an area introduced? - correct answer ✔✔the system divides its hierarchy into area consisting of routers that help in broadcasting link state to other routers in the area. It is responsible for routing traffic between other areas of the system. Define and contrast the following terms: subnet, prefix, and BGP route. - correct answer ✔✔Subnet:sub portion of a larger network and doesn't contain a router. logical subdivision of an ip network done by subnetting. prefix;portion of a network address and generalizes the notion of subnet addressing BGP route; the messages along with tcp connection sent over a BGP session link How does BGP use the NEXT-HOP attribute? How does it use the AS-PATH attribute? - correct answer ✔✔the next hop is the router interface that initiates the as-path, and provides critical link in inter and intra as routing. Describe how a network administrator of an upper-tier ISP can implement policy when configuring BGP. - correct answer ✔✔say your upper tier consists of A,B, and C. B doesn't carry traffic between A and C. A and C has B as their BGP peers. B doesn't advertise to routes of A passing through C, and doesn't advertise routes of C passing through A True or false: When a BGP router receives an advertised path from its neighbor, it must add its own identity to the received path and then send that new path on to all of its neighbors. Explain. - correct answer ✔✔False. A BGP router can choose not to add its own identity and send a new path to all of its neighbors

Describe the main role of the communication layer, the network-wide state- management layer, and the network-control application layer in an SDN controller. - correct answer ✔✔Communication layer helps SDN controller communicate with its controlled network devices.Network-wide state management layer provides up-to- date info about the state of networks hosts, links, switches, and other SDN- controlled devices.Network control application layer controls the data plane in the network devices using APIs from a SDN controller. Suppose you wanted to implement a new routing protocol in the SDN control plane. At which layer would you implement that protocol? Explain. - correct answer ✔✔Routing would occur in the management layer. The management layer is the one that interacts with SNMP, SSH, Telnet, and TFTP. What types of messages flow across an SDN controller's northbound and southbound APIs? Who is the recipient of these messages sent from the controller across the southbound interface, and who sends messages to the controller across the northbound interface? - correct answer ✔✔Northbound : messages which help read/write state of network and developing flow tables within management layer, notifications for state-change events, network control apps send messages to the controllerSouthbound: messages which help for the up-to-date view of the network's state, communication between controller and devices which receive messages Describe the purpose of two types of OpenFlow messages (of your choosing) that are sent from a controlled device to the controller. Describe the purpose of two types of Openflow messages (of your choosing) that are send from the controller to a controlled device. - correct answer ✔✔Controlled devices to controller:1. Flow- Removed: messages are used to inform controller about removal, of the flow table entry, messages like entry has been removed because it timed-out2. Port-Status: status change of portsController to devices:1. Modify-State: used to set properties of switch port, deleting of adding new entries 2. Real-State: used to collect statistics on counter values from the switches flow tables and ports What is the purpose of the service abstraction layer in the OpenDaylight SDN controller? - correct answer ✔✔OpenDaylight is open-source controller developed in partnership with Linux foundation Service Abstraction Layer (SAL) : controllers nerve center, helps the internal applications communicate, helps underlying protocols in providing uniform abstract interface in the communication layer

Suppose nodes A, B, and C each attach to the same broadcast LAN (through their adapters). If A sends thousands of IP datagrams to B with each encapsulating frame addressed to the MAC address of B, will C's adapter process these frames? If so, will C's adapter pass the IP datagrams in these frames to the network layer C? How would your answers change if A sends frames with the MAC broadcast address? - correct answer ✔✔C's adapter will process the frames, but the adapter will not pass the datagrams up the protocol stack. If the LAN broadcast address is used, then C's adapter will both process the frames and pass the datagrams up the protocol stack.