Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

MidtermSolution.pdf

Rating
-
Sold
-
Pages
3
Uploaded on
27-06-2023
Written in
2022/2023

CMPT 371 Summer 2022 Midterm Q1. (8 marks) Consider the extended LAN connected using bridges B1 and B2 in the figure below and suppose the hash tables in the two bridges are initially empty. For each bridge, list all ports on which a packet will be forwarded for the following sequence of data transmissions: i. E sends a packet to F. ii. F sends a packet to E. iii. D sends a packet to E. iv. A sends a packet to F. Transmission B1 ports forwarding B2 ports forwarding What B1 learns at the end of this transmission What B2 learns at the end of this transmission i 1,2,3 2,3,4 E is on port 4 E is on port 1 ii N/A 1 N/A F is on port 2 iii N/A N/A N/A D is on port 1 iv 2,3,4 2 A is on port 1 A is on port 4 Q2. (8 marks) While in transit, a 400-octet IP packet (20-octet header included) arrives at a network with an MTU of 220 octets. Hence, the router responsible for that network fragments the IP packet into fragments. Find: a) the number of fragments data length = 400-20=380 octets maximum data that can be sent = 220-20=200 octets, which is already a multiple of 8 octets (200=25×8) number of fragments = 380 200 = 1.9, so we need 2 fragments. b) for each fragment, what is: i. the total length field (in octets) ii. the offset field (in 8 octets) iii. the more flag (binary) Fragment total length (octets) Offset (8 octets) more flag 1 200+20=220 0 1 2 180+20=200 25 0

Show more Read less
Institution
Course

Content preview

CMPT 371 Summer 2022

Midterm

Q1. (8 marks) Consider the extended LAN connected using bridges B1 and B2 in the figure below
and suppose the hash tables in the two bridges are initially empty. For each bridge, list all ports on
which a packet will be forwarded for the following sequence of data transmissions:
i. E sends a packet to F.
ii. F sends a packet to E.
iii. D sends a packet to E.
iv. A sends a packet to F.




Transmission B1 ports B2 ports What B1 learns at the end What B2 learns at the end
forwarding forwarding of this transmission of this transmission
i 1,2,3 2,3,4 E is on port 4 E is on port 1
ii N/A 1 N/A F is on port 2
iii N/A N/A N/A D is on port 1
iv 2,3,4 2 A is on port 1 A is on port 4

Q2. (8 marks) While in transit, a 400-octet IP packet (20-octet header included) arrives at a
network with an MTU of 220 octets. Hence, the router responsible for that network fragments
the IP packet into fragments. Find:
a) the number of fragments

data length = 400-20=380 octets
maximum data that can be sent = 220-20=200 octets, which is already a multiple of 8 octets
(200=25×8)
380
number of fragments = 200 = 1.9, so we need 2 fragments.

b) for each fragment, what is:
i. the total length field (in octets)
ii. the offset field (in 8 octets)
iii. the more flag (binary)

Fragment total length (octets) Offset (8 octets) more flag
1 200+20=220 0 1
2 180+20=200 25 0



This study source was downloaded by 100000853497421 from CourseHero.com on 06-27-2023 03:05:52 GMT -05:00


https://www.coursehero.com/file/172910228/MidtermSolutionpdf/

Written for

Course

Document information

Uploaded on
June 27, 2023
Number of pages
3
Written in
2022/2023
Type
Exam (elaborations)
Contains
Unknown

Subjects

$3.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
FaiFai

Get to know the seller

Seller avatar
FaiFai Harvard College
Follow You need to be logged in order to follow users or courses
Sold
4
Member since
2 year
Number of followers
2
Documents
145
Last sold
1 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions