6 Pages

sampleMidterm

Course: CS 471, Fall 2009
School: Sveriges...
Rating:
 
 
 
 
 

Word Count: 1297

Document Preview

471 MIDTERM CMPT (50 minutes, 100 points) 1. How would you approach each of the following tasks, given you were working on a LINUX network? a. (3 points) Set the MTU (maximum transmission unit) for ethernet interface eth2 to 7200 bits. b. (4 points) Add a new entry to the routing table. The new entry you wish to add is for network 128.23.68.0/22. Packets destined for this network must leave the host through eth1...

Register Now

Unformatted Document Excerpt

Coursehero >> Other International >> Sveriges lantbruksuniversitet >> CS 471

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
471 MIDTERM CMPT (50 minutes, 100 points) 1. How would you approach each of the following tasks, given you were working on a LINUX network? a. (3 points) Set the MTU (maximum transmission unit) for ethernet interface eth2 to 7200 bits. b. (4 points) Add a new entry to the routing table. The new entry you wish to add is for network 128.23.68.0/22. Packets destined for this network must leave the host through eth1 and travel to a router with address 162.12.17.41. 2. (10 points) For each of the following protocols draw an annotated diagram showing the encapsulation of a protocol message within an Ethernet frame. Indicate the protocol layer in which messages for each protocol are constructed. In your diagrams be sure to include all levels of encapsulation that apply (IP, TCP, UDP, etc.). Label each diagram to show the length of each header (see final page of exam for protocol message and header formats) and the type of header (UDP etc.). a. ARP b. ICMP c. DHCP d. BOOTP e. TCP 3. Consider how to capture packets passing a host on a connected network a. (2 points) Briefly explain the differences between a capture filter and a display filter in the ethereal packet capture application. b. (3 points) What capture filter would you use to capture ARP packets passing in both directions between your local host and the server seasons (172.16.1.1) c. (2 points) If your capture filter selects all UDP packets, how would you filter out the RIP and YPSERV packets (two protocols we have not yet studied) using a display filter. 4. (4 points) Briefly, explain the purpose of each of the following socket programming functions. a. select b. listen 5. Two networks belonging to company A have CIDR address blocks of 202.78.32.0/20 and 202.78.64.0/21. Company As router has IP address 202.79.64.23 and sends packets from the company site to the internet through interface eth2. Company As available block of addresses is 202.78.0.0/17, except for 202.78.48.0/22, which already belonged to company B when Company As network allocation was made. Company B has a single network with CIDR address block 202.78.48.0/22. Company Bs router has IP address 202.78.48.11 and sends packets from the company site to the internet through eth0. a. (2 points)How many IP addresses are allocated for each of company As networks? Briefly explain how you came to this conclusion. b. (3 points) Briefly explain the hierarchical address allocation scheme on which CIDR networks allocations are based. Your answer should not exceed six sentences. c. (4 points) A router at Company C, a company operating in the same city as Company A and Company B, has an entry or entries in its routing table to send information to Company A and Company B. Company Cs router uses interface eth1 to communicate with the internet. What would be the minimum number of entries in Company Cs routing table needed to guarantee packets were correctly delivered to both company A an company B? What would those routing table entries be? Give the network id, gateway, netmask and interface for each routing table entry. d. (3 points) You work for Company A and are asked to allocate a new network. The network will need to service 512 hosts. What is an efficient CIDR address block allocation for this network. Your division of the company is allocated addresses in your companies CIDR block between 202.78.32.0 and 202.78.75.255, you must allocate your new network within this address range. PART 2: PROBLEMS (60 of 100 marks) Choose 2 of the following 3 problems. 6. Consider the DHCP state machine l below a. (12 points) What path would be taken through the state machine to establish a new lease? Give a detailed step by step description of the interactions between DHCP servers and the client making the DHCP request. Relate the appropriate steps to the states and transitions illustrated for the state machine. Be sure to mention any DHCP messages (including their type, DHCPREQUEST ) sent and the source and recipient/s of each such message, in particular be sure to indicate if a particular message is broadcast or unicast.. b. (6 points) Explain why each message that is broadcast in your description in a) is broadcast rather than unicast. c. (3 points) Indicate, by drawing the relevant part of the state machine the diagram, path taken through the state machine when a lease is renewed. Assume all packets are delivered successfully, no packets are lost. d. (6 points) Indicate, by drawing the relevant part of the state machine diagram, the path taken through the state machine when a lease is renewed. Assume that there are multiple DHCP servers on the network segment in question and the DHCP server that granted the original server is not available. e. (3 points) Consider a network composed of multiple segments connected by routers. Can a client on a segment without a DHCP server reach a DHCP server on another network segment? If so what conditions must be satisfied, if not why? INIT DHCPREQUEST 7. (30 points) Explain what happens when you ping a host that does not have an entry in your local hosts ARP cache. You answer should be in the form of a chronological series of events that occur as the ping request and reply are assembled, sent and processed Include in your answer What happens to the ARP cache on your host? What happens to the ARP cache on the destination host? What happens to all packets that will be sent to complete the ping (both requests and replies)? 8. A series of packets captured when a TCP connection was made to transfer a packet of data. The connection was made to a passive server socket. The packets, as produced by tcpdump, are shown below. Each packet is labeled with a capital letter to use to refer to that packet in your answers. Based on the packets below and the TCP state machine also shown below answer the following questions. a. (5 points) What is the MTU negotiated as the TCP connection is established? Explain how to determine the value of the MTU from the information supplied in the first two packets of the tcpdump below. b. (3 points) Could any of the packets in the TCP dump below be fragmented if they reached a network with a smaller MTU? Why or why not? (Be brief, 1-2 sentences) c. (14 points) Draw a partial TCP state machine showing only the states that are passed through when the captured packets below are transferred. Make sure to indicate (on your partial state machine diagram), using the labels added to the tcpdump output (A-H), which packet in the tcpdump corresponds to each packet that is received or sent to initiate a transition. d. (8 points) Discuss briefly which TCP flags are set in packets C, F and G and why those flags are set. Also explain briefly why the length of these packets is 52 octets. A: 11:48:52.913278 IP (tos 0x0, ttl 64, id 32738, offset 0, flags [DF], proto 6, lengt...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Sveriges lantbruksuniversitet - CS - 471
CMPT471 Lab LayoutJanuary192.168.0.1 172.16.1.1 172.17.1.1Projection ScreenApril192.168.0.4 172.16.1.4June192.168.0.6 172.16.1.6September192.168.0.9 172.16.1.9Equinox192.168.0.16 172.16.1.16<= 1st rowFebruary172.17.1.2 172.19.1.2
Sveriges lantbruksuniversitet - CS - 471
5. IP Addresses and Static RoutingThis section will show that Internet addresses are assigned and administered in a hierarchical manner. This allows routing to be done efficiently and using only compact routing tables in each node. We will examine h
Air Force Academy - CHE - 333
Department of Chemical Engineering Ch.E. 333.2 Laboratory Manual 2008Course OutlineI.PURPOSE OF THIS COURSE This course is intended to develop skills, which will be of use to you as a practicing chemical engineer. You will be expected to use ty
Air Force Academy - CHE - 888
UNIVERSITY OF SASKATCHEWAN COLLEGE OF ENGINEERING DEPARTMENT OF CHEMICAL ENGINEERING ChE 888.3 Chemicals and Energy from Renewable Resources Winter 2008/09Instructor:Hui Wang 1C126 Engineering Building 57 Campus Drive Phone: 966-2685 E-mail: hui
Air Force Academy - CHE - 424
Chemical Engineering Laboratory III (Ch.E. 424.2)Laboratory ManualDepartment of Chemical Engineering 2009TABLE OF CONTENTSCOURSE INFORMATION . 1 Course objectives . 1 Experiments .. 1 Laboratory reports. 1 Laboratory notebooks .. 2 Safety . 2
Air Force Academy - CHE - 333
3. FLUID METERINGIntroduction In this experiment you will be pumping water through a system which contains a number of different kinds of flowmeters. They are: 1) Nutating disc meter (domestic water meter) 2) Gear meter 3) Vortex flowmeter 4) Ventu
East Los Angeles College - FH - 111
COMMUNICATIONwww.rsc.org/chemcomm | ChemCommQuantitative detection of protein expression in single cells using droplet microfluidics{A. Huebner,ab M. Srisa-Art,c D. Holt,a C. Abell,a F. Hollfelder,b A. J. deMelloc and J. B. EdelcdReceived (in C
East Los Angeles College - FH - 111
Supplemental Material can be found at: http:/www.jbc.org/cgi/content/full/M606773200/DC1 THE JOURNAL OF BIOLOGICAL CHEMISTRY VOL. 282, NO. 7, pp. 4408 4416, February 16, 2007 2007 by The American Society for Biochemistry and Molecular Biology, Inc.
East Los Angeles College - EY - 204
Determination of Time and Order for Event-Based Middleware in Mobile Peer-to-Peer EnvironmentsEiko Yoneki and Jean Bacon University of Cambridge Computer Laboratory J J Thomson Avenue, Cambridge CB3 0FD, UK Email: {eiko.yoneki, jean.bacon}@cl.cam.ac
East Los Angeles College - PW - 321
JOURNAL OF LIGHTWAVE TECHNOLOGY, VOL. 25, NO. 10, OCTOBER 20073089An FPGA-Based Optical Transmitter Design Using Real-Time DSP for Advanced Signal Formats and Electronic PredistortionPhilip Watts, Student Member, IEEE, Robert Waegemans, Madelein
East Los Angeles College - MD - 466
Graph Transformation in Constant TimeMike Dodds & Detlef Plump University of YorkGraph Transformation in Constant Time p. 1/2Sales PitchGraph transformation is expensive: nding a match for a left-hand side L in graph G requires time O(size(G)s
East Los Angeles College - HK - 331
Bioinformatics Supervision Assignment #1 Answer1. Show that time and space complexity of Banded Dynamic Programming for finding a global alignment between two DNA sequences. Without loss of generality, we assume that N > M. A simple inspection of
Sveriges lantbruksuniversitet - NUSC - 344
FALL 2005, NUSC-341 Problem Set #3. -1) Estimate the amount of energy released from the fusion of deuterium into helium per gram of material consumed. Use the data from the table below. -2) 211Bi decays by -emission to 207Tl. During this decay, a -ph
East Los Angeles College - HK - 331
Bioinformatics Supervision Note #3: PhylogeneticsIntroduction - Phylogenetics: Study of evolutionary relatedness between various groups of organisms Goal: Construction of phylogenetic trees Distance based methods - Problem Given: n species and a dis
East Los Angeles College - HK - 331
Bioinformatics Supervision Note #1: Sequence alignment (I)A sequence alignment is a way of arranging the sequences of DNA, RNA, or protein to identify the following information: Reconstructing long sequences of DNA from overlapping sequence f
East Los Angeles College - HK - 331
Bioinformatics Supervision Note #4: Hidden Markov ModelIntroduction of HMM - A Hidden Markov Model (HMM) is a stochastic model that captures the statistical properties of observed real world data. - No history: At each time step t, the only thing t
East Los Angeles College - HK - 331
East Los Angeles College - HK - 331
Bioinformatics Supervision Not #2: Sequence alignment (II) Note : (IFour Russian Algorithm Alrazarov, Dinic, Kronrod, Faradzev, 1970 ( (although only one was truly a Russian). speedup of dynamic programming techniques Alignment method Partition the
East Los Angeles College - HK - 331
Bioinformatics Supervision Assignment #21. Suppose that we have the scoring rules as follows: - a match reward of +2 - a mismatch penalty of 2 - a gap penalty of 2; In this case, describe the Four-Russians algorithm and show the time complexity.2
East Los Angeles College - HK - 331
Bioinformatics Supervision Assignment #41. Hidden Markov models (HMM) are widely used in Bioinformatics. (in a past paper) (i) In a HMM when would you use the BaumWelch algorithm, and when the Viterbi algorithm, and why? Give biologically motivated
East Los Angeles College - HK - 331
Bioinformatics Supervision Assignment #11. Show that time and space complexity of Banded Dynamic Programming for finding a global alignment between two DNA sequences.2. Show that time and space complexity of Hirschbergs algorithm for finding a gl
East Los Angeles College - HK - 331
Bioinformatics Supervision Assignment #11. Prove that time and space complexity of Banded Dynamic Programming for finding a global alignment between two DNA sequences.2. Prove that time and space complexity of Hirschbergs algorithm for finding a
East Los Angeles College - HK - 331
Bioinfor Bioinformatics Supervision Assignment #31. Discuss the difference between rooted tree and unrooted tree in the view ofPhylogenetics.2. Assign a set of possible letters to the following tree using Fitch algorithm. Fitchs3. Build the tr
East Los Angeles College - WL - 259
Learning for Accurate Classification of Real-time TrafficWei LiDepartment of Computer Science Queen Mary University of London London, United KingdomAndrew W MooreDepartment of Computer Science Queen Mary University of London London, United Kingd
Air Force Academy - PHL - 289
PHIL 235: Ethical Issues in Business and the ProfessionsOverview and Some BackgroundBusiness Ethics: Nature & ScopeAccording to some wags, the very idea of business ethics is a contradiction in terms, that is, an oxymoron: Oxymorons Jumbo Shr
UCLA - ESS - 200
Introduction To Physical OceanographyRobert H. Stewart Department of Oceanography Texas A & M University Copyright 2005 September 2005 EditioniiContentsPreface 1 A Voyage of Discovery 1.1 Physics of the ocean 1.2 Goals . . . . . . . . 1.3 Orga
Air Force Academy - POLS - 289
POLST 111.3 (05): Democracy in North America_ Term 1, Fall 2005 Department of Political Studies University of SaskatchewanClass Time / Location: T/Th 10:00 11:20 / Physics 103 Instructor: William Buschert <will.buschert@usask.ca> Office: Trailer
UCLA - GEOG - 597
CURRICULUM VITAE C. CINDY FANJuly 2007Professor, Department of Geography Professor, Department of Asian American Studies University of California, Los Angeles (UCLA) Box 951524, 1255 Bunche Los Angeles, CA 90095-1524Telephone: Fax: E-mail:(31
Air Force Academy - AZC - 461
Carbonates Recent and Ancient Lab #6Geol. 343 Facies ModelsWhat is a carbonate? A rock composed primarly of carbonate minerals (usually CaCO3) Primary minerals: Aragonite CaCO3 (primarily biogenic) Calcite CaCO3 (primarily chemical) Dolomite
East Los Angeles College - NX - 200
Compiling Real-Time Functional Reactive Programming (RT-FRP)Dana N. Xu and Siau-Cheng Khoo National University of Singapore04/22/091CompilationRT-FRP programFunctional CodePartial evaluationAutomata CodeTuplingTupled Automaton CodeC
East Los Angeles College - CL - 0708
Low Latency NetworkingGlenford Mapp Digital Technology Group Computer Laboratoryhttp:/www.cl.cam.ac.uk/Research/DTG/~gem11What is Latency? The time taken to send a unit of data between two points in a network A low latency network is a network
East Los Angeles College - CL - 0708
Complexity Theory123Complexity Theory124Savitchs Theorem - 2The space ecient algorithm for reachability used on the conguration graph of a nondeterministic machine shows:ComplementationA still more clever algorithm for Reachability has be
East Los Angeles College - CL - 0708
Complexity Theory104Complexity Theory105CryptographyPrivate KeyIn a private key system, there are two secret keysAliceBobe the encryption key d the decryption key and two functions D and E such that: for any x, D(E(x, e), d) = xE
East Los Angeles College - CL - 0708
Integrated servicesModule objectivesLearn and understand about: Support for real-time applications: network-layer and transport-layer Quality of service (QoS): Reading: S. Keshav, An Engineering Approach to Computer Networking, chapters 6, 9
East Los Angeles College - CL - 0708
/. -, Types in programming*+ ()Topic VITypes in programming languages References: Chapter 6 of Concepts in programming languages by J. C. Mitchell. CUP, 2003. Sections 4.9 and 8.6 of Programming languages: Concepts & constructs by R. Sethi (2 ND E
East Los Angeles College - CL - 0809
UNIVERSITY OF CAMBRIDGE COMPUTER LABORATORY Long Vacation Course Programming in Java Recommended Books Flanagan, F. (1997). Java in a Nutshell . OReilly. Eckel, B. (1998). Thinking in Java. Prentice-Hall. Provisional Timetable 1425 July 2008 Lecture
East Los Angeles College - CL - 0708
The Software Development Process A personal view Dr Robert Brady CTO, Brady plc Science Park Cambridge r.brady@bradyplc.comKey references: Debugging the Development Process S Maguire, Microsoft Press Showstopper G Pascal Zachary, MacmillanRobert B
East Los Angeles College - CL - 0708
Complexity Theory43Complexity Theory44Polynomial VericationThe problems Composite, SAT and HAM have something in common. In each case, there is a search space of possible solutions. the factors of x; a truth assignment to the variables of ;
East Los Angeles College - CL - 0708
Event-driven communication paradigm asynchronous message-passing rather than request-reply advertise - subscribe, publish - notify for scalability e.g. subscribe to and be notified of: bus-seen-event (busID=uni4.*, location=*) event-driven paradigm
East Los Angeles College - CL - 0708
RegulationsqManyregulationsaffectecommerce DataProtectionAct1998,and ConsumerProtection(DistanceSelling)Regulations 2000 ConsumerCreditAct1974 VATandtaxregulations FinancialServices(DistanceMarketing)Regulations (SI2095/2004) ConsumerProtec
Allan Hancock College - INFS - 4203
Answer to Question 1Entropy(Root) = (7/18)log2(7/18) (6/18)log2(6/18) (5/18)log2(5/18) = 1.571 Age: Entropy(Age: < 20) = (1/3)log2(1/3) (1/3)log2(1/3) (1/3)log2(1/3) = 1.585 Entropy(Age: 21 35) = (2/6)log2(2/6) (3/6)log2(3/6) (1/6)log2(1/6
Air Force Academy - ELS - 920
E. Simko WCVMPTT slides:http:/duke.usask.ca/~els920/References:General:Thomson's Special Veterinary PathologyW. W. Carlton et. al. Special:Muller & Kirk's Small Animal DermatologyD. W. Scott et. alCanine & Feline DermatologyG. H. Nesb
Allan Hancock College - COMP - 4600
COMP4600/7600 Software Specication and Testing Tutorial Wk 12 Sample AnswerFirst of all, please note that there was an error on the tutorial handout. The third test template for add TTadd3 = [s : P Z; x ? : Z | x ? s #s = maxsize] does not satisf
Allan Hancock College - COMP - 1500
THIS PAPER MUST NOT BE REMOVED FROM THE EXAMINATION ROOMFamily Name Given Names Student Number Signature. . . ..THE UNIVERSITY OF QUEENSLAND St. Lucia and Ipswich Campus Sample Examination COMP1500: INTRODUCTION TO PROGRAMMING COMP7901: SOFTWAR
Air Force Academy - ELS - 920
Defense mechanismsPhysical barrier Chemical and biochemical barrier Biologic barrier Innate immunity Acquired immunityE. Simko WCVMInfectious skin diseases - viralPoxvirusesMacules, papules, vesicles, pustules, crustsOrthopoxvirus Parapoxvir
East Los Angeles College - ER - 258
First Time Experiences Using SciPy for Computer Vision ResearchDamian Eads and Edward Rosten ISR Division Los Alamos National Laboratory Los Alamos, New Mexico {eads,edrosten}@lanl.govUNCLASSIFIED / LA-UR-08-05860 - Eads, RostenResearch Problem
Allan Hancock College - METR - 4202
METR4202 Advanced Control and RoboticsGFW/12.6.08Prac 1 Robot ArmObjectives To provide a complete robot arm design experience including mechanical and software design. To provide 25% of subject assessment.ObjectThe object of the Robot Arm
Allan Hancock College - COMS - 4507
The University of Queensland School of Information Technology and Electrical Engineering Semester 2, 2008COMS4507/7507 Tutorial 1, SolutionsQ1) Alice wants to share a secret message M (M = 11010100) between Bob and Charlie using the XOR-based me
Allan Hancock College - COMS - 7902
Exam DateCOMS7902/COMS2000 RevisionJ. IndulskaSchool of Information Technology and Electrical EngineeringTuesday, 15 November, 2:30 pm, Room N202, Hawken BuildingSpecial exams If, for any reason, you will not be sitting the exam in the sched
Allan Hancock College - ELEC - 3700
ELEC3700 RoboticsGFW/29.7.02Prac 1 Robot SoccerObjectives To provide a complete mobile robot experience including mechanical and software design. To provide 15% of subject assessment.Objective To build robots that can compete in the Robot So
Air Force Academy - GES - 125
Spatial Transformation of ImagesJohn Ashburner & Karl J. FristonThe Wellcome Department of Cognitive Neurology, Institute of Neurology, Queen Square, London WC1N 3BG, UKContents1 Introduction1.1 Overview : : : : : : : : : : : : : : : : : : :
East Los Angeles College - EE - 231
Edge Landmarks in Monocular SLAMEthan Eade and Tom Drummond Cambridge University{ee231, twd20}@cam.ac.ukAbstractWhile many visual simultaneous localisation and mapping (SLAM) systems use point features as landmarks, few take advantage of the ed
East Los Angeles College - CL - 336
Derivative and Parametric Kernels for Speaker VericationChris Longworth and Mark GalesAugust 28, 2007Cambridge University Engineering DepartmentInterspeech 2007 AntwerpC. Longworth & M.J.F. GalesOverview SVM-Based Speaker Verication Dynami
East Los Angeles College - CL - 336
Discriminative Adaptation for Speaker VerificationC. Longworth and M. J. F. Gales Engineering Department, Cambridge University Trumpington St, Cambridge, CB2 1PZ{cl336,mjfg}@eng.cam.ac.ukAbstractSpeaker verication is a binary classication task t
East Los Angeles College - CL - 336
T4 " $ 1@ 0 V DCA B $ ` 0 1 $ @ "@ 0 $ 1 b@ a " 4 % T3 0@ 3 4)9 @ FB E HB G Q RIP IP PS " 6 4 7 8 0 4 5 21 "( 3! W #$ "@ % X Y3 0 5 " #! % &$ 0)' ( U d ec h fg pi ggq str tu hv g dig fw fy x d n A A z E~ r B
East Los Angeles College - GV - 215
Multi-view Stereo via Volumetric Graph-cutsGeorge Vogiatzis Philip H. S. Torr Roberto CipollaCambridge Univ. Engineering Dept. Department of Computing Oxford Brookes UniversityMulti-view Dense StereoCalibrated images of Lambertian scene3D mode
East Los Angeles College - GV - 215
Lighting-up geometry: accurate 3D modelling with a torch and a cameraGeorge Vogiatzis, Carlos Hernndez, Roberto Cipolla University of Cambridge, Toshiba ResearchOur technique Aquire high-res mesh from images taken under changing camera position a
East Los Angeles College - GV - 215
Reconstructing Relief SurfacesGeorge Vogiatzis, Philip Torr, Steven Seitz and Roberto Cipolla BMVC 2004Stereo reconstruction problem:Input Set of images of a scene I={I ,I } 1 KCamera matrices P1,PKOutput Surface modelShape parametri
East Los Angeles College - OA - 214
Image ProcessingIB Paper 8 Part A Ognjen Arandjelovihttp:/mi.eng.cam.ac.uk/~oa214/ Colour Why Colour?Useful for perceptual enhancement of images:Samples corresponding to a single pixelOriginal imageAfter enhancementWhy Colour?A usefu
Air Force Academy - GES - 125
i i fn i z l fkn UdUhl i~in FfSkkiIrUFfh{%gik{i(gjvih{i FfUiSSg2Sr FFflrS fgUh r(Fn~ wFf F{fFVSSgikkf rUVd~p Sg%}ihv "ifU~Dvi Ui SUhf gi~k xr~Rni {iiIjii {ryFh Wg}bUh~Uf g(ik~ gSUri U~Ijif U F%(vf~h h {ioT FfF if{iRiSSgSklf bgS~hn 2
Air Force Academy - GES - 125
The detector package consists of 3 wire chambers, followed by 3 scintillationdetectors. The wire chambers each consist of 2 planes of orthogonal wire,space 8 mm apart, and have a "magic" gas flowing through them (Argon,Isobutane, Alcohol mixture)