Networking Endterm. Below 6 netmasks are shown in both binary and dotted-quad form

Similar documents
CSCI 415 Computer Networks Homework 2 Due 02/13/08

Homework 4 assignment for ECE374 Posted: 04/06/15 Due: 04/13/15

MSc Integrated Electronics Networks Assignment. Investigation of TCP/IP Sockets and Ports. Gavin Cameron

Applications and Layered Architectures. Chapter 2 Communication Networks Leon-Garcia, Widjaja

ITS332 Quiz 1 Answers

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

TCP/IP and the OSI Model

CS307 Operating Systems Processes

Processes. Process Concept. The Process. The Process (Cont.) Process Control Block (PCB) Process State

FiberstoreOS IP Service Configuration Guide

Cisco Cisco Certified Network Associate (CCNA)

IP Basics Unix/IP Preparation Course June 29, 2010 Pago Pago, American Samoa

Review. Preview. Closing a TCP Connection. Closing a TCP Connection. Port Numbers 11/27/2017. Packet Exchange for TCP Connection

Switching & ARP Week 3

Outline. SC/CSE 3213 Winter Sebastian Magierowski York University. ICMP ARP DHCP NAT (not a control protocol) L9: Control Protocols

ECE 4450:427/527 - Computer Networks Spring 2017

Cisco CCNA Basic IP Routing Part I

Fundamentals of Computer Networking AE6382

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Internet Protocol Addressing and Routing. Redes TCP/IP

CS 457 Lecture 11 More IP Networking. Fall 2011

CCNA Exam File with Answers. Note: Underlines options are correct answers.

TCP/IP Network Essentials

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Copyright 2011 Sakun Sharma

ICS 351: Networking Protocols

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Internet applications

Putting it all together

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

Unit 28 Website Production ASSIGNMENT 1

LAB THREE STATIC ROUTING

Internet protocol stack. Internetworking II: Network programming. April 20, UDP vs TCP. Berkeley Sockets Interface.

Exercise 1 INTERNET. x.x.x.254. net /24. net /24. x.x.x.33. x.x.x.254. x.x.x.52. x.x.x.254. x.x.x.254. x.x.x.

Using DNS Service for Amplification Attack

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Internetworking II: Network programming. April 20, 2000

Practical Exercises in Computer Networks

Socket Programming TCP UDP

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Experiment 3: Protocol Visualization with Packet Tracer

Quiz 7 May 14, 2015 Computer Engineering 80N

An 8051 Based Web Server

LAN Setup Reflection

CCNA MCQS with Answers Set-1

SR-201 Network Relay Quick Start Guide

DNS CACHE POISONING LAB

Network Security. Introduction to networks. Radboud University, The Netherlands. Autumn 2015

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

UNIX Sockets. Developed for the Azera Group By: Joseph D. Fournier B.Sc.E.E., M.Sc.E.E.

Networks. Practical Investigation of TCP/IP Ports and Sockets. Gavin Cameron

Application Layer: OSI and TCP/IP Models

Cisco EXAM CCNA Cisco Certified Network Associate. Buy Full Product.

Significance of TCP/IP Model Divya Shree Assistant Professor (Resource Person), Department of computer science and engineering, UIET, MDU, Rohtak

Lab - Configure a NIC to Use DHCP in Windows

Address Resolution APPLIED SECURITY BASICS. Alberto Caponi

Unix Network Programming Chapter 4. Elementary TCP Sockets 광운대학교컴퓨터과학과 정보통신연구실 석사과정안중현

Randall Stewart, Cisco Systems Phill Conrad, University of Delaware

Computer Networks Prof. Ashok K. Agrawala

Lecture 24. Thursday, November 19 CS 375 UNIX System Programming - Lecture 24 1

CSC209H Lecture 9. Dan Zingaro. March 11, 2015

Exam in Computer Networks

ICS 451: Today's plan

CSMC 412. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala Set 2. September 15 CMSC417 Set 2 1

A Client-Server Exchange

Digi Connect WAN / ConnectPort WAN Cellular Setup of Surelink

Question Score 1 / 19 2 / 19 3 / 16 4 / 29 5 / 17 Total / 100

MiPDF.COM. 1. Convert the decimal number 231 into its binary equivalent. Select the correct answer from the list below.

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask

Computer Network Programming

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Sockets 15H2. Inshik Song

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

AP-ENBD User Manual V0.2

FiberstoreOS. IP Service Configuration Guide

Chapter 5 Network Layer

Written examination in Computer Networks

Connecting with Computer Science Chapter 5 Review: Chapter Summary:

Section 6.2, IP Routing. Section 6.4, IP/VPN Policy. Section 6.5, IP Quality of Service. Section 6.6, The BANDIT as Firewall

FSOS IP Service Configuration Guide

Network layer: Overview. Network Layer Functions

INTERNET ARCHITECTURE & PROTOCOLS

COMPUTER NETWORKING LAB EXERCISES (TP) 1 BASIC CONFIGURATION AND TOOLS FOR EVERYBODY:

Procedure Note: The research steps for this lab are not included in this procedure.

ACE PLUS CORP. APCON100 series Operation Manual RS-232 to Ethernet Converter

DHCP in. Introduction. Step 1 router. In this lab, you. computer. Page 1 of 7

INDEX. Document Name : User Manual for SC10EJ Serial to Ethernet Converter

CSE 473 Introduction to Computer Networks. Exam 1. Your name here: 10/3/2012

Networked Applications: Sockets. Goals of Todayʼs Lecture. End System: Computer on the ʻNet. Client-server paradigm End systems Clients and servers

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

Exam in Computer Networks

Chapter 14. Configuring Linux Network Services Part 1 DHCP and DNS service

Agenda. Before we start: Assignment #1. Routing in a wide area network. Protocols more concepts. Internetworking. Congestion control

EXAM - HP0-Y52. Applying HP FlexNetwork Fundamentals. Buy Full Product.

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

EXAM TCP/IP NETWORKING Duration: 3 hours

User Manual Electronic Systems Protection, Inc. / Technical Support: / espei.com

Auxiliary Protocols. Internet Layer. Address Resolution Protocol. Delivery of IP Packets

TCP/IP Networking Basics

Transcription:

Networking Endterm Below 6 netmasks are shown in both binary and dotted-quad form. Binary Dotted-quad 11111111 11111111 11111111 10000000-255.255.255.128 11111111 11111111 11111111 11000000-255.255.255.192 11111111 11111111 11111111 11100000-255.255.255.224 11111111 11111111 11111111 11110000-255.255.255.240 11111111 11111111 11111111 11111000-255.255.255.248 11111111 11111111 11111111 11111100-255.255.255.252 1) The netmask that defines a network size of 32 is: a) 255.255.255.192 b) 255.255.255.224 c) 255.255.255.240 d) 255.255.255.248 2) The netmask 255.255.255.128 defines a network size of: a) 32 b) 64 c) 96 d) 128 3) A PC on a network has an IP address of 10.10.10.35 with a class C subnet mask (255.255.255.0). It s default gateway is at 10.10.10.1. It has just powered up and its ARP cache is empty. The user pings another PC at 207.188.86.185. What is the first packet that will be sent from his PC (10.10.10.35)? a) An ICMP request to 10.10.10.109 b) An ICMP reply to 10.10.10.1 c) An ARP request to 10.10.10.109 d) An ARP request to 10.10.10.1

4) A PC on a network has an IP address of 10.10.10.35 with a class C subnet mask (255.255.255.0). Its default gateway is at 10.10.10.1. It has just powered up and its ARP cache is empty. The user pings another PC at 10.10.10.109. What is the first packet that will be sent from his PC (10.10.10.35)? a) An ICMP request to 10.10.10.109 b) An ICMP reply to 10.10.10.1 c) An ARP request to 10.10.10.109 d) An ARP request to 10.10.10.1 Given the following ifconfig output: 5) The IP address of interface eth0 is: a) 00:40:05:42:C7:9D b) 0xe800 c) 10.100.13.255 d) none of the above 6) The MAC address of interface eth0 is: a) 00:40:05:42:C7:9D b) 0xe800 c) 10.100.13.255 d) none of the above

Note the sequence of commands shown in the screen image above, and their effect on the contents of the arp table. The LAN is 192.168.3.0/255.255.255.0. 7) Unlike the other 2 IP addresses shown, 192.168.3.4 s hardware address shows as incomplete. Choose the best reason for this. a) At 192.168.3.4, ping is responding but arp is not b) At 192.168.3.4, arp is responding but ping is not c) At 192.168.3.4, arp is not responding d) At 192.168.3.4, ping is not responding 8) During the activities shown on the screen the arp table acquires an entry for IP address 192.168.3.2. The command responsible for it is: a) arp n b) ping c1 www.ucla.edu c) ping c1 192.168.3.3 d) ping c1 w1 192.168.3.4

9) Ethernet is a data link layer protocol, while IP is a network layer protocol. a) IP is the only network protocol Ethernet can carry, and Ethernet is the only data link protocol that can carry IP b) Ethernet can carry other network protocols, but is the only data link protocol that can carry IP c) IP is the only network protocol Ethernet can carry, but IP can also be carried by other data link protocols d) Ethernet can carry other network protocols, and other data link protocols can carry IP 10) The IP packet structure provides a time-to-live field. A host creates and sends a packet to a destination, via a series of intervening routers. a) IP in the host initializes TTL to 255 b) ICMP in each router decrements TTL c) TTL should reach 0 by the time of arrival at the destination d) IP in each router decrements TTL 11) A host participates in a tcp connection with a partner. The values it places in the acknowledgement number fields of the packets it send to the partner: a) come from the partner s sequence number stream b) come from the host s own sequence number stream c) are a function of both sequence number streams d) have to do with neither; acknowledgment and sequence numbers are independent of each other 12) Given an Ethernet frame carrying an IP packet bearing a host destination address, a switch a) sends it out all ports b) sends it out a particular port according to the destination IP address c) sends it out a particular port according to the destination Ethernet address d) sends it out a subset of ports according to the IP address s subnet 13) The DNS system amounts to: a) a single physical database composed of multiple logical databases b) a single logical database composed of a single physical database c) multiple logical databases composed of a single physical database d) a single logical database composed of multiple physical databases 14) When an application acts as a DNS client, querying a nameserver for the address of training.support.microsoft.com, the nameserver that it queries is: a) one that is named in the local DNS configuration b) a root nameserver c) a Microsoft nameserver d) a com nameserver

15) When an application acts as a DNS client, querying some nameserver directly for an address, the nameserver that answers the query (originating that answer, not merely relaying it) is: a) always the one that the client queries directly b) always a root nameserver c) sometimes the one that the client queries directly d) sometimes the application itself 16) TCP client and corresponding server processes, running on different machines or the same, interact. When they do so, they distinguish and identify one another as specific processes by: a) name, from the command line that launched them b) hardware address c) IP address d) phone number e) port number 17) Which of the following is a client for the http protocol: a) named b) httpd c) Internet Explorer d) Apache 18) The difference between a hub and a switch is that: a) switches forward fewer frames overall b) hubs consume more of the wire s inherent bandwidth c) switches are more network-aware d) all of the above 19) in linux, addresses of the nameservers to be queried are kept: a) in /etc/hosts b) in /etc/named.conf c) in /etc/resolv.conf d) in separate files per each under /var/named/ 20) A dhcp client: a) must accept the first IP address it is offered b) must accept all IP addresses it is offered c) may accept the first IP address it is offered d) none of the above

21) Which of the following is an HTTP request: a) CGI b) <html> c) GET d) http://www.yahoo.com 22) A web server can: a) provide return pages to browsers without using any.html files b) return different content to different requesting clients c) listen to ports other than 80 d) all of a, b, and c e) none of a, b, and c 23) Host 192.168.3.1 and 192.168.3.2 can ping each other. Server3.c is executed on 192.168.3.2 and client3.c is executed on 192.168.3.1. The source code for both appears below, at bottom. They are the ones we studied in class. Study them carefully. The expected screen message on client 192.168.3.1 is: a) char from server = B b) char from server = C c) oops: client1: no route to host d) oops: client1: connection refused

CLIENT3 CODE (for question 23): int main() { int sockfd; int len; struct sockaddr_in address; int result; char ch = 'B'; sockfd = socket(af_inet, SOCK_STREAM, 0); address.sin_family=af_inet; address.sin_addr.s_addr = inet_addr("192.168.3.2"); address.sin_port = htons(1101); len = sizeof(address); result = connect(sockfd, (struct sockaddr *)&address, len); if (result == -1) { perror("oops: client1"); exit(1); } write(sockfd, &ch, 1); read(sockfd, &ch, 1); printf("char from server = %c\n", ch); close(sockfd); exit(0); } SERVER3 CODE: int main() { int server_sockfd, client_sockfd; int server_len, client_len; struct sockaddr_in server_address; struct sockaddr_in client_address; server_sockfd = socket(af_inet, SOCK_STREAM, 0); server_address.sin_family = AF_INET; server_address.sin_addr.s_addr = htonl(inaddr_any); server_address.sin_port = htons(1100); server_len = sizeof(server_address); bind(server_sockfd, (struct sockaddr *)&server_address, server_len); listen(server_sockfd, 5); while(1) { char ch; printf("server waiting\n"); client_sockfd = accept(server_sockfd, (struct sockaddr *)&client_address, &client_len);

read(client_sockfd, &ch, 1); ch++; write(client_sockfd, &ch, 1); close(client_sockfd); } }