CENG/BILM 362. Midterm Review



Benzer belgeler
İletişim Ağları Communication Networks

Wireshark Lab: TCP and UDP

CENG 362 Computer Networks (2005) Midterm Exam 1 Çözümleri

Virtualmin'e Yeni Web Sitesi Host Etmek - Domain Eklemek

D-Link DSL 500G için ayarları

Bilgisayar Ağları Computer Networks

BIL321 VERİ İLETİŞİMİ LABORATUVARI

Seri kablo bağlantısında Windows95/98/ME'ten Windows 2000'e bağlantı Windows95/98/ME - NT4 bağlantısına çok benzer.

Gazi Üniversitesi Mühendislik Fakültesi Bilgisayar Mühendisliği Bölümü. Bilgisayar Ağları Dersi Lab. 2

Gazi Üniversitesi Mühendislik Fakültesi Bilgisayar Mühendisliği Bölümü. Bilgisayar Ağları Dersi Lab. 2. İçerik. IP ICMP MAC Tracert

BM 402 Bilgisayar Ağları (Computer Networks)

TCP/IP. TCP (Transmission Control Protocol) Paketlerin iletimi. IP (Internet Protocol) Paketlerin yönlendirmesi TCP / IP

BM 402 Bilgisayar Ağları (Computer Networks)

Bölüm3 Taşıma Katmanı. Transport Layer 3-1

1 I S L U Y G U L A M A L I İ K T İ S A T _ U Y G U L A M A ( 5 ) _ 3 0 K a s ı m

IMDS KURULUM KILAVUZU (AIOS TEDARİKÇİLERİ İÇİN HAZIRLANMIŞTIR)

Ardunio ve Bluetooth ile RC araba kontrolü

Bilgisayar Programcılığı Uzaktan Eğitim Programı. e-bilg 121 AĞ TEKNOLOJİLERİNİN TEMELLERİ Öğr. Gör. Bekir Güler

BIL411 - BİLGİSAYAR AĞLARI LABORATUVARI

K12NET ÖĞRENCİ-VELİ PORTALI KULLANIMI USE OF K12NET STUDENT-PARENT PORTAL

Teknoloji Servisleri; (Technology Services)

Web Tasarımının Temelleri

Website review m.iyibahis.net

Data Communications. Gazi Üniversitesi Bilgisayar Mühendisliği Bölümü. 2. Ağ Modelleri

Unlike analytical solutions, numerical methods have an error range. In addition to this

BİH 605 Bilgi Teknolojisi Bahar Dönemi 2015

HTTP. (Hyper Text Transfer Protocol)

İNTERNET VE BİLGİ AĞLARININ KULLANIMI

a, ı ı o, u u e, i i ö, ü ü

2. Use Dns lookup, Use relay server aralarında seçim yapınız. Biz Dns lookup ile SMTP-mizi çalıştırdık. DNS lookup kısmında domain adınızı yazınız.

ÖRNEKTİR - SAMPLE. RCSummer Ön Kayıt Formu Örneği - Sample Pre-Registration Form

Doç.Dr. Yaşar SARI ESOGÜ Turizm Fakültesi-Eskişehir BİLGİSAYAR AĞLARI (COMPUTER NETWORKS)

Bilgisayar Programcılığı Uzaktan Eğitim Programı. e-bilg 121 AĞ TEKNOLOJİLERİNİN TEMELLERİ Öğr. Gör. Bekir Güler

BM 402 Bilgisayar Ağları (Computer Networks)

Dünyanın bilgisine açılan pencere... Ya da sadece yeni çağın eğlencesi...

Yarışma Sınavı A ) 60 B ) 80 C ) 90 D ) 110 E ) 120. A ) 4(x + 2) B ) 2(x + 4) C ) 2 + ( x + 4) D ) 2 x + 4 E ) x + 4

Uygulama 6. Sunum 5. Oturum 4. Taşıma 3. Ağ 2. Veri iletim 1

Clear omegle ban on puffin

Yüz Tanımaya Dayalı Uygulamalar. (Özet)

Do not open the exam until you are told that you may begin.

BBM Discrete Structures: Midterm 2 Date: , Time: 16:00-17:30. Question: Total Points: Score:

Computer Networks 5. Öğr. Gör. Yeşim AKTAŞ Bilgisayar Mühendisliği A.B.D.

Ayni sistem(host) üzerinde IPC. Ağ(network) aracılığı ile IPC

BİLGİSAYAR 4 MOLEKÜLER BİYOLOJİ VE GENETİK BÖLÜMÜ 1. DERS İNTERNET, TCP/IP, İNTERNETTE MESAJ VE BİLGİ AKTARIMI YARD. DOÇ. DR.

Present continous tense

Learn how to get started with Dropbox: Take your stuff anywhere. Send large files. Keep your files safe. Work on files together. Welcome to Dropbox!

"Şirket" Sunucusu ve Başarı Mobile Arasındaki HTTP Veri Aktarımı için Etkileşim Teknik Protokolü

Computer Networks 4. Öğr. Gör. Yeşim AKTAŞ Bilgisayar Mühendisliği A.B.D.

Website review dersbook.com

WEEK 11 CME323 NUMERIC ANALYSIS. Lect. Yasin ORTAKCI.

TCP PERFORMANSININ VERİ TRANSFERİ UYGULAMALARI İÇİN GELİŞTİRİLMESİ

AĞ ve İNTERNET TCP/IP. IP Adresi İNTERNET NEDİR? Standartlar :

7 Uygulama 6. Sunum 5 Oturum Taşıma. 4 Ara katman- Yazılım ve donanım arası 3. Ağ Veri iletim. 2 Ağ Grubu-Donanım 1. Fiziksel. Uygulama Grubu-Yazılım

Görsel Programlama DERS 12. Görsel Programlama - Ders12/

Grade 8 / SBS PRACTICE TEST Test Number 9 SBS PRACTICE TEST 9

TÜM ÖĞRENCİ DEĞİŞİM PROGRAMLARI (ERASMUS-MEVLANA-FARABİ) BAŞVURU AŞAMALARI AYNI SÜRECİ TAKİP ETMEKTEDİR.

Maltepe Üniversitesi Bilgisayar Mühendisliği Bölümü Bilgisayar Ağları - 1 (BİL 403)

BTP 207 İNTERNET PROGRAMCILIĞI I. Ders 1

Dünyanın bilgisine açılan pencere... Ya da sadece yeni çağın eğlencesi...

Exchange Server 2013 Kurulum Sonrası Yapılandırmalar

Ipv6 Egitimi. Mustafa Reşit Şahin. Software Engineer.

İletişim Ağları Communication Networks

Spectrum of PCM signal depends on Bit rate: Correlation of PCM data PCM waveform (pulse shape) Line encoding. For no aliasing:

AB surecinde Turkiyede Ozel Guvenlik Hizmetleri Yapisi ve Uyum Sorunlari (Turkish Edition)

Exercise 2 Dialogue(Diyalog)

00322 ELECTRICAL MACHINES-II Midterm Exam

Website review websitesiyazilim.com

BİLGİSAYAR AĞLARI & Ns2 AĞ SİMÜLATÖRÜ Hafta-6 Bağlantı Kurma

OSPF PROTOKOLÜNÜ KULLANAN ROUTER LARIN MALİYET BİLGİSİNİN BULANIK MANTIKLA BELİRLENMESİ

ERASMUS+ ÖĞRENCİ DEĞİŞİM PROGRAMI BAŞVURU SİSTEMİ KULLANIM KILAVUZU USERS GUIDE FOR THE ERASMUS+ STUDENT EXCHANGE PROGRAM APPLICATION SYSTEM

BIL411 - BİLGİSAYAR AĞLARI LABORATUVARI

Ağ Temelleri Semineri. erbil KARAMAN

MCR02-AE Ethernet Temassız Kart Okuyucu

Delta Pulse 3 Montaj ve Çalıstırma Kılavuzu.

Prensipler Çoklu ortam uygulamalarının sınıflandırılması Uygulamaların ihtiyaç duyacağı ağ servislerini belirlemek Uygulamaların gerçek zamanlı

ASP.NET 1. DURUM YÖNETİMİ. BLM 318 e-ticaret ve Uyg. Durum Yönetimi Nedir? Durum Yönetimi: Karșılaștırma İÇERİK. Sunucu-taraflı Durum Yönetimi

Yaz okulunda (2014 3) açılacak olan (Calculus of Fun. of Sev. Var.) dersine kayıtlar aşağıdaki kurallara göre yapılacaktır:

Genel Bilgiler. Sistemimiz Güvenli Kabuk (Secure Shell/SSH) Protokülünü kullanan bağlan:ları kabul etmektedir.

Website review optikshop.com.tr

BİLİŞİM SİSTEMLERİNİN PRENSİPLERİ

Bilgisayar Ağları. Ağı oluşturan cihazlar. Coğrafi koşullara göre ağın sınıflandırılması (LAN, MAN, WAN)

If you have any issue in outlook mail account like spam mail, mail send or receive issues, mail delivery problem, mail sending too late and.

Html temelleri. Ders 4

Website review ecrintur.com.tr

Hping ile IP, ICMP ve UDP Paketleri Oluşturma

ATILIM UNIVERSITY Department of Computer Engineering

Newborn Upfront Payment & Newborn Supplement

4. HAFTA BLM323 SAYISAL ANALİZ. Okt. Yasin ORTAKCI.

Serdar SEVİL. TCP/IP Protokolü

IDENTITY MANAGEMENT FOR EXTERNAL USERS

ARCHICAD in EĞİTİM SÜRÜMÜ İÇİN BAŞVURU YAPILMASI

BBM Discrete Structures: Final Exam Date: , Time: 15:00-17:00

Veri İletişimi Data Communications

Web Server Sunucu Loglarının K-Komşu Algoritması ile İ ncelenmesi

HAZIRLAYAN BEDRİ SERTKAYA Sistem Uzmanı CEH EĞİTMENİ

BIL411 - BİLGİSAYAR AĞLARI LABORATUVARI

Data Communication Systems Lab

Website review ucuztisort.xyz

Do not open the exam until you are told that you may begin.

Transkript:

CENG/BILM 362 Midterm Review

Ques:on # 1 How many types of delay are present in an end- to- end transfer path? Explain each briefly (Uçtan uca transfer yolunda kaç çeşit gecikme vardır? Herbirini kısaca açıklayınız)

Answer Processing Delay(düğüm işlem gecikmesi) : Time to examine the packet s header, decide route of the packet, do error checks Queuing Delay(kuyrukta gecikme) : Time spent in the queue of the node wai:ng to be transmi_ed onto the link Transmission Delay(ile:m gecikmesi): Time required to push all of the packet s bits into the link Propaga:on Delay(yayınım gecikmesi): Time required for a bit to travel from one end to the other

Ques:on #2 How many types of access networks are there? (Kaç çeşit giriş ağı vardır?)

Answer Home access (Ev ağı): DSL, Cable, FTTH, Dial- up, Satellite Enterprise access(kurumsal ağ) :Ethernet, WiFi Wide- area wireless access(geniş alan kablosuz ağ): 3G, LTE

Ques:on #3 List the types of physical media(fiziksel ortam türlerini listeleyiniz)? Answer: Twisted pair Cooper Wire(Çie sarımlı bakır kablo) Coaxial Cable(koaksiyel kablo) Fiber Op:cs Terrestrial Radio (3G, Wifi, microwave) Satellite Radio (uydu)

Ques:on #4 This elementary problem begins to explore propaga:on delay and transmission delay, two central concepts in data networking. Consider two hosts, Hosts A and B, connected by a single link of rate R bps. Suppose that the two hosts are separated by m meters, and suppose the propaga:on speed along the link is s meters/sec. Host A is to send a packet of size L bits to Host B. (Host A ve Host B, R bps ile:m oranına sahip bir linkle birbirine bağlıdır ve m metre kadar birbirinden uzaktadır ve yayınım hızı ise s metre/saniyedir. Host A, L bit boyutundaki pake: Host B ye göndermeye çalışmaktadır ) a) Express the propaga:on delay, d prop in terms of m and s. (Buna göre yayınım gecikmesini (d prop ) m ve s cinsinden yazınız) b) Determine the transmission :me of the packet, d trans in terms of L and R(İle:m hızını(d trans ) L ve R cinsinden yazınız). c) Ignoring processing and queuing delays, obtain an expression for the end- to- end delay (işlem ve kuyruk gecikmelerini hesaba katmayarak uçtan- uca toplam gecikmeyi hesaplayınız).

Ques:on #4 This elementary problem begins to explore propaga:on delay and transmission delay, two central concepts in data networking. Consider two hosts, Hosts A and B, connected by a single link of rate R bps. Suppose that the two hosts are separated by m meters, and suppose the propaga:on speed along the link is s meters/sec. Host A is to send a packet of size L bits to Host B. d) Suppose Host A begins to transmit the packet at :me t=0. At :me t=d trans, where is the last bit of the packet? (Host A pake: t=0. saniyede göndermeye başlıyor. t= d trans eşit olduğunda pake:n son bi: nerededir) e) Suppose d prop is greater than d trans. At :me t=d trans, where is the first bit of the packet? (d prop, d trans dan büyük ise t= d trans da pake:n ilk bi: nerededir?) f) Suppose d prop is less than d trans. At :me t=d trans, where is the first bit of the packet?((d prop, d trans dan küçük ise t= d trans da pake:n ilk bi: nerededir?) g) Suppose s=2.5*10 8, L=100bits and R=28 kbps. Find the distance m so that d prop equals d trans. (s = 2.5*108, L = 100bit ve R=28kbps ise d prop ve d trans ın birbirine eşit olduğu m değerini bulunuz)

Answer

Ques:on #5 What are cookies used for in HTTP? Is the cookie stored at the client or the server?(http protokolünde Çerezler ne için kullanılır? Çerez istemci mi yoksa sunucu tararnda mı depolanır?) Answer: Cookies are used to hold state informa:on in HTTP. They are stored both at the client and the server (Durum bilgisi tutmak için kullanılır. Her iki taraea da depolanır)

Ques:on #6 Consider the following string of ASCII characters that were captured by Wireshark when the browser sent an HTTP GET message (i.e., this is the actual content of an HTTP GET message). The characters <cr><lf> are carriage return and line- feed characters (that is, the italized character string <cr> in the text below represents the single carriage- return character that was contained at that point in the HTTP header). Answer the following ques:ons, indica:ng where in the HTTP GET message below you find the answer. (Aşağıdaki HTTP GET bağlığına bakarak soruları cevaplayın) GET /cs453/index.html HTTP/1.1<cr><lf>Host: gaia.cs.umass.edu<cr><lf>user- Agent: Mozilla/5.0 (Windows;U; Windows NT 5.1; en- US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) <cr><lf> Accept:ext/xml, applicauon/xml, applicauon/xhtml+xml, text/html;q=0.9, text/ plain;q=0.8,image/png,*/*;q=0.5<cr><lf>accept- Language: enus, en;q=0.5<cr><lf>accept- Encoding: zip,deflate<cr><lf>accept- Charset: ISO- 8859-1,u`- 8;q=0.7,*;q=0.7<cr><lf>Keep- Alive 300<cr><lf> ConnecUon:keepalive<cr><lf><cr><lf> a. What is the URL of the document requested by the browser? (Tarayıcı tararndan istenen dokümanın URL i nedir?) b. What version of HTTP is the browser running? (Tarayıcı hangi versiyon HTTP kullanmaktadır?) c. Does the browser request a non- persistent or a persistent connec:on? (Tarayıcı kalıcı mı yoksa kalıcı olmayan bağlanu mı istemektedir?) d. What is the IP address of the host on which the browser is running? (Tarayıcının çalışuğı makinenin IP adresi nedir?) e. What type of browser ini:ates this message? Why is the browser type needed in an HTTP request message? (Ne :p bir tarayıcı bu mesajı oluşturmuştur? HTTP mesajında tarayıcı :pine neden ih:yaç duyulmaktadır?)

Answer a. The document request was h_p://gaia.cs.umass.edu/cs453/ index.html. The Host : field indicates the server's name and /cs453/ index.html indicates the file name. b. The browser is running HTTP version 1.1, as indicated just before the first <cr><lf> pair. c. The browser is reques:ng a persistent connec:on, as indicated by the Connec:on: keep- alive. d. This is a trick ques:on. This informa:on is not contained in an HTTP message anywhere. So there is no way to tell this from looking at the exchange of HTTP messages alone. One would need informa:on from the IP datagrams (that carried the TCP segment that carried the HTTP GET request) to answer this ques:on. e. Mozilla/5.0. The browser type informa:on is needed by the server to send different versions of the same object to different types of browsers.

Ques:on #7 With the TCP connec:on established POP3 progresses through three phases. List them. (TCP bağlanusı oluşturulduktan sonra POP3 3 aşamadan geçer. Bunları listeleyin) Answer: Authoriza:on(Yetki verme): The user agent sends a username and a password to authen:cate the user(kullanıcı, kullanıcı ismi ve parolayı gönderir) Transac:on(İşlem yapma) : User agent retrieves messages, mark messages for dele:on and obtain sta:s:cs (email mesajları indirilir, silinmek için işaretlenir, ista:s:k bilgisi alınır) Update(Güncelleme): Aeer the client issues a QUIT ending the session, the mail server deleted messages marked for dele:on (QUIT komutundan sonra silinmek için işaretlenen mesajlar sunucu tararndan silinir.)

Ques:on #8 You enter a web page address to your browser. The webpage is an html page with 9 references to different JPEG objects. The IP address of the web page is not cached in your local host. You need a DNS look up. If we assume that 10 DNS servers are visited before your host receives the DNS address- IP conversion. Visi:ng 4 of these servers takes 5 ms RTT each. Visi:ng the rest of it takes 3ms RTT each. Considering the RTT between the client host and the server of the webpage is 6ms, and the transmission :me of the webpage and referenced objects are negligible, If your browser uses non- persistent HTTP with no parallel connec:ons, If your browser uses persistent HTTP How much :me elapses from when the client clicks on the link un:l the client receives all of the objects? Show your calcula:ons.

Ques:on #8 Browserınıza bir web adresi girdiğinizi ve bu web sayfasının 9 tane JPEG nesnesine referans yapuğını varsayın. Web sayfasının IP adresi yerel cache de bulunmamaktadır ve IP adresini alabilmek için 10 ayrı DNS sunucusu dolaşmanız gerekmektedir. Bunlardan 4 ü ile aranızdaki her bir RTT 5ms, geri kalanlar ile ise 3ms dir. Eğer web sunucusuyla aranızdaki RTT 6ms ise web adresinizi girdiğiniz andan i:baren web sayfası nesnelerle beraber browserınıza gelene kadar Kalıcı olmayan HTTP kullanılıyorsa ne kadar zaman geçer?, Kalıcı HTTP kullanılıyorsa ne kadar zaman geçer? Nesnelerin ile:m hızını hesaba katmayın ve hesaplamalarınızı gösterin.

Answer DNS: 4 x 5ms + 6x 3ms = 38ms HTTP: 10x 2RTT = 20 x6 ms = 120ms 38+120ms = 158ms DNS: 4 x 5ms + 6x 3ms = 38ms HTTP: 2RTT = 2x 6ms =12ms 38+ 12 = 50ms

Ques:on #9 QuesUon 6 P2P (20 points): a 10Gbit file has to be distributed to N peers and the server has an upload rate of 40Mbps while each pair has a download rate of 4Mbps and an upload rate of u. Prepare a graphic that presents the file distribu:on :me for N = 5, 25 and 125 peers; u = 150Kbps, 300Kbps and 1Mbps for both client- server and P2P model. (You may use excel to do the calcula:ons)

Ques:on #9 10Gbitlik bir dosya N tane peer a dağıulacakur. Sunucunun upload kapasitesi 40Mbps ve her bir peer in download kapasitesi 4Mbps, upload kapasitesi ise u kadardır. N = 5, 25 ve 125; u = 150Kbps, 300Kbps ve 1Mbps olması durumunda hem istemci- sunucu hem de P2P mimarisinde dağıum süresini gösteren bir tablo hazırlayınız.

Answer

Ques:on #10 Compare the sizes of UDP and TCP headers (TCP ve UDP başlıklarının büyüklüklerini karşılaşurın) Answer: 20 bytes of overhead for TCP and 8 bytes of overhead for UDP What is receiver window in TCP header used for? (TCP başlığındaki alıcı penceresi ne için kullanılır) Answer : Flow Control (Akış kontrolü) Both conges:on control and flow control thro_le the sender, then how are they different? (Sıkışıklık ve akış kontrolü hangi yönleriyle birbirinden farklıdır?) Answer: Flow control handles conges:on at the receiver while conges:on control handles conges:on at the network core (Sıkışıklık kontrolü ağ merkezinde sıkışıklık meydana gelmesini engellerken, akış kontrolü alıcının bufferlarının dolmasını engeller)

Ques:on # 11 Consider a reliable data transfer protocol that uses only nega:ve acknowledgements. Suppose the sender sends data only infrequently. Would a NAK- only protocol be preferable to a protocol that uses ACKs? Why? (Sadece nega:f ACK kullanan bir güvenilir transfer protokolü düşünün. Gönderici sık olmayan aralıklarla paket gönderyorsa sadece- NAK kullanan bir protokol sadece ACK kullanan bir protokole tercih edilebilir mi? Neden?) Now suppose the sender has a lot of data to send and the end- to- end connec:on experiences few losses. In this second case, would a NAK- only protocol be preferable to a protocol that uses ACKs? Why?(Eğer gönderici sık olarak paket gönderiyor ve kayıp çok az yaşanıyorsa, sadece NAK kullanan bir protokol sadece ACK kullanan bir protokole tercih edilebilir mi?)

Answer In a NAK only protocol, the loss of packet x is only detected by the receiver when packet x+1 is received. That is, the receivers receives x- 1 and then x+1, only when x+1 is received does the receiver realize that x was missed. If there is a long delay between the transmission of x and the transmission of x+1, then it will be a long :me un:l x can be recovered, under a NAK only protocol. (NAK tercih edilmez çünkü kaybolan x pake: ancak x+1. paket yerine ulaşuğında farkedilir) On the other hand, if data is being sent oeen, then recovery under a NAK- only scheme could happen quickly. Moreover, if errors are infrequent, then NAKs are only occasionally sent (when needed), and ACK are never sent a significant reduc:on in feedback in the NAK- only case over the ACK- only case. (Sık paket gönderilen bir durumda kayıplar çabuk farkedilir ve kayıp ta çok az yaşanıyorsa az sayıda NAK gönderilerek gönderilen geri dönüşüm paketlerinin sayısında büyük bir azalma olur.)

) Ques:on # 12

Ques:on # 12 5 kez ölçüm sonucunda SampleRTT değerleri şu şekildedir: 106ms, 120ms, 140ms, 90ms,115ms. Es:matedRTT değerini her ölçümden sonra hesaplayınız (α = 0.125 ve ölçümlerden önceki Es:mated RTT değeri 100ms dir DevRTT değerini her bir ölçümden sonra hesaplayınız. Ölçümlerden öndeki DevRTT değeri 5ms dir ve β=0.25 En son :meoutinterval ı hesaplayın

Answer Es:matedRTT = x.samplertt + (1- x)es:matedrtt DevRTT = y. SampleRTT Es:matedRTT + (1- y) DevRTT TimeOutInterval = Es:matedRTT + 4. DevRTT

Answer

Answer

Answer

Ques:on #13 Compare GBN, SR, and TCP (no delayed ACK). Assume the :meout values for all three protocols are sufficiently long such that 5 consecu:ve data segments and their corresponding ACKs can be received (if not lost on the channel) by the receiving host(host B) and the sending host (Host A) respec:vely. Suppose A sends 5 data segments to B and the 2 nd segment(sent from A) is lost. In the end all 5 segments have been correctly received by B. (GBN, SR ve TCP (gecikmeli ACK kullanılmamaktadır) protokollerini karşılaşurın. Timeout aralığının 5 paket gönderilip ACKlerinin alınmasından daha fazla bir süre oluğunu varsayalım. A, B ye 5 segment göndermekte ve 2. segment kaybolmaktadır. Sonunda bütün segmentler yerine ulaşıp ACKler alınmaktadır.) a) How many segments has A sent in total and how many ACKs has B sent in total? What are their sequence numbers? Answer for the three protocols and show the :me diagram of the protocol opera:on. (Toplamda A kaç segment göndermiş:r ve B kaç tane ACK göndermiş:r. Segmentlerin ACKlerin sıra numaraları nedir? Zaman diagramını çizin) B) If the :meout values for all three protocols are much longer than 5 RTT, then which protocol successfully delivers all five data segments in shortest :me interval. (Eğer :meout aralığı 5RTT den daha büyük ise hangi protokol segmentleri daha hızlı gönderir, neden?)

Answer A) GoBackN: A sends 9 segments in total. They are ini:ally sent segments 1, 2, 3, 4, 5 and later re- sent segments 2, 3, 4, and 5. B sends 8 ACKs. They are 4 ACKS with sequence number 1, and 4 ACKS with sequence numbers 2, 3, 4, and 5. Selec:ve Repeat: A sends 6 segments in total. They are ini:ally sent segments 1, 2, 3, 4, 5 and later re- sent segments 2. B sends 5 ACKs. They are 4 ACKS with sequence number 1, 3, 4, 5. And there is one ACK with sequence number 2.

Answer TCP: A sends 6 segments in total. They are ini:ally sent segments 1, 2, 3, 4, 5 and later re- sent segments 2. B sends 5 ACKs. They are 4 ACKS with sequence number 2. There is one ACK with sequence numbers 6. Note that TCP always send an ACK with expected sequence number. B)TCP. This is because TCP uses fast retransmit without wai:ng un:l :me out.

Ques:on #14 35 TCP CongesUon Control 30 25 cwnd 20 15 Cwnd 10 5 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 transmission round

Ques:on #14 Iden:fy the intervals SS and CA are working? (SS ve CA in çalışuğı aralıkları belir:n) Answer: SS- > 1-5, 25-30 CA- > 5-24, 31-36 What is the value of ssthresh at round 21 (21.turda ssthresh değeri nedir?) Answer: 18/2 Which round packet 80 is sent? (80.paket hangi turda gönderilir) Answer: 1+2+4+8+16+17+18+19 = 85 at round 8 At which rounds conges:on is detected and what is the cause of conges:on for each? (Hangi turlarda sıkışıklık tespit edilir ve sıkışıklığın sebebi nedir?) Answer: 11 (3DUPACK), 16(3DUPACK), 24 (:meout), 30 (3DUPACK)

Ques:on 15 Consider that only a single TCP connec:on uses one 10Mbps link which does not buffer any data. Suppose that this link is the only congested link between the sending and receiving hosts. Assume that the TCP sender has a huge file to send and the receiver s buffer is much larger than the conges:on window. Each TCP segment is 1500 bytes and propaga:on delay is 150 msec and this tcp connec:on is always in conges:on avoidance phase. (Tek bir TCP bağlanfsı 10Mbps lik bir linki kullanmaktadır. TCP bağlanfsı büyük bir dosyayı göndermekte ve TCP alıcı bufferları sıkışıklık penceresinden büyüktür. Her segment 1500 byte ve aradaki gecikme 150msdir. Bu bağlanf hep CA fazında çalışmaktadır.) What is the maximum window size in segments that this TCP connec:on can achieve?(bu bağlanfnın ulaşabileceği en büyük pencere büyüklüğü nedir?) What is the average window size and average throughput? (Ortalama pencere büyüklüğü ve ortalama throughput nedir?) How long would it take for this TCP connec:on to reach its maximum window size again aeer recovering from a packet loss?(bağlanfnın paket kaybından sonra en yüksek pencere büyüklüğüne ulaşması ne kadar vakit alır?)

Answer Let W denote the max window size measured in segments. Then, W*MSS/ RTT = 10Mbps, as packets will be dropped if the maximum sending rate exceeds link capacity. Thus, we have W*1500*8/0.15=10*10^6, then W is about 125 segments. (W maximum pencere büyüklüğü olarak verilirse ve segment cinsinden ise W*MSS/RTT link gönderim hızını geçmemeli yoksa paket kaybına sebep olabilir. Öyleyse W*1500*8/0.15=10*10^6 dan W yaklaşık 125 segment olur.) As conges:on window size varies from W/2 to W, then the average window size is 0.75W=94 (ceiling of 93.75) segments. Average throughput is 94*1500*8/0.15 =7.52Mbps.(Pencere büyüklüğü W ve W/2 arasında değişuği için ortalama büyüklük 0.75W=94 segmensr) 94/2 *0.15 = 7.05 seconds, as the number of RTTs (that this TCP connec:ons needs in order to increase its window size from W/2 to W) is given by W/2. Recall the window size increases by one in each RTT. (Her paket kaybında pencere yarılandığından ve daha sonra her RTT de 1 artğında dolayı ortalama pencere büyüklüğüne ulaşmak için 94/2*0.15= 7.05 saniye gereklidir.)