




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
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ì)訪問控制)地址,也叫硬件地址,長度是48比特(6字節(jié)),由16進(jìn)制的數(shù)字組成,分為前24位和后24位: 前24位(也就是前3個字節(jié))叫做組織唯一標(biāo)志符(Organ
30、izationally Unique Identifier,即OUI),是由IEEE的注冊管理機(jī)構(gòu)給不同廠家分配的代碼,區(qū)分了不同的廠家。 后24(后三個字節(jié))位是由廠家自己分配的,稱為擴(kuò)展標(biāo)識符。同一個廠家生產(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等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 油田操作安全培訓(xùn)
- 2025年幼兒園衛(wèi)生保健培訓(xùn)
- 會議培訓(xùn)課件
- 公司級管理人員安全培訓(xùn)
- 中醫(yī)四診在護(hù)理中的應(yīng)用
- 早期妊娠超聲檢查
- 院感培訓(xùn)總結(jié)
- 企業(yè)勞動培訓(xùn)課件
- 美國公民道德教育課程建設(shè)
- 反恐教育主題班會教案
- 電網(wǎng)工程設(shè)備材料信息參考價(2024年第四季度)
- 《水性涂料產(chǎn)品介紹》課件
- 2025年森林防火項目立項申請報告模板
- 人教版數(shù)學(xué)七年級下冊6.1.3《平方根》聽評課記錄2
- 《危重病人護(hù)理常規(guī)》課件
- 2025年青島市即墨區(qū)衛(wèi)生健康局所屬事業(yè)單位和公立醫(yī)院招考聘用358人高頻重點提升(共500題)附帶答案詳解
- 2025版國際貿(mào)易大宗商品交易平臺合作合同3篇
- 沙漠治理防塵網(wǎng)安裝協(xié)議
- 2023-2024學(xué)年人教版數(shù)學(xué)八年級下冊期末復(fù)習(xí)試卷(含答案)
- 2024年租賃業(yè)務(wù)操作手冊3篇
- 作家助手簽約標(biāo)準(zhǔn)合同范例
評論
0/150
提交評論