0
0
Computer Networksknowledge~10 mins

IP packet structure in Computer Networks - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to name the first field of an IP packet header.

Computer Networks
The first field in an IP packet header is called the [1] field.
Drag options to blanks, or click blank then click option'
AChecksum
BVersion
CPayload
DSource Address
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing the Version field with the Checksum or Source Address fields.
2fill in blank
medium

Complete the code to identify the field that specifies the total length of the IP packet.

Computer Networks
The field that specifies the total length of the IP packet is called the [1] field.
Drag options to blanks, or click blank then click option'
AIdentification
BTime to Live
CFlags
DTotal Length
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up Total Length with Identification or Flags fields.
3fill in blank
hard

Fix the error in naming the field that controls packet fragmentation.

Computer Networks
The [1] field controls fragmentation and reassembly of IP packets.
Drag options to blanks, or click blank then click option'
AFlags
BHeader Checksum
CProtocol
DTime to Live
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing Flags with Time to Live or Protocol fields.
4fill in blank
hard

Fill both blanks to complete the description of the source and destination addresses in an IP packet.

Computer Networks
The [1] field contains the sender's IP address, and the [2] field contains the receiver's IP address.
Drag options to blanks, or click blank then click option'
ASource Address
BDestination Address
CIdentification
DHeader Length
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up Source and Destination Address fields.
5fill in blank
hard

Fill all three blanks to complete the dictionary comprehension that maps IP header fields to their typical bit sizes, filtering only fields larger than 8 bits.

Computer Networks
ip_header_bits = { [1]: [2] for [3], [4] in fields.items() if [4] > 8 }
Drag options to blanks, or click blank then click option'
Afield
Bsize
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same variable name for both key and value.
Not matching the variable names in the for loop with those in the comprehension.