Cisco Packet Tracer ตอนที่ 7 Simulation Mode

Kong ATKom
6 min readDec 11, 2019

--

สวัสดีครับ สำหรับตอนนี้ก็เป็นตอนที่ 7 แล้วนะครับสำหรับซีรี่ย์ Cisco Packet Tracer สำหรับท่านที่ยังไม่ได้อ่าน 6 ตอนที่แล้ว คลิ๊กอ่านได้จากลิ้งค์ด้านล่างเลยครับ
ตอนที่ 1 Welcome to Packet Tracer
ตอนที่ 2 Introduction to Packet Tracer
ตอนที่ 3 My First Packet Tracer Lab
ตอนที่ 4 Device Configuration
ตอนที่ 5 Configure End Devices Lab
ตอนที่ 6 Create a Simple Network

บทความในตอนนี้จะมาแนะนำในส่วนของฟังก์ชั่น Simulation กันครับ เป็นฟังก์ชั่นเพื่อไว้สำหรับศึกษาขั้นตอนการทำงานรับ-ส่งข้อมูลของอุปกรณ์ระบบเครือข่ายตั้งแต่ต้นทางจนถึงปลายทาง ซึ่งแต่ละขั้นตอนก็จะมีการอธิบายด้วยว่าเกิดอะไรขึ้นบ้าง มีวิธีการใช้งานดังนี้

1.เปิดไฟล์ lab ที่ได้ทำไว้ในบทความตอนที่ 6

2.ให้คลิ๊กที่เมนู Simulation ขวาล่าง

3.ให้ edit filters ให้เลือกเฉพาะ ICMP

a.คลิ๊กที่ Edit Filters

b. ที่เมนู IPv4 เลือกเฉพาะ ICMP

c. ที่เมนู IPv6 เว้นว่างไว้ทั้งหมด

d.ที่เมนู Misc เว้นว่างไว้ทั้งหมด

e.กดปิดหน้าต่าง

4.ทดสอบส่งข้อมูลภายใน LAN เดียวกันระหว่าง PC0 และ Laptop0

a. ให้คลิ๊กที่รูปจดหมายปิดผนึกและคลิ๊กที่ PC0 จากนั้นคลิ๊กที่ Laptop0

b. สังเกตที่ Simulation panel จะมี Event list ปรากฏขึ้น

c.ให้คลิ๊กปุ่ม play สังเกตการเคลื่อนที่ของจดหมายจาก PC0 ไปจนถึง Laptop0 และ event ที่เกิดขึ้นใน Simulation panel

d. เมื่อ event ขึ้นว่า Sucessful ให้คลิ๊กปุ่ม play อีกครั้งเพื่อหยุดการทำงาน

5.ให้คลิ๊กดูรายละเอียดแต่ละ event ที่เกิดขึ้น

a. Event 1 เกิดขึ้นที่ PC0
จะมีเฉพาะของส่วน Out Layers ดังนี้
Layer 3
1. The Ping process starts the next ping request.
2. The Ping process creates an ICMP Echo Request message and sends it to the lower process.
3. The source IP address is not specified. The device sets it to the port’s IP address.
4. The device sets TTL in the packet header.
5. The destination IP address is in the same subnet. The device sets the next-hop to destination.
Layer 2
1. The next-hop IP address is a unicast. The ARP process looks it up in the ARP table.
2. The next-hop IP address is in the ARP table. The ARP process sets the frame’s destination MAC address to the one found in the table.
3. The device encapsulates the PDU into an Ethernet frame.
Layer 1
1. FastEthernet0 sends out the frame.

b. Event 2 เกิดขึ้นที่ Wireless Router0
ส่วน In Layers
Layer 1
1. Ethernet 1 receives the frame.
Layer 2
1. The frame source MAC address was found in the MAC table of Wireless Router.
2. This is a unicast frame. Wireless Router looks in its MAC table for the destination MAC address.
ส่วน Out Layers
Layer 2
1. The outgoing port is an access port. Wireless Router sends the frame out that port.
Layer 1
1. Wireless sends out the frame.

c. Event 3 เกิดขึ้นที่ Laptop0
ส่วน In Layers
Layer 1
1. Wireless0 receives the frame.
Layer 2
1. The frame’s destination MAC address matches the receiving port’s MAC address, the broadcast address, or a multicast address.
2. The device decapsulates the PDU from the Ethernet frame.
Layer 3
1. The packet’s destination IP address matches the device’s IP address or the broadcast address. The device de-encapsulates the packet.
2. The packet is an ICMP packet. The ICMP process processes it.
3. The ICMP process received an Echo Request message.
ส่วน Out Layers
Layer 3
1. The ICMP process replies to the Echo Request by setting ICMP type to Echo Reply.
2. The ICMP process sends an Echo Reply.
3. The destination IP address is in the same subnet. The device sets the next-hop to destination.
Layer 2
1. The next-hop IP address is a unicast. The ARP process looks it up in the ARP table.
2. The next-hop IP address is in the ARP table. The ARP process sets the frame’s destination MAC address to the one found in the table.
3. The device encapsulates the PDU into an Ethernet frame.
Layer 1
1. The port Wireless0 is sending another frame at this time. The device buffers the frame to be sent later.

d. Event 4 เกิดขึ้นที่ Laptop 0
Out Layers
Layer 1
1. The device takes out this frame from the buffer and sends it.
2. Wireless0 sends out the frame.

e. Event 5 เกิดขึ้นที่ Wireless Router0
In Layers
Layer 1
1. Wireless receives the frame.
Layer 2
1. The frame source MAC address was found in the MAC table of Wireless Router.
2. This is a unicast frame. Wireless Router looks in its MAC table for the destination MAC address.
Out Layers
Layer 2
1. The outgoing port is an access port. Wireless Router sends the frame out that port.
Layer 1
1. The port Wireless is sending another frame at this time. The device buffers the frame to be sent later.
2. Ethernet 1 sends out the frame.

f. Event 6 เกิดขึ้นที่ PC0
In Layers
Layer 1
1. FastEthernet0 receives the frame.
Layer 2
1. The frame’s destination MAC address matches the receiving port’s MAC address, the broadcast address, or a multicast address.
2. The device decapsulates the PDU from the Ethernet frame.
Layer 3
1. The packet’s destination IP address matches the device’s IP address or the broadcast address. The device de-encapsulates the packet.
2. The packet is an ICMP packet. The ICMP process processes it.
3. The ICMP process received an Echo Reply message.
4. The Ping process received an Echo Reply message.

g. Event 7 เกิดขึ้นที่ Wireless Router0
Out Layers
Layer 1
1. The device takes out this frame from the buffer and sends it.
2. Wireless sends out the frame.

h. Event 8 เกิดขึ้นที่ Laptop0
In Layers
Layer 1
1. Wireless0 receives the frame.
Layer 2
1. The frame’s destination MAC address does not match the receiving port’s MAC address, the broadcast address, or any multicast address. The device drops the frame.

6. สามารถ reset การ simulate ได้ด้วยการคลิ๊กทึ่ปุ่ม Reset Simulate

7. สามารถลบ packet ข้อมูลที่ใช้ทดลองได้ด้วยการคลิ๊กที่ปุ่ม Delete

ผู้อ่านสามารถทดสอบในแบบเดียวกันโดยลองเปลี่ยนต้นทางส่งข้อมูล และปลายทางที่รับข้อมูล และตรวจดูกระบวนการรับ-ส่งว่ามีขั้นตอนแตกต่างกันอย่างไร สำหรับบทความในตอนต่อไปจะเป็นอะไรนั้นติดตามอ่านครับ……..สวัสดี

--

--