SlideShare a Scribd company logo
1 of 7
Download to read offline
1
CS519: Computer
Networks
Lecture 5, Part 1: Mar 3, 2004
Transport: UDP/TCP demux and
flow control / sequencing
CS519
Recall our protocol layers . . .
CS519
. . . and our protocol graph
CS519
IP gets the packet to the host
Really the interface
Now how do we get the packet from
the interface to the right process?
Well, you’ve kinda seen this already,
but lets cover again
2
CS519
TCP and UDP ports
The ports serve to “demux” the packet
Get it from the interface to the right
process
SRC port DST port
checksum length
DATA
UDP Header
CS519
TCP and UDP ports
Some ports are “well-known”
HTTP is by default TCP port 80
DNS is UDP or TCP port 53
Etc.
Servers listen at these ports
Other ports are dynamically assigned
Clients usually dynamically assign
ports
CS519
UDP/TCP application process
selection
Unicast application process is selected by the
complete 5-tuple, consisting of:
Source and Dest IP address
Source and Dest port
IP protocol
Ex: an FTP server may have concurrent transfers to
the same client. Only the source port will differ.
Multicast application process is selected by a 3-
tuple: Dest IP address and UDP port, and IP
protocol
Because it is multicast, UDP may select multiple
processes
CS519
Typical server incoming
connection processing
Client Host Server Host
Listening
Process
Client
Process1
SA=C, DA=S, P=TCP,
SP=5000, DP=23
TCPTCP
3
CS519
Typical server incoming
connection processing
Client Host Server Host
Listening
Process
Client
Process1
SA=C, DA=S, P=TCP,
SP=5000, DP=23
Server
Process1
TCP
fork
TCP
CS519
Typical server incoming
connection processing
Client Host Server Host
Listening
Process
Client
Process1
SA=C, DA=S, P=TCP,
SP=5000, DP=23
Server
Process1
TCP
fork
Client
Process2
SA=C, DA=S, P=TCP,
SP=5001, DP=23
TCP
CS519
Typical server incoming
connection processing
Client Host Server Host
Listening
Process
Client
Process1
SA=C, DA=S, P=TCP,
SP=5000, DP=23
Server
Process1
TCP
fork
Client
Process2
SA=C, DA=S, P=TCP,
SP=5001, DP=23
Server
Process1
forkTCP
CS519
UDP and TCP service
UDP is connectionless packet transport
service
Like IP, packets can be lost, mis-ordered,
duplicated
A receive() of X bytes corresponds to a
previous send() of X bytes
And a corresponding packet of X bytes
• (Ignoring packet loss or other errors like not
providing enough receive buffer)
If sending app sends, but receiving app
doesn’t receive, packet will be lost
Even if no packets are lost in the network!
4
CS519
UDP packet loss
CS519
UDP and TCP service
TCP is a reliable byte-stream transport
service
As long as the TCP connection is
established, bytes arrive in the order they
were sent
But, a send() of X bytes doesn’t imply a
receive() of X bytes
Sender can send 500 bytes, and receiver
can read 1 byte 500 times (and it could have
been transmitted as 2 250-byte packets)
And vice versa
TCP provides flow control
CS519
TCP flow control
CS519
Stop-and-wait
Before looking at TCP in its full glory,
lets look at simpler sequencing / flow
control algorithms
Stop-and-wait is about as simple as it
can get
Sender sends packet, waits for ack,
sends another packet, . . .
Receiver receives packet, acks it . . .
5
CS519
Stop-and-wait
CS519
Stop-and-wait
Receiver only needs one packet’s
worth of receive buffer
Only send ACK after received packet
is processed
Sender only needs one packet’s worth
of send buffer
Save packet until get ACK, then save
the next packet
CS519
Even stop-and-wait not quite
this simple!
CS519
Stop-and-wait requires a 1-bit
sequence number space
6
CS519
Problem with stop-and-wait
Fine on a short-skinny pipe
Low bandwidth, low distance
Wasteful on a long-fat pipe
High delay x bandwidth product
1.5 Mbps link, 45ms round-trip delay
Approx. 8KB BW x delay
Eight 1KB packets can be sent in one RTT,
but stop-and-wait only sends one packet in
one RTT
CS519
Sliding window
Sender can send multiple bytes before
getting an ACK for the first byte
Number of bytes is the send window
Sender must buffer these bytes in case it
has to retransmit
Receiver can buffer multiple bytes before
delivering any to the application
Number of bytes is the receive window
Receiver must buffer these bytes in case
application doesn’t read them on time
Or in case some bytes not received
CS519
Sliding window
CS519
Send and receive window sizes
Send window should be big enough to fill
the pipe
Receive window can be smaller than send
window
As long as receiver can keep up with sender
But packet loss can result in more
retransmits than necessary
No point in making receive window bigger
than send window
Unless congestion in network a concern
7
CS519
Sliding window examples
CS519
Sliding window examples
Normal operation
Receive app delays reading
Packet lost
Cumulative ACK
NACK
Selective ACK
CS519
Seq number space must be at
least two times window size
CS519
Next lecture
Next few lectures will be all about
TCP

More Related Content

What's hot

What's hot (20)

Tcp vs udp
Tcp vs udpTcp vs udp
Tcp vs udp
 
Tcp and udp ports
Tcp and udp portsTcp and udp ports
Tcp and udp ports
 
Course on TCP Dynamic Performance
Course on TCP Dynamic PerformanceCourse on TCP Dynamic Performance
Course on TCP Dynamic Performance
 
What is the difference between udp and tcp internet protocols
What is the difference between udp and tcp internet protocols What is the difference between udp and tcp internet protocols
What is the difference between udp and tcp internet protocols
 
Tcp vs udp difference and comparison diffen
Tcp vs udp   difference and comparison   diffenTcp vs udp   difference and comparison   diffen
Tcp vs udp difference and comparison diffen
 
Computer network (11)
Computer network (11)Computer network (11)
Computer network (11)
 
TCP AND UDP
TCP AND UDP TCP AND UDP
TCP AND UDP
 
Tcp Udp Notes
Tcp Udp NotesTcp Udp Notes
Tcp Udp Notes
 
TCP/IP and UDP protocols
TCP/IP and UDP protocolsTCP/IP and UDP protocols
TCP/IP and UDP protocols
 
Smtp
SmtpSmtp
Smtp
 
Tcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication headerTcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication header
 
Tcp udp
Tcp udpTcp udp
Tcp udp
 
Part 12 : Local Area Networks
Part 12 : Local Area Networks Part 12 : Local Area Networks
Part 12 : Local Area Networks
 
Transport layer
Transport layerTransport layer
Transport layer
 
Tcpdump
TcpdumpTcpdump
Tcpdump
 
Udp
UdpUdp
Udp
 
Udp vs-tcp
Udp vs-tcpUdp vs-tcp
Udp vs-tcp
 
Introduction of tcp, ip & udp
Introduction of tcp, ip & udpIntroduction of tcp, ip & udp
Introduction of tcp, ip & udp
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
TCP vs UDP / Sumiet23
TCP vs UDP / Sumiet23TCP vs UDP / Sumiet23
TCP vs UDP / Sumiet23
 

Viewers also liked

Photography: Apperture, Depth of Field, Focal Length
Photography: Apperture, Depth of Field, Focal LengthPhotography: Apperture, Depth of Field, Focal Length
Photography: Apperture, Depth of Field, Focal LengthJennifer Laluna
 
Photopresentation
PhotopresentationPhotopresentation
Photopresentationgerwinvis
 
Pengenalan Fotografi (4) Jenis Fotografi Lainnya dan Tugas Siswa - SMK NU Bal...
Pengenalan Fotografi (4) Jenis Fotografi Lainnya dan Tugas Siswa - SMK NU Bal...Pengenalan Fotografi (4) Jenis Fotografi Lainnya dan Tugas Siswa - SMK NU Bal...
Pengenalan Fotografi (4) Jenis Fotografi Lainnya dan Tugas Siswa - SMK NU Bal...SMK Nahdlatul Ulama Balikpapan
 
01 fotografi (pengantar n pengertian)
01 fotografi (pengantar n pengertian)01 fotografi (pengantar n pengertian)
01 fotografi (pengantar n pengertian)Faiz Sujudi
 
Pengenalan Fotografi (1) Pengertian Fotografi - SMK NU Balikpapan
Pengenalan Fotografi (1) Pengertian Fotografi - SMK NU BalikpapanPengenalan Fotografi (1) Pengertian Fotografi - SMK NU Balikpapan
Pengenalan Fotografi (1) Pengertian Fotografi - SMK NU BalikpapanSMK Nahdlatul Ulama Balikpapan
 
Ulangkaji 2B Teori Seni Visual
Ulangkaji 2B Teori Seni VisualUlangkaji 2B Teori Seni Visual
Ulangkaji 2B Teori Seni VisualNorhayati Ismail
 
Pengenalan Fotografi (3) Jenis-Jenis Fotografi - SMK NU Balikpapan
Pengenalan Fotografi (3) Jenis-Jenis Fotografi - SMK NU BalikpapanPengenalan Fotografi (3) Jenis-Jenis Fotografi - SMK NU Balikpapan
Pengenalan Fotografi (3) Jenis-Jenis Fotografi - SMK NU BalikpapanSMK Nahdlatul Ulama Balikpapan
 
Photo composition basic
Photo composition basicPhoto composition basic
Photo composition basicwtv212001
 
Mobile Photography at #MobileGallery
Mobile Photography at #MobileGalleryMobile Photography at #MobileGallery
Mobile Photography at #MobileGalleryMichael Fasciano
 
Rahasia Fotografi Matthew Albanese
Rahasia Fotografi Matthew AlbaneseRahasia Fotografi Matthew Albanese
Rahasia Fotografi Matthew Albanesebadar masbadar
 
Mengenal Fotografi (Sejarah dan Jenis-jenis Foto)
Mengenal Fotografi (Sejarah dan Jenis-jenis Foto)Mengenal Fotografi (Sejarah dan Jenis-jenis Foto)
Mengenal Fotografi (Sejarah dan Jenis-jenis Foto)Twitter
 
Mobile Photography
Mobile PhotographyMobile Photography
Mobile PhotographyPeter Means
 
Tips dan cara membuat photo story
Tips dan cara membuat photo storyTips dan cara membuat photo story
Tips dan cara membuat photo storyPurwo Subagiyo
 
Fotografi - Kanvas Bercerita
Fotografi - Kanvas BerceritaFotografi - Kanvas Bercerita
Fotografi - Kanvas BerceritaSadikin Gani
 

Viewers also liked (20)

Photography: Apperture, Depth of Field, Focal Length
Photography: Apperture, Depth of Field, Focal LengthPhotography: Apperture, Depth of Field, Focal Length
Photography: Apperture, Depth of Field, Focal Length
 
Photopresentation
PhotopresentationPhotopresentation
Photopresentation
 
Pengenalan Fotografi (4) Jenis Fotografi Lainnya dan Tugas Siswa - SMK NU Bal...
Pengenalan Fotografi (4) Jenis Fotografi Lainnya dan Tugas Siswa - SMK NU Bal...Pengenalan Fotografi (4) Jenis Fotografi Lainnya dan Tugas Siswa - SMK NU Bal...
Pengenalan Fotografi (4) Jenis Fotografi Lainnya dan Tugas Siswa - SMK NU Bal...
 
Fotografi Digital
Fotografi DigitalFotografi Digital
Fotografi Digital
 
Basic photography
Basic photographyBasic photography
Basic photography
 
01 fotografi (pengantar n pengertian)
01 fotografi (pengantar n pengertian)01 fotografi (pengantar n pengertian)
01 fotografi (pengantar n pengertian)
 
Pengenalan Fotografi (1) Pengertian Fotografi - SMK NU Balikpapan
Pengenalan Fotografi (1) Pengertian Fotografi - SMK NU BalikpapanPengenalan Fotografi (1) Pengertian Fotografi - SMK NU Balikpapan
Pengenalan Fotografi (1) Pengertian Fotografi - SMK NU Balikpapan
 
Ulangkaji 2B Teori Seni Visual
Ulangkaji 2B Teori Seni VisualUlangkaji 2B Teori Seni Visual
Ulangkaji 2B Teori Seni Visual
 
Materi Dasar Fotografi
Materi Dasar FotografiMateri Dasar Fotografi
Materi Dasar Fotografi
 
Pengenalan Fotografi (3) Jenis-Jenis Fotografi - SMK NU Balikpapan
Pengenalan Fotografi (3) Jenis-Jenis Fotografi - SMK NU BalikpapanPengenalan Fotografi (3) Jenis-Jenis Fotografi - SMK NU Balikpapan
Pengenalan Fotografi (3) Jenis-Jenis Fotografi - SMK NU Balikpapan
 
Sejarah fotografi
Sejarah fotografiSejarah fotografi
Sejarah fotografi
 
Photo composition basic
Photo composition basicPhoto composition basic
Photo composition basic
 
Mobile Photography at #MobileGallery
Mobile Photography at #MobileGalleryMobile Photography at #MobileGallery
Mobile Photography at #MobileGallery
 
Dasar teori fotografi
Dasar teori fotografiDasar teori fotografi
Dasar teori fotografi
 
Rahasia Fotografi Matthew Albanese
Rahasia Fotografi Matthew AlbaneseRahasia Fotografi Matthew Albanese
Rahasia Fotografi Matthew Albanese
 
Mengenal Fotografi (Sejarah dan Jenis-jenis Foto)
Mengenal Fotografi (Sejarah dan Jenis-jenis Foto)Mengenal Fotografi (Sejarah dan Jenis-jenis Foto)
Mengenal Fotografi (Sejarah dan Jenis-jenis Foto)
 
Makalah sejarah fotografi
Makalah sejarah fotografiMakalah sejarah fotografi
Makalah sejarah fotografi
 
Mobile Photography
Mobile PhotographyMobile Photography
Mobile Photography
 
Tips dan cara membuat photo story
Tips dan cara membuat photo storyTips dan cara membuat photo story
Tips dan cara membuat photo story
 
Fotografi - Kanvas Bercerita
Fotografi - Kanvas BerceritaFotografi - Kanvas Bercerita
Fotografi - Kanvas Bercerita
 

Similar to Udp length 519 computer networks transport

Mobile Transpot Layer
Mobile Transpot LayerMobile Transpot Layer
Mobile Transpot LayerMaulik Patel
 
05Transport.ppt
05Transport.ppt05Transport.ppt
05Transport.pptMcsaMcse1
 
Transport ppt for students examination.ppt
Transport ppt for students examination.pptTransport ppt for students examination.ppt
Transport ppt for students examination.pptSaini71
 
presentationphysicallyer.pdf talked about computer networks
presentationphysicallyer.pdf talked about computer networkspresentationphysicallyer.pdf talked about computer networks
presentationphysicallyer.pdf talked about computer networksHetfieldLee
 
Chapter 11: Data Link Control
Chapter 11: Data Link ControlChapter 11: Data Link Control
Chapter 11: Data Link ControlJeoffnaRuth
 
tcp-140613123317-phpapp01.pptx
tcp-140613123317-phpapp01.pptxtcp-140613123317-phpapp01.pptx
tcp-140613123317-phpapp01.pptxtouseeqzulfiqar1
 
mobile_transport_layer (1).pptx
mobile_transport_layer (1).pptxmobile_transport_layer (1).pptx
mobile_transport_layer (1).pptxsinghram281982
 
Web and internet technology notes for BCA students
Web and internet technology notes for BCA studentsWeb and internet technology notes for BCA students
Web and internet technology notes for BCA studentsnawejakhatar10063
 
chapter 3.2 TCP.pptx
chapter 3.2 TCP.pptxchapter 3.2 TCP.pptx
chapter 3.2 TCP.pptxTekle12
 
Tcp Ip Overview
Tcp Ip OverviewTcp Ip Overview
Tcp Ip OverviewAmir Malik
 
Computer network (16)
Computer network (16)Computer network (16)
Computer network (16)NYversity
 
tcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxtcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxAlphaKoiSylvester
 

Similar to Udp length 519 computer networks transport (20)

Mobile Transpot Layer
Mobile Transpot LayerMobile Transpot Layer
Mobile Transpot Layer
 
05Transport.ppt
05Transport.ppt05Transport.ppt
05Transport.ppt
 
Transport ppt for students examination.ppt
Transport ppt for students examination.pptTransport ppt for students examination.ppt
Transport ppt for students examination.ppt
 
presentationphysicallyer.pdf talked about computer networks
presentationphysicallyer.pdf talked about computer networkspresentationphysicallyer.pdf talked about computer networks
presentationphysicallyer.pdf talked about computer networks
 
TCP/ IP
TCP/ IP TCP/ IP
TCP/ IP
 
Computer Networks Unit 5
Computer Networks Unit 5Computer Networks Unit 5
Computer Networks Unit 5
 
Mod4
Mod4Mod4
Mod4
 
Tcp congestion avoidance
Tcp congestion avoidanceTcp congestion avoidance
Tcp congestion avoidance
 
NE #1.pptx
NE #1.pptxNE #1.pptx
NE #1.pptx
 
Lecture set 7
Lecture set 7Lecture set 7
Lecture set 7
 
Chapter 11: Data Link Control
Chapter 11: Data Link ControlChapter 11: Data Link Control
Chapter 11: Data Link Control
 
tcp-140613123317-phpapp01.pptx
tcp-140613123317-phpapp01.pptxtcp-140613123317-phpapp01.pptx
tcp-140613123317-phpapp01.pptx
 
Week4 lec1-bscs1
Week4 lec1-bscs1Week4 lec1-bscs1
Week4 lec1-bscs1
 
mobile_transport_layer (1).pptx
mobile_transport_layer (1).pptxmobile_transport_layer (1).pptx
mobile_transport_layer (1).pptx
 
Web and internet technology notes for BCA students
Web and internet technology notes for BCA studentsWeb and internet technology notes for BCA students
Web and internet technology notes for BCA students
 
unit 3 ns.ppt
unit 3 ns.pptunit 3 ns.ppt
unit 3 ns.ppt
 
chapter 3.2 TCP.pptx
chapter 3.2 TCP.pptxchapter 3.2 TCP.pptx
chapter 3.2 TCP.pptx
 
Tcp Ip Overview
Tcp Ip OverviewTcp Ip Overview
Tcp Ip Overview
 
Computer network (16)
Computer network (16)Computer network (16)
Computer network (16)
 
tcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxtcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptx
 

More from Brand Xanh

tai_lieu_Fintech_Marketing_afflefintechreport_v03_vi.pdf
tai_lieu_Fintech_Marketing_afflefintechreport_v03_vi.pdftai_lieu_Fintech_Marketing_afflefintechreport_v03_vi.pdf
tai_lieu_Fintech_Marketing_afflefintechreport_v03_vi.pdfBrand Xanh
 
Báo cáo thương mai điện tử 2021
Báo cáo thương mai điện tử 2021Báo cáo thương mai điện tử 2021
Báo cáo thương mai điện tử 2021Brand Xanh
 
Hỗ trợ quyết toán thuế - kê khai thuế - thuế thu nhập doanh nghiệp 2021 - qtt...
Hỗ trợ quyết toán thuế - kê khai thuế - thuế thu nhập doanh nghiệp 2021 - qtt...Hỗ trợ quyết toán thuế - kê khai thuế - thuế thu nhập doanh nghiệp 2021 - qtt...
Hỗ trợ quyết toán thuế - kê khai thuế - thuế thu nhập doanh nghiệp 2021 - qtt...Brand Xanh
 
Hướng dẫn mở tài khoản bán hàng quốc tế trên sàn thương mại điện tử Amazon - ...
Hướng dẫn mở tài khoản bán hàng quốc tế trên sàn thương mại điện tử Amazon - ...Hướng dẫn mở tài khoản bán hàng quốc tế trên sàn thương mại điện tử Amazon - ...
Hướng dẫn mở tài khoản bán hàng quốc tế trên sàn thương mại điện tử Amazon - ...Brand Xanh
 
Bao cao phan tich nghien cuu thi truong hanh vi tim kiem khach hang online tr...
Bao cao phan tich nghien cuu thi truong hanh vi tim kiem khach hang online tr...Bao cao phan tich nghien cuu thi truong hanh vi tim kiem khach hang online tr...
Bao cao phan tich nghien cuu thi truong hanh vi tim kiem khach hang online tr...Brand Xanh
 
He thong hoa kich thuoc chuan de thiet ke hinh anh tren fanpage facebook
He thong hoa kich thuoc chuan de thiet ke hinh anh tren fanpage facebookHe thong hoa kich thuoc chuan de thiet ke hinh anh tren fanpage facebook
He thong hoa kich thuoc chuan de thiet ke hinh anh tren fanpage facebookBrand Xanh
 
Mau landingpage giao duc tuyen sinh dai hoc thuong mai
Mau landingpage giao duc tuyen sinh dai hoc thuong maiMau landingpage giao duc tuyen sinh dai hoc thuong mai
Mau landingpage giao duc tuyen sinh dai hoc thuong maiBrand Xanh
 
Huong dan su dung va dat lenh chung khoan phai sinh mbs
Huong dan su dung va dat lenh chung khoan phai sinh mbsHuong dan su dung va dat lenh chung khoan phai sinh mbs
Huong dan su dung va dat lenh chung khoan phai sinh mbsBrand Xanh
 
Ảnh hưởng của covid 19 lên hành vi của người tiêu dùng [Tài liệu nghiên cứu t...
Ảnh hưởng của covid 19 lên hành vi của người tiêu dùng [Tài liệu nghiên cứu t...Ảnh hưởng của covid 19 lên hành vi của người tiêu dùng [Tài liệu nghiên cứu t...
Ảnh hưởng của covid 19 lên hành vi của người tiêu dùng [Tài liệu nghiên cứu t...Brand Xanh
 
File mẫu xây dựng kế hoạch marketing bản đầy đủ tiếng Việt - Vietnamese Marke...
File mẫu xây dựng kế hoạch marketing bản đầy đủ tiếng Việt - Vietnamese Marke...File mẫu xây dựng kế hoạch marketing bản đầy đủ tiếng Việt - Vietnamese Marke...
File mẫu xây dựng kế hoạch marketing bản đầy đủ tiếng Việt - Vietnamese Marke...Brand Xanh
 
Giải pháp cửa nhôm Hopo không cầu cách nhiệt đồng bộ hệ 65
Giải pháp cửa nhôm Hopo không cầu cách nhiệt đồng bộ hệ 65Giải pháp cửa nhôm Hopo không cầu cách nhiệt đồng bộ hệ 65
Giải pháp cửa nhôm Hopo không cầu cách nhiệt đồng bộ hệ 65Brand Xanh
 
Vina zip aiti_aptech_audiostream
Vina zip aiti_aptech_audiostreamVina zip aiti_aptech_audiostream
Vina zip aiti_aptech_audiostreamBrand Xanh
 
31500234 smartax ma5600 configuration guide (v300r003-64)
31500234 smartax ma5600 configuration guide (v300r003-64)31500234 smartax ma5600 configuration guide (v300r003-64)
31500234 smartax ma5600 configuration guide (v300r003-64)Brand Xanh
 
Seo and soccer
Seo and soccerSeo and soccer
Seo and soccerBrand Xanh
 
Bai thi Nghiem ky thuat dien tu
Bai thi Nghiem ky thuat dien tuBai thi Nghiem ky thuat dien tu
Bai thi Nghiem ky thuat dien tuBrand Xanh
 
Những nguyên lý quản trị bất biến mọi thời đại
Những nguyên lý quản trị bất biến mọi thời đạiNhững nguyên lý quản trị bất biến mọi thời đại
Những nguyên lý quản trị bất biến mọi thời đạiBrand Xanh
 
Mẫu phiếu đăng ký tham dự cuộc thi khởi nghiệp 2013
Mẫu phiếu đăng ký tham dự cuộc thi khởi nghiệp 2013Mẫu phiếu đăng ký tham dự cuộc thi khởi nghiệp 2013
Mẫu phiếu đăng ký tham dự cuộc thi khởi nghiệp 2013Brand Xanh
 
Cấu trúc của một bản kế hoạch khởi nghiệp
Cấu trúc của một bản kế hoạch khởi nghiệpCấu trúc của một bản kế hoạch khởi nghiệp
Cấu trúc của một bản kế hoạch khởi nghiệpBrand Xanh
 

More from Brand Xanh (20)

tai_lieu_Fintech_Marketing_afflefintechreport_v03_vi.pdf
tai_lieu_Fintech_Marketing_afflefintechreport_v03_vi.pdftai_lieu_Fintech_Marketing_afflefintechreport_v03_vi.pdf
tai_lieu_Fintech_Marketing_afflefintechreport_v03_vi.pdf
 
Báo cáo thương mai điện tử 2021
Báo cáo thương mai điện tử 2021Báo cáo thương mai điện tử 2021
Báo cáo thương mai điện tử 2021
 
Hỗ trợ quyết toán thuế - kê khai thuế - thuế thu nhập doanh nghiệp 2021 - qtt...
Hỗ trợ quyết toán thuế - kê khai thuế - thuế thu nhập doanh nghiệp 2021 - qtt...Hỗ trợ quyết toán thuế - kê khai thuế - thuế thu nhập doanh nghiệp 2021 - qtt...
Hỗ trợ quyết toán thuế - kê khai thuế - thuế thu nhập doanh nghiệp 2021 - qtt...
 
Hướng dẫn mở tài khoản bán hàng quốc tế trên sàn thương mại điện tử Amazon - ...
Hướng dẫn mở tài khoản bán hàng quốc tế trên sàn thương mại điện tử Amazon - ...Hướng dẫn mở tài khoản bán hàng quốc tế trên sàn thương mại điện tử Amazon - ...
Hướng dẫn mở tài khoản bán hàng quốc tế trên sàn thương mại điện tử Amazon - ...
 
Bao cao phan tich nghien cuu thi truong hanh vi tim kiem khach hang online tr...
Bao cao phan tich nghien cuu thi truong hanh vi tim kiem khach hang online tr...Bao cao phan tich nghien cuu thi truong hanh vi tim kiem khach hang online tr...
Bao cao phan tich nghien cuu thi truong hanh vi tim kiem khach hang online tr...
 
He thong hoa kich thuoc chuan de thiet ke hinh anh tren fanpage facebook
He thong hoa kich thuoc chuan de thiet ke hinh anh tren fanpage facebookHe thong hoa kich thuoc chuan de thiet ke hinh anh tren fanpage facebook
He thong hoa kich thuoc chuan de thiet ke hinh anh tren fanpage facebook
 
Mau landingpage giao duc tuyen sinh dai hoc thuong mai
Mau landingpage giao duc tuyen sinh dai hoc thuong maiMau landingpage giao duc tuyen sinh dai hoc thuong mai
Mau landingpage giao duc tuyen sinh dai hoc thuong mai
 
Huong dan su dung va dat lenh chung khoan phai sinh mbs
Huong dan su dung va dat lenh chung khoan phai sinh mbsHuong dan su dung va dat lenh chung khoan phai sinh mbs
Huong dan su dung va dat lenh chung khoan phai sinh mbs
 
Ảnh hưởng của covid 19 lên hành vi của người tiêu dùng [Tài liệu nghiên cứu t...
Ảnh hưởng của covid 19 lên hành vi của người tiêu dùng [Tài liệu nghiên cứu t...Ảnh hưởng của covid 19 lên hành vi của người tiêu dùng [Tài liệu nghiên cứu t...
Ảnh hưởng của covid 19 lên hành vi của người tiêu dùng [Tài liệu nghiên cứu t...
 
File mẫu xây dựng kế hoạch marketing bản đầy đủ tiếng Việt - Vietnamese Marke...
File mẫu xây dựng kế hoạch marketing bản đầy đủ tiếng Việt - Vietnamese Marke...File mẫu xây dựng kế hoạch marketing bản đầy đủ tiếng Việt - Vietnamese Marke...
File mẫu xây dựng kế hoạch marketing bản đầy đủ tiếng Việt - Vietnamese Marke...
 
Giải pháp cửa nhôm Hopo không cầu cách nhiệt đồng bộ hệ 65
Giải pháp cửa nhôm Hopo không cầu cách nhiệt đồng bộ hệ 65Giải pháp cửa nhôm Hopo không cầu cách nhiệt đồng bộ hệ 65
Giải pháp cửa nhôm Hopo không cầu cách nhiệt đồng bộ hệ 65
 
Vina zip aiti_aptech_audiostream
Vina zip aiti_aptech_audiostreamVina zip aiti_aptech_audiostream
Vina zip aiti_aptech_audiostream
 
31500234 smartax ma5600 configuration guide (v300r003-64)
31500234 smartax ma5600 configuration guide (v300r003-64)31500234 smartax ma5600 configuration guide (v300r003-64)
31500234 smartax ma5600 configuration guide (v300r003-64)
 
Seo and soccer
Seo and soccerSeo and soccer
Seo and soccer
 
Bao cao full
Bao cao fullBao cao full
Bao cao full
 
Bai thi Nghiem ky thuat dien tu
Bai thi Nghiem ky thuat dien tuBai thi Nghiem ky thuat dien tu
Bai thi Nghiem ky thuat dien tu
 
Những nguyên lý quản trị bất biến mọi thời đại
Những nguyên lý quản trị bất biến mọi thời đạiNhững nguyên lý quản trị bất biến mọi thời đại
Những nguyên lý quản trị bất biến mọi thời đại
 
Mẫu phiếu đăng ký tham dự cuộc thi khởi nghiệp 2013
Mẫu phiếu đăng ký tham dự cuộc thi khởi nghiệp 2013Mẫu phiếu đăng ký tham dự cuộc thi khởi nghiệp 2013
Mẫu phiếu đăng ký tham dự cuộc thi khởi nghiệp 2013
 
Cấu trúc của một bản kế hoạch khởi nghiệp
Cấu trúc của một bản kế hoạch khởi nghiệpCấu trúc của một bản kế hoạch khởi nghiệp
Cấu trúc của một bản kế hoạch khởi nghiệp
 
Svmc brochure
Svmc brochureSvmc brochure
Svmc brochure
 

Recently uploaded

Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSrknatarajan
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 

Recently uploaded (20)

Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 

Udp length 519 computer networks transport

  • 1. 1 CS519: Computer Networks Lecture 5, Part 1: Mar 3, 2004 Transport: UDP/TCP demux and flow control / sequencing CS519 Recall our protocol layers . . . CS519 . . . and our protocol graph CS519 IP gets the packet to the host Really the interface Now how do we get the packet from the interface to the right process? Well, you’ve kinda seen this already, but lets cover again
  • 2. 2 CS519 TCP and UDP ports The ports serve to “demux” the packet Get it from the interface to the right process SRC port DST port checksum length DATA UDP Header CS519 TCP and UDP ports Some ports are “well-known” HTTP is by default TCP port 80 DNS is UDP or TCP port 53 Etc. Servers listen at these ports Other ports are dynamically assigned Clients usually dynamically assign ports CS519 UDP/TCP application process selection Unicast application process is selected by the complete 5-tuple, consisting of: Source and Dest IP address Source and Dest port IP protocol Ex: an FTP server may have concurrent transfers to the same client. Only the source port will differ. Multicast application process is selected by a 3- tuple: Dest IP address and UDP port, and IP protocol Because it is multicast, UDP may select multiple processes CS519 Typical server incoming connection processing Client Host Server Host Listening Process Client Process1 SA=C, DA=S, P=TCP, SP=5000, DP=23 TCPTCP
  • 3. 3 CS519 Typical server incoming connection processing Client Host Server Host Listening Process Client Process1 SA=C, DA=S, P=TCP, SP=5000, DP=23 Server Process1 TCP fork TCP CS519 Typical server incoming connection processing Client Host Server Host Listening Process Client Process1 SA=C, DA=S, P=TCP, SP=5000, DP=23 Server Process1 TCP fork Client Process2 SA=C, DA=S, P=TCP, SP=5001, DP=23 TCP CS519 Typical server incoming connection processing Client Host Server Host Listening Process Client Process1 SA=C, DA=S, P=TCP, SP=5000, DP=23 Server Process1 TCP fork Client Process2 SA=C, DA=S, P=TCP, SP=5001, DP=23 Server Process1 forkTCP CS519 UDP and TCP service UDP is connectionless packet transport service Like IP, packets can be lost, mis-ordered, duplicated A receive() of X bytes corresponds to a previous send() of X bytes And a corresponding packet of X bytes • (Ignoring packet loss or other errors like not providing enough receive buffer) If sending app sends, but receiving app doesn’t receive, packet will be lost Even if no packets are lost in the network!
  • 4. 4 CS519 UDP packet loss CS519 UDP and TCP service TCP is a reliable byte-stream transport service As long as the TCP connection is established, bytes arrive in the order they were sent But, a send() of X bytes doesn’t imply a receive() of X bytes Sender can send 500 bytes, and receiver can read 1 byte 500 times (and it could have been transmitted as 2 250-byte packets) And vice versa TCP provides flow control CS519 TCP flow control CS519 Stop-and-wait Before looking at TCP in its full glory, lets look at simpler sequencing / flow control algorithms Stop-and-wait is about as simple as it can get Sender sends packet, waits for ack, sends another packet, . . . Receiver receives packet, acks it . . .
  • 5. 5 CS519 Stop-and-wait CS519 Stop-and-wait Receiver only needs one packet’s worth of receive buffer Only send ACK after received packet is processed Sender only needs one packet’s worth of send buffer Save packet until get ACK, then save the next packet CS519 Even stop-and-wait not quite this simple! CS519 Stop-and-wait requires a 1-bit sequence number space
  • 6. 6 CS519 Problem with stop-and-wait Fine on a short-skinny pipe Low bandwidth, low distance Wasteful on a long-fat pipe High delay x bandwidth product 1.5 Mbps link, 45ms round-trip delay Approx. 8KB BW x delay Eight 1KB packets can be sent in one RTT, but stop-and-wait only sends one packet in one RTT CS519 Sliding window Sender can send multiple bytes before getting an ACK for the first byte Number of bytes is the send window Sender must buffer these bytes in case it has to retransmit Receiver can buffer multiple bytes before delivering any to the application Number of bytes is the receive window Receiver must buffer these bytes in case application doesn’t read them on time Or in case some bytes not received CS519 Sliding window CS519 Send and receive window sizes Send window should be big enough to fill the pipe Receive window can be smaller than send window As long as receiver can keep up with sender But packet loss can result in more retransmits than necessary No point in making receive window bigger than send window Unless congestion in network a concern
  • 7. 7 CS519 Sliding window examples CS519 Sliding window examples Normal operation Receive app delays reading Packet lost Cumulative ACK NACK Selective ACK CS519 Seq number space must be at least two times window size CS519 Next lecture Next few lectures will be all about TCP