Laborator Nr.2 Namolovan Alexandru RST-201
Laborator Nr.2 Namolovan Alexandru RST-201
Laborator Nr.2 Namolovan Alexandru RST-201
RAPORT
Lucrare de laborator nr.2 la disciplina
REȚELE DE CALCULATOARE
Chișinău 2022
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
Background
This simulation activity is intended to provide a foundation for understanding the TCP/IP protocol suite and the
relationship to the OSI model. Simulation mode allows you to view the data contents being sent across the
network at each layer.
As data moves through the network, it is broken down into smaller pieces and identified so that the pieces can
be put back together when they arrive at the destination. Each piece is assigned a specific name (protocol
data unit [PDU]) and associated with a specific layer of the TCP/IP and OSI models. Packet Tracer simulation
mode enables you to view each of the layers and the associated PDU. The following steps lead the user
through the process of requesting a web page from a web server by using the web browser application
available on a client PC.
Even though much of the information displayed will be discussed in more detail later, this is an opportunity to
explore the functionality of Packet Tracer and be able to visualize the encapsulation process.
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 14 www.netacad.com
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
What information is listed in the numbered steps directly below the In Layers and Out Layers boxes for
Layer 7? HTTP request
Type your answers here.
What is the Dst Port value for Layer 4 under the Out Layers column? 80
Type your answers here.
What is the Dest. IP value for Layer 3 under the Out Layers column? 192.168.1.254
Type your answers here.
What information is displayed at Layer 2 under the Out Layers column? Ethernet Header, MAC adresa
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 14 www.netacad.com
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
e. Advance to the next HTTP Type box within the Event List and click the colored square box. This window
contains both In Layers and Out Layers. Notice the direction of the arrow directly under the In Layers
column; it is pointing upward, indicating the direction the data is travelling. Scroll through these layers
making note of the items previously viewed. At the top of the column the arrow points to the right. This
denotes that the server is now sending the information back to the client.
Question:
Comparing the information displayed in the In Layers column with that of the Out Layers column, what
are the major differences? Interschimbarea datelor în cadrul stratului 4
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 14 www.netacad.com
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
f. Click the Inbound and Outbound PDU Details tab. Review the PDU details.
g. Click the last colored square box under the Info column.
Question:
How many tabs are displayed with this event? Explain. Sunt reprezentate doar 2 secțiuni: OSI model și
Inbound PDU Details din motiv că acestea caracterizează dispozitivul de primire a cerinților de la client.
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 14 www.netacad.com
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
These extra entries play various roles within the TCP/IP suite. Address Resolution Protocol (ARP)
requests MAC addresses for destination hosts. DNS is responsible for converting a name (for example,
www.osi.local) to an IP address. The additional TCP events are responsible for connecting, agreeing on
communication parameters, and disconnecting the communications sessions between the devices.
These protocols have been mentioned previously and will be further discussed as the course progresses.
Currently there are over 35 possible protocols (event types) available for capture within Packet Tracer.
c. Click the first DNS event in the Type column. Explore the OSI Model and PDU Detail tabs and note the
encapsulation process. As you look at the OSI Model tab with Layer 7 highlighted, a description of what
is occurring is listed directly below the In Layers and Out Layers (“1. The DNS client sends a DNS query
to the DNS server.”). This is very useful information to help understand what is occurring during the
communication process.
At which device was the PDU captured? Web Clientyour answers here.
What is the value listed next to ADDRESS: in the DNS ANSWER section of the Inbound PDU Details?
IP: 192.168.1.254
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 14 www.netacad.com
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
f. Find the first HTTP event in the list and click the colored
square box of the TCP event immediately following this
event. Highlight Layer 4 in the OSI Model tab.
Question:
g. Click the last TCP event. Highlight Layer 4 in the OSI Model tab. Examine the steps listed directly below
In Layers and Out Layers.
Question:
What is the purpose of this event, based on the information provided in the last item in the list (should be
item 4)? Finisarea conexiunii.ype your answers here.
Challenge Questions
This simulation provided an example of a web session between a client and a server on a local area network
(LAN). The client makes requests to specific services running on the server. The server must be set up to
listen on specific ports for a client request. (Hint: Look at Layer 4 in the OSI Model tab for port information.)
Based on the information that was inspected during the Packet Tracer capture, what port number is the Web
Server listening on for the web request?
În conformitate cu informația analizată, Port Number pentru cererii web este 80, port rezervat pentru
cereri de ordin HTTP, informația data fiind prezentată în cerința Web Client la stratul 4 în
compartimentul: port de destinare( Dst Port).
Type your answers here.
What port is the Web Server listening on for a DNS request? Dst Port 53
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 14 www.netacad.com
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
Required Resources
• 1 PC (Windows with internet access)
• Additional PCs on a local-area network (LAN) will be used to reply to ping requests.
Using a packet sniffer such as Wireshark may be considered a breach of the security policy of the school. It is
recommended that permission be obtained before running Wireshark for this lab. If using a packet sniffer such
as Wireshark is an issue, the instructor may wish to assign the lab as homework or perform a walk-through
demonstration.
a. In a command prompt window, enter ipconfig /all, to the IP address of your PC interface, its description,
and its MAC (physical) address.
C:\Users\Student> ipconfig /all
Windows IP Configuration
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 14 www.netacad.com
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
<output omitted>
b. Ask a team member or team members for their PC IP address and provide your PC IP address to them.
Do not provide them with your MAC address at this time.
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 14 www.netacad.com
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
Reply from 192.168.1.114: bytes=32 time<1ms TTL=128
Note: If the PC of your team member does not reply to your pings, this may be because the PC firewall of
the team member is blocking these requests. Please see Appendix A: Allowing ICMP Traffic Through a
Firewall for information on how to allow ICMP traffic through the firewall using Windows.
d. Stop capturing data by clicking the Stop Capture icon.
b. With this PDU frame still selected in the top section, navigate to the middle section. Click the plus sign to
the left of the Ethernet II row to view the destination and source MAC addresses.
Questions:
1) www.yahoo.com
2) www.cisco.com
3) www.google.com
Note: When you ping the URLs listed, notice that the Domain Name Server (DNS) translates the URL to
an IP address. Note the IP address received for each URL.
d. You can stop capturing data by clicking the Stop Capture icon.
Step 2: Examining and analyzing the data from the remote hosts.
Review the captured data in Wireshark and examine the IP and MAC addresses of the three locations that
you pinged. List the destination IP and MAC addresses for all three locations in the space provided.
Questions:
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 14 www.netacad.com
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
IP address for www.cisco.com: 104.81.209.77nswers here.
MAC address for www.cisco.com: r7c:c3:85:d4:29:2f here.
IP address for www.google.com: 142.250.185.196e.
MAC address for www.google.com:r7c:c3:85:d4:29:2f answers here.
Reflection Question
Why does Wireshark show the actual MAC address of the local hosts, but not the actual MAC address for the
remote hosts? .
Adresele MAC pentru gazdele de la distanță nu sunt cunoscute în rețeaua locală, așa că este utilizată
adresa MAC a default-gateway. După ce pachetul ajunge la routerul default – gateway, informațiile de nivel 2
sunt extrase din pachet și un nou antet de nivel 2 este atașat cu adresa MAC de destinație a următorului
router(next hop router).
Part 1: Create a new inbound rule allowing ICMP traffic through the firewall.
a. Navigate to the Control Panel and click the System and Security option in the Category view.
b. In the System and Security window, click Windows Defender Firewall or Windows Firewall.
c. In the left pane of the Windows Defender Firewall or Windows Firewall window, click Advanced
settings.
d. On the Advanced Security window, click the Inbound Rules option on the left sidebar and then click
New Rule… on the right sidebar.
e. This launches the New Inbound Rule wizard. On the Rule Type screen, click the Custom radio button
and click Next.
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 14 www.netacad.com
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
f. In the left pane, click the Protocol and Ports option and using the Protocol Type drop-down menu,
select ICMPv4, and then click Next.
g. Verify that Any IP address for both the local and remote IP addresses are selected. Click Next to
continue.
h. Select Allow the connection. Click Next to continue.
i. By default, this rule applies to all the profiles. Click Next to continue.
j. Name the rule with Allow ICMP Requests. Click Finish to continue. This new rule should allow your
team members to receive ping replies from your PC.
b. Right-click the ICMP rule and select Disable Rule if so desired. You may also select Delete if you want to
permanently delete it. If you choose this option, you must re-create the rule again to allow ICMP replies
Concluzie: În cadrul lucrării de laborator a fost analizat traficul din rețea și cercetate modele OSI și
TCP/IP. Pe parcursul efectuării lucrării au fost observate procesele ARP, destinat pentru depistarea și
cunoașterea adresei MAC necunoscute, fiind cunoscută doar adresa IP, procesele DNS, pentru
translatarea din nume de domeniu în adresă IP și procesele TCP, folosite de protocolul HTTP cu port
80. Atât procesul ARP, cât și ICMP (ping), au constat din 2 componente: cererea (request) , pentru
solicitarea informației și răspunsul (reply), oferirea informației cerute. În ceea ce privește modelele
OSI și TCP/IP, acestea au fost cercetate în cadrul proceselor de încapsulare și decapsulare a
informației transmise, așadar pentru modelul OSI informația încapsulată a fost analizată pentru toate
cele 7 nivele, data fiind încapsulată la nivelele 5 – 7, ulterior fiind adăugat un header Layer 4: TCP
sau UDP, astfel datele fiind divizate în segmente, ulterior fiind adăugat un Layer 3 header, care
conținea informație despre adresa IP sursă și de destinație, drept urmare informația fiind sub formă
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 14 www.netacad.com
Packet Tracer - Investigate the TCP/IP and OSI Models in Action
de packet. Drept efect ulterior se adaugă un header și trailer Layer 2, unde sunt introduse informațiile
prvind adresele MAC sursă și de destinație, formându-se astfel cadrele, care în final devin biți, care
se transformă în semnale în dependență de mediul de transmitere.
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 14 www.netacad.com