HW2 Answers NET 413 Fall 2023

docx

School

DePaul University *

*We aren’t endorsed by this school

Course

413

Subject

Computer Science

Date

Oct 30, 2023

Type

docx

Pages

5

Uploaded by MajorMantisMaster977

Report
NET 413 HW 2 Answers Due Sunday, Oct. 8, 2023 by 11:59 pm 50 points Name: Dale Buchholz Submit your answers to the following questions on D2L. Include your name at the beginning of your answer file. 1. (2 pts) My IP address is 140.62.52.18 and my subnet mask is 255.255.255.248. What are the first and last assignable IP addresses in my subnet? Recall that subnet address has all zeroes for host ID and broadcast has all ones as host ID. The assignable addresses are in between the subnet and broadcast addresses. (see slides 23-27 in 2IP Subnetting) 255.255.255.248 is equivalent to /29. Subnet size is 8. There are (32-29) = 3 Host bits in each address. First, determine Network Address by (a) zeroing out last 3 bits of “18” which gives “16” or (b) determine greatest multiple of 8 that is less than 18, which is 16. In either case, the Network address is 140.62.52.16 and the Subnet ID is 140.62.52.16/29. The First and Last Assignable IP addresses of 140.62.52.16/29 are 140.62.52.17 and 140.62.52.22 2. (2 pts) My IP address is 140.62.52.18 and my subnet mask is 255.255.248.0. What are the first and last assignable IP addresses in my subnet? 255.255.248 .0 is equivalent to /21. Subnet size is 2048 since there are (32-21) = 11 Host bits in each address. First, determine Network Address by (a) zeroing out all of 4 th byte and the last 3 bits of 3 rd byte “52” which gives “48” or (b) 3 rd byte Jump Factor is 8 (equals 2048/256 or 256-248), so for 3 rd byte we determine greatest multiple of 8 that is less than 52, which is 48. In either case, the Network address is 140.62.48.0 and the Subnet ID is 140.62.48.0/21. The First and Last Assignable IP addresses of 140.62.48.0/21 are 140.62.48.1 and 140.62.55.254 3. Company A has been allocated the Class B address block 177.248.0.0/16. Internally, they want to break this address block into 32 subnets of equal size. a) (2 pts) What Subnet Mask should be used on internal devices to achieve this? What power of 2 is greater than or equal to 32? That is 2 n = 32? What is the value of n? Using slide 21, the Network Prefix is the first 16 bits (188.253), the subnet ID uses the next n bits, and the host ID uses the remaining bits (32-16-n). Here are two ways to do this problem: i) Since they need 32 subnets and 2 5 = 32, they need to borrow 5 bits, so the new prefix length is 16+5 = 21. The new subnets will be /21, which is 255.255.248.0 . ii) They have 65,536 addresses in their /16 block. To split into 32 subnets, each will have size 65,536/32 = 2048. The only subnet mask that gives subnets of this size is 255.255.248.0 . NET 413 HW #2 1
b) (8 pts) Out of these 32 subnets, list the Subnet ID of any 2 subnets and the first and last valid host address in each of these 2 subnets. The subnet ID bits increment by 1 to identify the next subnet. For example, if the subnet ID field uses 3 bits, then the subnet IDs are 000, 001, 010, 011, 100, 101, 110 and 111 (i.e., 0-7 in decimal). Recall that the first address in a subnet is the subnet address (all zeroes in host ID) and the last is the broadcast address (all ones in host ID). i) 1st subnet: Subnet ID = 177.248.0.0/21, First valid host IP = 177.248.0.1, last valid host IP = 177.248.7.254 ii) 2nd subnet: Subnet ID = 177.248.8.0/21, First valid host IP = 177.248.8.1, last valid host IP = 177.248.15.254 iii) 3rd subnet: Subnet ID = 177.248.16.0/21, First valid host IP = 177.248.16.1, last valid host IP = 177.248.23.254 iv) In general, any Subnet ID 177.248.8*k.0/21, for integer k between 0 and 31, is a valid Subnet ID for this problem. 4. Refer to the following diagram, where a switch with ports 1 to 24 is connected to devices with MAC addresses A to H. Assume that the forwarding table is initially empty and that the following sequence of transmissions occurs (each is a one-way frame transmission and there is no timeout of Forwarding Table entries during this time): [1] Device A transmits a frame to device E [2] Device E transmits a frame to device A [3] Device D transmits a frame to device G [4] Device E transmits a frame to device H [5] Device G transmits a frame to device D [6] Device H transmits a frame to device E For each frame transmission, the switch will do two things: a. add the source MAC and incoming port into the Forwarding Table or update the entry if it is already in the table. b. look up the destination MAC in the Forwarding Table. If it is in the table, then the frame is sent out the corresponding port. If it is not in the table, then the frame is broadcast out all active ports except the incoming port. An active port NET 413 HW #2 2
may have more than one MAC address associated with it as is the case with the access point on port 5 or a hub. a. (6 pts) For each frame transmission, list all switch port(s) on which the frame is sent out . Note: this will never include the port on which the switch receives the frame. You should do these in order (from [1] to [5]) and keep track of how the Forwarding Table changes with each frame transmission. For example, the Forwarding Table is empty when frame [1] is received, but then the Forwarding Table is updated from frame [1], so it is not empty when frame [2] is received, then it is updated from frame [2] before frame [3] is received, etc. The contents of your forwarding table will be entered in part b. i. Frame [1] is sent out Ports 2, 3, 4, 5, 7, 8. (all active ports except 1) ii. Frame [2] is sent out Port 1. iii. Frame [3] is sent out Ports 1, 2, 3, 5, 7, 8. (all active ports except 4) iv. Frame [4] is sent out Ports 1, 2, 3, 4, 7, 8. (all active ports except 5) v. Frame [5] is sent out Port 4. vi. Frame [6] is sent out Port 5. b. (5 pts) Show the contents of the Forwarding Table after all six frame transmissions have completed. Each line of the Forwarding Table will have a MAC Address (A thru H) and a Port (1 thru 8). From the work shown above, the Table contains (in any order): MAC Address (A-H) Port (1-8) A 1 E 5 D 4 G 7 H 8 5. (4 points) Explain an advantage of Router-on-a-Stick Inter-VLAN Routing as compared with Legacy Inter-VLAN Routing. Router-on-a-Stick (ROAS) uses only 1 physical router interface and 1 trunk switch interface to route all VLANs using subinterfaces on the router. On the otherhand, Legacy Inter-VLAN Routing uses 1 physical router interface and 1 access switch interface for each VLAN . Therefore, ROAS requires fewer router interfaces and fewer switch interfaces which saves money, equipment, space, cabling and configuration time. 6. Consider this switched network. Assume that STP is running on this network. Fa interfaces run at 100 Mbps and G interfaces run at 1 Gbps. The table below shows the Bridge ID (BID) value for each switch, split into Priority and MAC Address parts. All ports are on VLAN 1. Assume that all links have default costs. NET 413 HW #2 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
a. (2 points) When STP protocol executes, which switch (S1, S2 or S3) will become the Root Switch for this network? Why? S3 will become the Root Switch because it has the lowest Priority value, which gives it the lowest overall Bridge ID value. b. (6 points) Give the Port Role for each of the following ports, i.e., one of {Root, Designated, Backup}. i. S1 Fa0/1 Designated (lower BID than S2) ii. S1 G0/2 Root iii. S2 Fa0/1 Backup (aka Alternate) (higher BID than S1) iv. S2 G0/2 Root v. S3 G0/1 Designated vi. S3 G0/2 Designated c. (2 points) Which ports in this network will be placed into the Blocking State (also called the Discarding State in RSTP)? S2 Fa0/1 will be placed into the Blocking State because this link is not part of the spanning tree. All other ports, including those for access links, will be in the forwarding state. I did allow for S1 Fa0/1 to also be in Blocking state since it makes sense not to forward across this link. However, the STP protocol says all Designated ports end up in Forwarding state. d. (2 points) What is the Root Path Cost for switch S2? In other words, what is the Path Cost from S2 to the Root Switch? S2 G0/2 is a 1Gbps link so Root Path Cost is 4 . From slide 24 in 4STP: NET 413 HW #2 4
e. Assume that the Host MAC address is 11:22:33:44:55:66. After STP has executed, the Host sends out a broadcast, so that its MAC address is added to the Forwarding Table on each of the 3 switches. i. (2 points) What is the port associated with 11:22:33:44:55:66 in the S2 Forwarding Table? Switch S2 Forwarding Table MAC Address Port 11:22:33:44:55:66 G0/2 ii. (2 points) What is the port associated with 11:22:33:44:55:66 in the S3 Forwarding Table? Switch S3 Forwarding Table MAC Address Port 11:22:33:44:55:66 G0/2 f. (5 points) Suppose you want Switch S2 to become the new Root Switch. What command could you type on the Switch S2 CLI to make this happen? From slide 22 in 4STP: Any of the following would work: spanning-tree vlan 1 root primary (6*4094+1=24577 so less than 28673) spanning-tree vlan 1 root secondary (7*4096+1=28673; however, S2 MAC address is less than S3 MAC address so S2 BID is less than S3 BID) spanning-tree vlan 1 priority <value> where value = (x*4096+1) and is strictly less than or equal to 28673, i.e., x is one of {1,2,3,4,5,6,7}. The values 8-15 would not allow S2 to become Root Switch. NET 413 HW #2 5

Browse Popular Homework Q&A

Q: You are serving 40 mixed green salads, each requiring 2 Tbl. of Italian dressing.  How many cups of…
Q: Select the lightest possible W-section for the beam shown in Figure 1. Assume ?? = 50 ?, full…
Q: An insurance company claims that for x thousand policies, its monthly revenue in dollars is given by…
Q: Explain the Stag Hunt Game as an example of a coordination problem?
Q: At the pressure of P=0.1MPa, the saturation temperature of water is Tsot-100 °C, the specific volume…
Q: The mass of the part of a metal rod that lies between its left end and a point x meters to the right…
Q: A long steel I-beam used in bridge construction has a length of 19.1 m and is made of an element…
Q: Enhanced EOC: Exercise 3.7 The coordinates of a bird flying in the xy plane are given by z(t) = at…
Q: Identify which statement below is the fact, the law, and the theory. In the Serengeti, the savanna…
Q: A transformer has a primary voltage of 240 volts and a secondary voltage of 60 volts. It has a power…
Q: How do binary divisions also matter to the constructions of class, race, sexuality, and/or…
Q: A 140 g mass is connected to a light spring of force constant 4.00 N/m and is free to oscillate on a…
Q: Please fill in the blanks from 13 to 58 for C /* This program will do some basic programming using…
Q: (6) The circuits below are in steady state. (a) Find the complex power received by the capacitor, in…
Q: Scenario One: "What if" Analysis for adding flavored Ice coffees. Your client is unsure if she…
Q: Find the current when t = 0.9 s. A (b) Find the current when t = 1 s. A At what time is the…
Q: A used-car dealer gets complaints about his cars as shown in the table. Number of complaints per day…
Q: (a) Fill in the blank to write the year-end amount in terms of the original amount. Write your…
Q: A farmer wants to find the best time to take her hogs to market. The current price is 84 cents per…
Q: Benson Company purchased land and paid the full purchase price in cash. Which of the following would…
Q: A manufacturing firm finds that 80% of its new hires turn out to be good workers and 20% become poor…
Q: General Patterns Found Across All Biomes Biomes are not completely distinct entities, but grade from…