0% found this document useful (0 votes)
17 views13 pages

Roll No - 6

The document outlines a practical exercise aimed at understanding packet and frame content details using Cisco Packet Tracer. It includes steps for creating a network topology, configuring IP addresses, static routing, and performing pings between devices, along with tables for MAC, IP, ARP, and routing information. The document also contains exercises that require capturing and analyzing packet data in simulation mode, highlighting the differences in inbound and outbound PDU details.

Uploaded by

Rinku Kansara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views13 pages

Roll No - 6

The document outlines a practical exercise aimed at understanding packet and frame content details using Cisco Packet Tracer. It includes steps for creating a network topology, configuring IP addresses, static routing, and performing pings between devices, along with tables for MAC, IP, ARP, and routing information. The document also contains exercises that require capturing and analyzing packet data in simulation mode, highlighting the differences in inbound and outbound PDU details.

Uploaded by

Rinku Kansara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Practical-5

Date: - -
AIM: Understand & identify Packet(L3) & frame(L2) content detail.

Tools required:
1. Desktop Computer
2. Cisco Packet Tracer
https://youtu.be/-F0HrjYtKQg?si=Tl1qjyECRYqylNFe

Topology for the consideration

Page 1 of 13
Steps:
1. Create topology in Realtime mode
2. Configure IP address
3. Configure Static Routing in Each routers
4. Ping from PC0 to rest other PCs and all interface of routers and fill success table
5. Go to Simulation mode
6. Prepare MAC and IP address Table.
7. Prepare ARP table for all PCs
8. Prepare Routing tables for Router0, Router1 and Router2
9. Prepare ARP tables for Router0, Router1 and Router2
10. Prepare MAC table of all switches
11. In simulation mode follow instructions as given in exercise and write answer of
questions.

Destination Destination IP Command Success/Fail


machine address
FE0/0 of Router0 10.0.0.2 Ping 10.0.0.2 Success
FE0/1 of Router0 11.0.0.1 Ping 11.0.0.1 Success
FE0/0 of Router1 11.0.0.2 Ping 11.0.0.2 Success
FE0/1 of Router1 13.0.0.1 Ping 13.0.0.1 Success
FE0/0/0 of Router1 12.0.0.2 Ping 12.0.0.2 Success

Page 2 of 13
PC1 12.0.0.1 Ping 12.0.0.1 Success
FE0/0 of Router2 13.0.0.2 Ping 13.0.0.2 Success
FE0/1 of Router2 14.0.0.2 Ping 14.0.0.2 Success
PC2 14.0.0.1 Ping 14.0.0.1 Success
Ping Success table
Ping from PC0 to PC2 and attach a snapshot for the same.

Page 3 of 13
Computer/Router MAC address IP address
Interface
PC0 0001.C7B6.1C1C 10.0.0.1
Router0 FE0/0 0007.EC3A.D201 10.0.0.2
Router0 FE0/1 0007.EC3A.D202 11.0.0.1
Router1 FE0/0 00D0.FFA0.7101 11.0.0.2
Router1 FE0/1 00D0.FFA0.7102 13.0.0.1
Router1 ETH0/0/0 0030.A328.D2E2 12.0.0.2
PC1 0001.43CA.5B44 12.0.0.1
Router2 FE0/0 000B.BE53.7201 13.0.0.2
Router2 FE0/1 000B.BE53.7202 14.0.0.2
PC2 0060.2F79.AE98 14.0.0.1
MAC and IP address Table

IP Address MAC Address Interface


10.0.0.2 0007.EC3A.D201 Router0 FE0/0
ARP Table for PC0
IP Address MAC Address Interface
12.0.0.2 0030.A328.D2E2 Router1 ETH0/0/0
ARP Table for PC1
IP Address MAC Address Interface
14.0.0.2 000B.BE53.7202 Router2 FE0/1

ARP Table for PC2

Type Network Port Next Hop Metric


ID
Static 12.0.0.0 FE0/0 11.0.0.2 1
Static 14.0.0.0 FE0/1 11.0.0.2 1
Routing table for Router0
Page 4 of 13
Type Network Port Next Hop Metric
ID
Static 10.0.0.0 FE0/0 11.0.0.1 1
Static 14.0.0.0 FE0/1 13.0.0.2 1
Routing table for Router1
Type Network Port Next Hop Metric
ID
Static 10.0.0.0 FE0/0 13.0.0.1 1
Static 12.0.0.0 FE0/0 13.0.0.1 1
Routing table for Router2

IP Address MAC Address Interface


10.0.0.1 0001.C7B6.1C1C FastEthernet0/0
10.0.0.2 0007.EC3A.D201 FastEthernet0/0
11.0.0.1 0007.EC3A.D202 FastEthernet0/1
11.0.0.2 00D0.FFA0.7101 FastEthernet0/1
ARP Table for Router0

IP Address MAC Address Interface


11.0.0.1 0007.EC3A.D202 FastEthernet0/0
11.0.0.2 00D0.FFA0.7101 FastEthernet0/0
12.0.0.1 0001.43CA.5B44 Ethernet0/1/0
12.0.0.2 0030.A328.D2E2 Ethernet0/1/0
13.0.0.1 00D0.FFA0.7102 FastEthernet0/1
13.0.0.2 000B.BE53.7201 FastEthernet0/1
ARP Table for Router1
IP Address MAC Address Interface
13.0.0.1 00D0.FFA0.7102 FastEthernet0/0
13.0.0.2 000B.BE53.7201 FastEthernet0/0
14.0.0.1 0060.2F79.AE98 FastEthernet0/1
14.0.0.2 000B.BE53.7202 FastEthernet0/1
ARP Table for Router2

VLAN ID MAC Address port


1 0007.ec3a.d201 Fa0/2
Switching table for Switch0
VLAN ID MAC Address port
1 0030.a328.d2e2 Fa0/2
Switching table for Switch1
VLAN ID MAC Address port
1 000b.be53.7202 Fa0/2
Switching table for Switch2

Page 5 of 13
In simulation mode
Exercise-1: Ping from PC0 to FE0/0 of Router0
click on capture forward once so packet goes to switch, Inspect& write Inbound and Outbound PDU
and fill following table
In Bound Out Bound
Source MAC Address 0001.C7B6.1C1C (PC0) 0001.C7B6.1C1C (PC0)
Destination MAC address 0007.EC3A.D201 (Router0
FE0/0)
Source IP Address 10.0.0.1 10.0.0.1
Destination IP address 10.0.0.2 10.0.0.2

Question: What decision will be taken by switch?


Answer: The switch learns the source MAC address (0001.C7B6.1C1C) from the inbound frame and
associates it with the port connected to PC0. It then forwards the packet to the port associated with the
MAC address of Router0's FE0/0 interface.
Exercise-2: Ping from PC0 to FE0/1 of Router0
Click on capture forward once so packet goes to switch, Inspect& write Inbound and Outbound PDU
and fill following table
In Bound Out Bound
Source MAC Address 0001.C7B6.1C1C
Destination MAC address FFFF.FFFF.FFFF (Broadcast) 0007.EC3A.D202 (Router0
FE0/1)
Source IP Address 10.0.0.1 10.0.0.1
Destination IP address 11.0.0.1 11.0.0.1

Question: Is there any difference between table content of exercise-1 and 2? Why?
Answer: Yes, the destination MAC and IP addresses are different because the target is now Router0's
FE0/1 interface instead of FE0/0.
Exercise-3: Ping from PC0 to FE0/0 of Router1
Click on capture forward once so packet goes to switch, Inspect & write Inbound and Outbound PDU
and fill following table

In Bound Out Bound


Source MAC Address 0001.C7B6.1C1C (PC0) 0001.C7B6.1C1C (PC0)
Destination MAC address FFFF.FFFF.FFFF (Broadcast) 0007.EC3A.D201 (Router0
FE0/0)
Source IP Address 10.0.0.1 10.0.0.1
Destination IP address 11.0.0.2 11.0.0.2

Click on capture forward once so packet goes to Router0, Inspect & write Inbound and Outbound
PDU and fill following table
In Bound Out Bound
Source MAC Address 0001.C7B6.1C1C (PC0) 0007.EC3A.D201 (Router0
FE0/0)
Page 6 of 13
Destination MAC address 00D0.FFA0.7101 00D0.FFA0.7101 (Router1
FE0/0)
Source IP Address 10.0.0.1 10.0.0.1
Destination IP address 11.0.0.2 11.0.0.2

Question: What decision will be taken by Router0?


Answer: Router0 will forward the packet to Router1 based on the destination IP address (11.0.0.2)
and its routing table.
Question: Is Inbound and outbound PDU detail remain same? If not why?
Answer: No, the MAC addresses are updated when the packet is forwarded to Router1. However, the
IP addresses remain unchanged.

Exercise-4: Ping form PC0 to PC1 (For even roll number of student PC0 to PC2)
Click on capture forward so packet goes to switch0, Inspect & write Inbound and Outbound PDU and
fill following table
In Bound Out Bound
Source MAC Address 0001.C7B6.1C1C (PC0) 0001.C7B6.1C1C (PC0)
Destination MAC address FFFF.FFFF.FFFF (Broadcast) FFFF.FFFF.FFFF (Broadcast)
Source IP Address 10.0.0.1 10.0.0.1
Destination IP address 13.0.0.1 13.0.0.1
Click on capture forward so packet goes to Router0, Inspect & write Inbound and Outbound PDU and
fill following table
In Bound Out Bound
Source MAC Address 0001.C7B6.1C1C (PC0) 0001.C7B6.1C1C (PC0)
Destination MAC address 0007.EC3A.D201 (Router0) 0007.EC3A.D201 (Router0)
Source IP Address 10.0.0.1 10.0.0.1
Destination IP address 13.0.0.1 13.0.0.1
Click on capture forward so packet goes to Router1, Inspect & write Inbound and Outbound PDU and
fill following table
In Bound Out Bound
Source MAC Address 0007.EC3A.D201 (Router0) 0007.EC3A.D201 (Router0)
Destination MAC address 00D0.FFA0.7102 (Router1) 00D0.FFA0.7102 (Router1)
Source IP Address 10.0.0.1 10.0.0.1
Destination IP address 13.0.0.1 13.0.0.1
Click on capture forward so packet goes to switch1, Inspect & write Inbound and Outbound PDU and
fill following table
In Bound Out Bound
Source MAC Address 00D0.FFA0.7102 (Router1) 00D0.FFA0.7102 (Router1)
Destination MAC address FFFF.FFFF.FFFF (Broadcast) FFFF.FFFF.FFFF (Broadcast)
Source IP Address 10.0.0.1 10.0.0.1

Page 7 of 13
Destination IP address 13.0.0.1 13.0.0.1
Click on capture forward so packet goes to PC1, Inspect & write Inbound and Outbound PDU and fill
following table
In Bound Out Bound
Source MAC Address 00D0.FFA0.7102 (Router1) 00D0.FFA0.7102 (Router1)
Destination MAC address 0001.43CA.5C44 (PC2) 0001.43CA.5C44 (PC2)
Source IP Address 10.0.0.1 10.0.0.1
Destination IP address 13.0.0.1 13.0.0.1
Click on capture forward so packet goes to switch1, Inspect & write Inbound and Outbound PDU and
fill following table
In Bound Out Bound
Source MAC Address 0001.43CA.5C44 (PC2) 0001.43CA.5C44 (PC2)
Destination MAC address FFFF.FFFF.FFFF (Broadcast) 00D0.FFA0.7102 (Router1)
Source IP Address 13.0.0.1 13.0.0.1
Destination IP address 10.0.0.1 10.0.0.1
Click on capture forward so packet goes to Router1, Inspect & write Inbound and Outbound PDU and
fill following table
In Bound Out Bound
Source MAC Address 0001.43CA.5C44 (PC2) 00D0.FFA0.7102 (Router1)
Destination MAC address 00D0.FFA0.7102 (Router1) 0007.EC3A.D201 (Router0)

Source IP Address 13.0.0.1 13.0.0.1


Destination IP address 10.0.0.1 10.0.0.1
Click on capture forward so packet goes to router0, Inspect & write Inbound and Outbound PDU and
fill following table
In Bound Out Bound
Source MAC Address 00D0.FFA0.7102 (Router1) 0007.EC3A.D201 (Router0)

Destination MAC address 0007.EC3A.D201 (Router0) 0001.C7B6.1C1C (PC0)


Source IP Address 13.0.0.1 13.0.0.1

Destination IP address 10.0.0.1 10.0.0.1


Click on capture forward so packet goes to switch0, Inspect & write Inbound and Outbound PDU and
fill following table

In Bound Out Bound


Source MAC Address 0007.EC3A.D201 (Router0) 0007.EC3A.D201 (Router0)
Destination MAC address 0001.C7B6.1C1C (PC0) 0001.C7B6.1C1C (PC0)
Source IP Address 13.0.0.1 13.0.0.1
Destination IP address 10.0.0.1 10.0.0.1
Click on capture forward so packet goes to PC0, Inspect & write Inbound and Outbound PDU and fill
following table
In Bound Out Bound
Source MAC Address 0007.EC3A.D201 (Router0) 0007.EC3A.D201 (Router0)

Page 8 of 13
Destination MAC address 0001.C7B6.1C1C (PC0) 0001.C7B6.1C1C (PC0)
Source IP Address 13.0.0.1 13.0.0.1
Destination IP address 10.0.0.1 10.0.0.1

Observe/inspect values of above tables and answer following questions.


Question: Is Source IP and Destination IP remains same for one way of data transmission?
Answer: Yes, the source and destination IP addresses remain the same for the entire one-way
transmission.
Justify: In reverse direction, source IP and destination IP address gets changed.
Answer: In the reverse direction, the Source IP and Destination IP switch roles because PC2 becomes
the sender and PC0 becomes the receiver.

Gate Questions :
1. Which of the following functionality must be implemented by a transport protocol
over and above the network protocol?
A) Recovery from packet losses
B) Detection of duplicate packets
C) Packet delivery in the correct order
D) End to end connectivity
Ans. A) Recovery from packet losses

2. Choose the best matching between Group 1 and Group 2


Group-1 Group-2
P. Data link layer 1.Ensures reliable transport of data over a physical point-to-point link

Q. Network layer 2.Encodes/decodes data for physical transmission


R. Transport layer 3.Allows end-to-end communication between two processes

4. Routes data from one network node to the next

A) P-1, Q-4, R-3


B) P-2, Q-4, R-1
C) P-2, Q-3, R-1
D) P-1, Q-3, R-2
Ans. A) P-1, Q-4, R-3

3. Match the following:


A. SMTP 1. Application Layer
B. BGP 2. Transport Layer
C. TCP 3. Data Link Layer
D. PPP 4. Network Layer
5. Physical Layer
Page 9 of 13
A) A - 2, B - 1, C - 3, D - 5
B) A - 1, B - 4, C - 2, D - 3
C) A - 1, B - 4, C - 2, D - 5
D) A - 2, B - 4, C - 1, D – 3
Ans. C) A - 1, B - 4, C - 2, D - 5

4. Assume that source S and destination D are connected through two intermediate
routers labeled R. Determine how many times each packet has to visit the network
layer and the data link layer during a transmission from S to D.
A) Network layer – 4 times and Data link layer – 4 times
B) Network layer – 4 times and Data link layer – 3 times
C) Network layer – 4 times and Data link layer – 6 times
D) Network layer – 2 times and Data link layer – 6 times
Ans. C) Network layer – 4 times and Data link layer – 6 times

5. In the following pairs of OSI protocol layer/sub-layer and its functionality, the
INCORRECT pair is
A) Network layer and Routing
B) Data Link Layer and Bit synchronization
C) Transport layer and End-to-end process communication
D) Medium Access Control sub-layer and Channel sharing
Ans. B) Data Link Layer and Bit synchronization

6. Match the following:


Field Length in bits
(P).UDP Header's Port Number I. 48
(Q).Ethernet MAC Address II. 8
(R).IPv6 Next Header III. 32
(S).TCP Header's Sequence Number IV. 16

A) P-III, Q-IV, R-II, S-I


B) P-II, Q-I, R-IV, S-III
C) P-IV, Q-I, R-II, S-III
D) P-IV, Q-I, R-III, S-II
Ans. C) P-IV, Q-I, R-II, S-III

7. Which of the following is NOT true with respect to a transparent bridge and a
router?
A) Both bridge and router selectively forward data packets
B) A bridge uses IP addresses while a router uses MAC addresses
C) A bridge builds up its routing table by inspecting incoming packets
D) A router can connect between a LAN and a WAN
Ans. B) A bridge uses IP addresses while a router uses MAC addresses

8. Which of the following is TRUE about the interior gateway routing protocols −
Routing Information Protocol (RIP) and Open Shortest Path First (OSPF)

Page 10 of 13
A) RIP uses distance vector routing and OSPF uses link state routing
B) OSPF uses distance vector routing and RIP uses link state routing
C) Both RIP and OSPF use link state routing
D) Both RIP and OSPF use distance vector routing
Ans. A) RIP uses distance vector routing and OSPF uses link state routing

9. An IP router implementing Classless Inter-domain Routing (CIDR) receives a


packet with address 131.23.151.76 . The router's routing table has the following
entries:
Prefix Outer Interface Identifier
131.16.0.0/12 3
131.28.0.0/14 5
131.19.0.0/16 2
131.22.0.0/15 1
The identifier of the output interface on which this packet will be forwarded is
___________.
Ans. 3

10. Consider the following statements about the routing protocols. Routing
Information Protocol (RIP) and Open Shortest Path First (OSPF) in an IPv4
network.
I. RIP uses distance vector routing
II. RIP packets are sent using UDP
III. OSPF packets are sent using TCP
IV. OSPF operation is based on link-state routing
Which of the above statements are CORRECT?
A) I and IV only
B) I, II and III only
C) I, II and IV only
D) II, III and IV only
Ans. C) I, II and IV only

11. Consider the following statements about the functionality of an IP based router.
I. A router does not modify the IP packets during forwarding.
II. It is not necessary for a router to implement any routing protocol.
III. A router should reassemble IP fragments if the MTU of the outgoing link is
larger than the size of the incoming IP packet.
Which of the above statements is/are TRUE?
A) I and II only
B) I only
C) II and III only
D) II only
Ans. A) I and II only

12. Consider a simple graph with unit edge costs. Each node in the graph represents
a router. Each node maintains a routing table indicating the next hop router to
be used to relay a packet to its destination and the cost of the path to the
destination through that router. Initially, the routing table is empty. The routing

Page 11 of 13
table is synchronously updated as follows. In each updated interval, three tasks
are performed.
I. A node determines whether its neighbours in the graph are accessible. If so, it
sets the tentative cost to each accessible neighbour as 1. Otherwise, the cost is
set to ∞.
II. From each accessible neighbour, it gets the costs to relay to other nodes via
that neighbour (as the next hop).
III. Each node updates its routing table based on the information received in the
previous two steps by choosing the minimum cost.

For the graph given above, possible routing tables for various nodes after they
have stabilized, are shown in the following options. Identify the correct table.

A. A - -
B B 1
C C 1
D B 3
E C 3
F C 4
Table for node A

B. A A 1
B B 1
C - -
D D 1
E E 1
F E 3
Table for node C

C. A A 1
B - -
C C 1
D D 1
E C 2
F D 2
Table for node B

D. A B 3
B B 1
Page 12 of 13
C C 1
D - -
E E 1
F F 1
Table for node D
Ans. C) Table for node B

13. A group of 15 routers is interconnected in a centralized complete binary tree


with a router at each tree node. Router i communicates with router j by sending
a message to the root of the tree. The root then sends the message back down to
router j. The mean number of hops per message, assuming all possible router
pairs are equally likely is
A) 3
B) 4.26
C) 4.53
D) 5.26
Ans. C) 4.53

14. Two popular routing algorithms are Distance Vector(DV) and Link State (LS)
routing. Which of the following are true?
(S1): Count to infinity is a problem only with DV and not LS routing
(S2): In LS, the shortest path algorithm is run only at one node
(S3): In DV, the shortest path algorithm is run only at one node
(S4): DV requires lesser number of network messages than LS
A) S1, S2 and S4 only
B) S1, S3 and S4 only
C) S2 and S3 only
D) S1 and S4 only
Ans. D) S1 and S4 only

Page 13 of 13

You might also like