




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Computer netowrks LabsDNS, Data Encapsulation and Frame ExaminationDNS, Data Encapsulation and Frame ExaminationLearning ObjectivesAt completion of this lab, you will be able to:1. Use Wireshark to capture and analyze DNS message2. Understand how DNS works3. use nslookup and ipconfig commands 4
2、. Explain the header fields in an Ethernet II frame.5. understand data encapsulation6. Report and Feedback on this labAnswer all questions with supporting screenshots. Please fill in the following feedback form and append it to the report. Your feedback is valuable to us so that we can improve this
3、lab, and make the course welcome.For each task, please rate the following in the scale of 1 through 5:· The degree of difficulty: 1 = too easy; 5 = too difficult· The learning experience: 1 = learned nothing; 5 = learned a lot· Your interest: 1 = no interest; 5= high interest· Ti
4、me used for the task: in minutes Task Difficulty (15)Learning (15)Interest (15)Time ( min)Task 0Task 1Task 2Task 3Task 4Your suggestion/comment: BackgroundWhen upper layer protocols communicate with each other, data at the sending host flows down the TCP/IP protocol layers and is encapsulated
5、into a protocol data unit at lower layer, and finally encapsulated in a Layer 2 frame. For example, DNS message is often transported by UDP protocol on layer 4. So DNS message at the sending host is encapsulated in a UDP segment; the UDP segment is then encapsulated in an IP packet, and the IP
6、 packet is encapsulated finally in a layer 2 frame. The frame composition is dependent on the media access type, or the network. For example, if the media access is Ethernet, then the Layer 2 frame encapsulation will be Ethernet II. When learning about data encapsulation and protocol operations, it
7、is helpful to analyze the header information found in the protocol data units. The DNS protocol operation, ipconfig command, and Ethernet II frame header will be examined in this lab. Ethernet II frames can support various upper layer protocols.For more background information, please read the lectur
8、es 02, 04-05, 10, 11. TasksTask 0 Protocol Layers and Data EncapsulationAs we have discussed in Lecture 02, Internet is inter-connected networks based on TCP/IP protocols. Read the slides or textbook to learn how data goes through protocol layers and how data is encapsulated in the protocol da
9、ta units. There are conventional names for the protocol data units for different layer protocols.Question 1. What are names for the protocol data units (PDUs) for layer 4, layer 3, and layer 2 protocols in TCP/IP reference model by filling the follow form: name for
10、PDU of layer 4 protocols: segment name for PDU of layer 3 protocol: packet
11、; name for PDU of layer 2 protocol: frame Task 1 DNS and nslookupAs we discussed, IP address is used to identify a host uniquely on the Internet. But IP address is not user-friendly and that
12、 is why domain name was introduced. The Domain Name System (DNS) translates host names to IP addresses, providing a critical role in the Internet infrastructure. In this task, we practice the nslookup tool, which is available both in Linux/Unix and MS Windows. To run nslookup in MS Windows, yo
13、u need to open the command line window by starting the command "cmd.exe". With nslookup, you can query any specified DNS server (by default, your local configured DNS server) for a DNS record. To accomplish this task, nslookup sends a DNS query to the specified DNS server, receives a
14、 DNS reply from that same DNS server, and displays the result.Type the command "nslookup www.MIT.edu", and capture the output, as I did and showed below:Question 2: What is the DNS server IP address that is used to query and find IP address for ? And IP address for ?Type the command
15、“nslookup -type=NS ”, and capture the output, as I did and showed below:Question 3: What are domain name servers for and their IP addresses?Type the command “nslookup ”, and capture the output, as I did and showed below:Question 4: Which DNS server is used to query and for name resolution?You can al
16、so use nslookup to find the mapping from IP addresses to the host names. Type the commands “nslookup 01” and “nslookup ”, and capture the output, as I did and showed below:Question 5: Can a host have multiple host names? What is the IP address for moodle.tec.hkr.se? How many names do yo
17、u find for this IP address? Task 2 DNS and ipconfigipconfig (for Windows) and ifconfig (for Linux/Unix, interface configuration) are among the most useful tools for debugging network issues. ipconfig can be used to show your current TCP/IP information, including your address, DNS server addresses, a
18、dapter (network interface card) type and so on. For example, if you want to find all this information about your host, simply enter the command “ipconfig /all” in the command line. Read more on “using ipconfig” at . Question 6: What is the IP address for your computer, and what is the local DNS serv
19、er IP address?答 ipconfig is also very useful for managing the DNS information stored in your host. To improve the networking performance, a host can cache DNS records it recently obtained. To view these cached records, you can use the command “ipconfig /displaydns”. Each entry shows the remaini
20、ng Time to Live (TTL) in seconds. To clear the cache, enter the command “ipconfig /flushdns”. Flushing the DNS cache clears all entries and reloads the entries from the hosts file.Task 3 DNS Protocol Analysis with WireSharkNow it is time to capture DNS protocol data and do the analysis with WireShar
21、k. Follow the steps to capture the DNS packets:· close all other Internet applications to reduce the captured data· start a web browser· use ipconfig to empty the DNS cache in your computer· start WireShark program, and enter the display filter “ip.addr=00 and dns”, wh
22、ere the IP address 00 should be the IP address for your computer. You find it in question 6.· Start packet capture in WireShark· Enter the url address to your web browser to view the page.· Stop the packet capture.I got the following screenshot for this operation:Answer the
23、 following questions:Question 7: Locate the DNS query and response for resolving . Are they sent over UDP or TCP?UDPQuestion 8: What is the destination port for the DNS query message? What is the source portof DNS response message?DesQuestion 9: To what IP address is the DNS query message sent? Use
24、ipconfig to determine the IP address of your local DNS server. Are these two IP addresses the same?sameQuestion 10: Examine the DNS query message. What “Type” of DNS query is it? Does thequery message contain any “answers”?(1) The “Type”of DNS query is A。 (2)
25、NoQuestion 11: Examine the DNS response message. How many “answers” are provided? Whatdo each of these answers contain?(1) The “answers”is 0; (2) 無Task 4 Ethernet Frame ExaminationThe format for an Ethernet frame is shown below:For info on MAC addresses, read slide 26 (Lecture 10
26、). For finding NIC manufacturer, use the online server at .In WireShark with the captured DNS packets done in the last task, expand the frame information, as you could see my example:It shows that data contained in the Ethernet frame is an IP packet; the data contained in the IP packet is a UDP segm
27、ent, and data in the UDP segment is DNS message! The total frame length is 72 bytes (excluding CRC parity bits). For the Ethernet frame containing DNS query message for resolving , answer the following questions:Question 12: What is the destination MAC address? What is its NIC manufacturer, and what
28、 is the NIC serial number?MAC address: 9c:21:6a:6a:b6:ac NIC manufacturer:9c:21:6a NIC serial number: 6a:b6:acQuestion 13: What is the source MAC address? What is its NIC manufacturer, and what is the NIC serial number?MAC address: 60:36:dd:9a:
29、be:88 NIC manufacturer:60:36:dd NIC serial number: 9a:be:88 Question 14: what is the value in the type field? What does this value mean?MAC(Media Access Control,介質(zhì)訪問控制)地址,也叫硬件地址,長(zhǎng)度是48比特(6字節(jié)),由16進(jìn)制的數(shù)字組成,分為前24位和后24位: 前24位(也就是前3個(gè)字節(jié))叫做組織唯一標(biāo)志符(Organ
30、izationally Unique Identifier,即OUI),是由IEEE的注冊(cè)管理機(jī)構(gòu)給不同廠家分配的代碼,區(qū)分了不同的廠家。 后24(后三個(gè)字節(jié))位是由廠家自己分配的,稱為擴(kuò)展標(biāo)識(shí)符。同一個(gè)廠家生產(chǎn)的網(wǎng)卡中MAC地址后24位是不同的。Now, change the display filter to “arp” in WireShark, so that only ARP packets are displayed, for example, I got: Locate a broadcast ARP message, and examine the Ethernet frame header, ans
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025至2030年中國尼龍脫水網(wǎng)數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025至2030年中國導(dǎo)航器材數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025至2030年中國家豬標(biāo)本數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025至2030年中國大蹺板門鈴開關(guān)數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025至2030年中國便攜式低溫恒溫槽數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025至2030年中國EPE覆膜卷材數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025年中國陶瓷印刷用膠刮市場(chǎng)調(diào)查研究報(bào)告
- 2025年中國超硬車刀市場(chǎng)調(diào)查研究報(bào)告
- 2025年中國腹腰架市場(chǎng)調(diào)查研究報(bào)告
- 2025年中國紅寶石吊墜市場(chǎng)調(diào)查研究報(bào)告
- DB36T 1689-2022 排污單位自行監(jiān)測(cè)實(shí)驗(yàn)室管理技術(shù)規(guī)范
- 跨學(xué)科實(shí)踐活動(dòng)6 調(diào)查家用燃料的變遷與合理使用課件九年級(jí)化學(xué)上冊(cè)(人教版2024)
- 人教版道德與法治五年級(jí)下冊(cè)《第一單元 我們一家人》大單元整體教學(xué)設(shè)計(jì)2022課標(biāo)
- 醫(yī)囑處理錯(cuò)誤應(yīng)急預(yù)案
- M701F4燃?xì)廨啓C(jī)交流
- 2024年高考真題-政治(福建卷) 含解析
- 大模型技術(shù)深度賦能保險(xiǎn)行業(yè)白皮書2024
- (蘇少版)綜合實(shí)踐一年級(jí)下冊(cè)第四單元電子教案
- 《光伏電站運(yùn)行與維護(hù)》試題及答案一
- DBJ∕T 15-19-2020 建筑防水工程技術(shù)規(guī)程
- 二十四式太極拳教案高一上學(xué)期體育與健康人教版
評(píng)論
0/150
提交評(píng)論