Experiential Learning Workshop on Basics of Transport/Network Layer

Size: px
Start display at page:

Download "Experiential Learning Workshop on Basics of Transport/Network Layer"

Transcription

1 Experiential Learning Workshop on Basics of Transport/Network Layer July 05, 2018 Dr. Ram P Rustagi Professor, CSE Dept KSIT, Bangalore rprustagi@ksit.edu.in

2 Resources & Acknowledgements Resources Learning.html Articles in ACCS Journal Slides Example web pages, and programs Acknowledgements: Computer Networking: Kurose, Ross!2

3 Day 1: Basics of Networking Overview Introduction to basic networking Tools Handson 1: using networking tools IP and TCP Headers Analysis of layers in IP, TCP/UDP Handson-2: Analyze IP and TCP headers Fragementation and PMTU Discovery ICMP Errors, NAT Handson-3: ICMP errors, NAT, PMTU ARP, DHCP, Proxy, Gratuituous ARP Handson-4: ARP protocol Summary!3

4 Day 2: Basics of HTTP Overview: HTTP and Versions Request and Response Format, Basic headers Handson-1: Analyze HTTP headers, status codes HTTP persistent and non-persistent connections Apache config support for persistent connections Handson-2: Configuring persistent connections Web caching, HTTP headers for cache control Handson-3: Cachecing, E-tags HTTP cookies mechanisms Secure cookies, sub-domains, HTTP only cookies Handson-4: using cookies, secure cookies Summary!4

5 Day 3: Basics of Transport Layer Overview: Transport layer, requirements Connection less and connection oriented transport Handson-1: Analyze TCP 4-tuple and UDP 2-tuple Pseudo headers in TCP/UDP Concurrent communications : UDP and TCP Handson-2: Using data with same checksum TCP and UDP Error control, TCP flags Handson-3: Connection Mgmt, Queues, and states TCP Streaming, Reliability misnomer, UDP message boundaries Handson-4: TCP Streams and UDP messages Summary!5

6 Day 4: Basics of Web Security Overview: HTTPS protocol Server certificate and server authentication Mixed content and browser warnings Locks icons and HTTP Status Handson-1: HTTPS website with mixed content MITM attack and ARP spoofing MITM with browser and information stealing Understanding HSTS, CSP Handson-2: Implementing ARP Spoofing Summary!6

7 Day 3: Basics of Transport Layer Overview: Transport layer, requirements Connection less and connection oriented transport Handson-1: Analyze TCP 4-tuple and UDP 2-tuple Pseudo headers in TCP/UDP Concurrent communications : UDP and TCP Handson-2: Using data with same checksum TCP and UDP Error control, TCP flags Handson-3: Connection Mgmt, Queues, and states TCP Streaming, Reliability misnomer, UDP message boundaries Handson-4: TCP Streams and UDP messages Summary!7

8 Internet transport-layer protocols reliable, in-order delivery (TCP) congestion control flow control connection setup unreliable, unordered delivery: UDP no-frills extension of besteffort IP services not available: delay guarantees bandwidth guarantees application transport network data link physical network data link physical network data link physical logical end-end transport network data link physical network data link physical network data link physical network data link physical network data link physical application transport network data link physical Source: Kurose, Ross: Computer Networking, A Top Down Approach!8

9 Port Numbers IANA ranges for port numbers Well known ports: 1 to 1023 Assigned and controlled by IANA Reserved ports: 1024 to Only registered with IANA Not assigned or controlled by IANA Dynamic ports: to Can be used by any process Also used as ephemeral ports!9

10 Transport layer protocol vhow would you design it vwhat would you like to achieve At simplest level Multiplex/de-multiplex At advanced level Reliable delivery i.e. Data integrity Include error detection and retransmissions Sequential delivery Would need buffer Message boundaries Security!10

11 Multiplexing/demultiplexing multiplexing at sender: handle data from multiple sockets, add transport header (later used for demultiplexing) demultiplexing at receiver: use header info to deliver received segments to correct socket application application P1 P2 application socket P3 transport P4 process transport network transport network link link physical network link physical physical Source: Kurose, Ross: Computer Networking, A Top Down Approach!11

12 Connectionless demux: example clientsocket = (9157); application P3 transport network link physical application P1 transport network link physical clientsocket = (5775); application P4 transport network link physical source port: 6428 dest port: 9157 source port:? dest port:? source port: 9157 dest port: 6428 source port:? dest port:? Source: Kurose, Ross: Computer Networking, A Top Down Approach!12

13 Connection-oriented demux Transport layer socket identified by 4(or 5)- tuple: source IP address source port number dest IP address dest port number (Protocol (TCP)) demux: receiver uses all four (or five) values to direct segment to appropriate socket v server host may support many simultaneous TCP sockets: each socket identified by its own 4-tuple v web servers have different sockets for each connecting client non-persistent HTTP will have different socket for each request!13

14 Connection-oriented demux: example Source: Kurose, Ross: Computer Networking, A Top Down Approach application application P3 transport network link physical P4 P5 transport network link physical P6 server: IP address B application P2 P3 transport network link physical host: IP address A source IP,port: B,80 dest IP,port: A,9157 source IP,port: C,5775 dest IP,port: B,80 host: IP address C source IP,port: A,9157 dest IP, port: B,80 three segments, all destined to IP address: B, dest port: 80 are demultiplexed to different sockets source IP,port: C,9157 dest IP,port: B,80!14

15 Connection-oriented demux: example threaded server application application P3 transport network link physical P4 transport network link physical server: IP address B application P2 P3 transport network link physical host: IP address A source IP,port: B,80 dest IP,port: A,9157 source IP,port: C,5775 dest IP,port: B,80 host: IP address C source IP,port: A,9157 dest IP, port: B,80 source IP,port: C,9157 dest IP,port: B,80 Source: Kurose, Ross: Computer Networking, A Top Down Approach Transport Layer3-14!15

16 Transport Layer Protocol Characteristics Connection less May arrive out of order In order delivery requires pkts to be numbered. No acknowledgement, Packets may be lost No prior handshake Connection oriented Setup, data transfer and teardown phase Provides reliability, ordered delivery Handles error control in a better way *!16

17 Transport Layer Reliability Support Reliability Needs error and flow control, loss detection Compels slower service Unreliable protocol No extra overheads Reliability at data link layer Provides error and flow control Why do we need it at Transport layer when Link layer provides the same *!17

18 UDP Design Requirement How to design a simple transport layer? Just provide transport on top of IP Multiplexing and demultiplexing Little bit of error checking No handshake Rest all has to be managed by application Application practically talks to IP DNS uses UDP What happens when query/response is lost? *!18

19 UDP: segment header 32 bits source port # dest port # length checksum length, in bytes of UDP segment, including header includes pseudo header application data (payload) UDP segment format Source: Kurose, Ross: Computer Networking, A Top Down Approach!19

20 Pseudo header for checksum source address destination address zero protocol UDP length Source Destination Port Port Length Checksum data octets Src: RFC 768 Pseudo Headers Actual Headers!20

21 Internet checksum: example RFC 1071 Consider 3 words x x x8F0C x14AC1 Wrapping around the overflow bit makes it x4AC2 1 s complement will be xB53D!21

22 Data with Same Checksum Adding 0xFFFF to checksum results in same value In UDP checksum computation length is used twice Once in UDP header, once in psuedo headers Consider the data addition that adds up to 0xFFFF First thought: use 0x5555 (i.e. UU ) three times This increases length by 6, (which is counted twice) Thus addition of 6 bytes should add to 0xFFF3 Add 0xUQUQUQ (0x ) Yields same checksum Any other combination?!22

23 Data with Same Checksum Given the data text ABCDEF, How it can be changed to use same checksum Swapping two bytes? e.g. CDABEF, or EFCDAB, or ABEFCD etc. Modifying the data without swapping BCBCEF? AAAAIL?!23

24 TCP Characteristics * point-to-point: One sender, one receiver reliable, in-order byte steam: No message boundaries pipelined: TCP congestion and flow control set window size full duplex data: Bi-directional data flow in same connection MSS: maximum segment size, determined from link/ frame size connection-oriented: Handshaking (exchange of control msgs) inits sender, receiver state before data exchange flow controlled: Sender will not overwhelm receiver!24

25 Basis of TCP Handshake 2-way handshake: Let s talk OK ESTAB ESTAB Q: will 2-way handshake always work in network? v variable delays v retransmitted messages (e.g. req_conn(x)) due to message loss v message reordering v can t see other side choose x ESTAB req_conn(x) acc_conn(x) ESTAB Source: Kurose, Ross: Computer Networking, A Top Down Approach!25

26 Basis of TCP Handshake 2-way handshake failure scenarios: Source: Kurose, Ross: Computer Networking, A Top Down Approach choose x req_conn(x) ESTAB choose x req_conn(x) ESTAB retransmit req_conn(x) acc_conn(x) retransmit req_conn(x) acc_conn(x) ESTAB req_conn(x) ESTAB retransmit data(x+1) data(x+1) accept data(x+1) client terminates connection x completes server forgets x client terminates connection x completes req_conn(x) server forgets x ESTAB data(x+1) half open connection! (no client!) ESTAB accept data(x+1)!26

27 TCP 3-Way Handshake client state server state LISTEN SYNSENT choose init seq num, x send TCP SYN msg SYNbit=1, Seq=x choose init seq num, y send TCP SYNACK msg, acking SYN LISTEN SYN RCVD SYNbit=1, Seq=y ACKbit=1; ACKnum=x+1 ESTAB received SYNACK(x) indicates server is live; send ACK for SYNACK; this segment may contain client-to-server data ACKbit=1, ACKnum=y+1 received ACK(y) indicates client is live ESTAB Source: Kurose, Ross: Computer Networking, A Top Down Approach!27

28 TCP Timeouts On timer expiration Retransmits the segment that is not yet acked Sets the TimeoutInterval double of previous value Example: First time out 0.75s 2nd/3rd/ timeout will be 1.5s,3.0s, On receipt of Ack, it is computed again Provides a limited form of congestion control *!28

29 TCP Flow Control to application process RcvBuffer rwnd buffered data free buffer space TCP segment payloads * receiver-side buffering src: Computer Networking : Kurose, Ross!29

30 Typical Understanding of TCP src: ftp:// class/330/sockets/sockets.html!30

31 TCP Client/Server Communication TCP Client socket() connect() write() 3-way handsake Conn Establishment Data Request TCP Server { socket() bind() listen() accept() read() close() Data Response Connecion Close read() write() close()!31

32 \ active OPEN CLOSED \ < \ \ create TCB ^ \ \ snd SYN passive OPEN CLOSE \ \ \ \ create TCB delete TCB \ \ V \ \ CLOSE \ LISTEN delete TCB rcv SYN SEND V snd SYN,ACK / \ snd SYN < > SYN rcv SYN SYN RCVD < SENT snd ACK rcv ACK of SYN \ / rcv SYN,ACK x snd ACK V V CLOSE ESTAB snd FIN TCP State Transition Diagram src: RFC 793!32

33 CLOSE ESTAB snd FIN CLOSE rcv FIN V snd FIN / \ snd ACK FIN < > CLOSE WAIT WAIT rcv FIN \ rcv ACK of FIN CLOSE snd ACK V x V snd FIN V FINWAIT-2 CLOSING LAST- ACK rcv ACK of FIN rcv ACK of FIN rcv FIN Timeout=2MSL x V x V \ snd ACK delete TCB > TIME WAIT > CLOSED TCP State Transition Diagram src: RFC 793!33

34 TCP Connection State Use netstat -nat to know the current state LISTEN SYN-RECD SYN-SENT ESTABLISHED CLOSED -> LAST_ACK FIN_WAIT1 FIN_WAIT2 TIME_WAIT Note: you may have to install net-tools sudo apt install net-tools!34

35 Setup Requirement: TCP/UDP S1 S2!35

36 Hands-On 1a: UDP Checksum Between two machines communicate UDP packets using nc (-u option). Send data content as below and compute the checksum using the IP Address and port number used and verify it with checksum value in wireshark capture. ABCDE and ABCDEUQUQUQ Are the two checksum same? Why or why not? What other characters can you attach to ABCDE to have the same checksum value DrAIT/Basics of Socket Programming RPR!36

37 Hands-On 1b: UDP Msg Boundary Data Transfer Clients sends data (100 bytes) every 2s (10 times) AA.. (1 st pkt), BB..(2 nd pkt),, JJ..(10 th pkt) Server reads 40 bytes at a time What would server receive and display? S1 S2 DrAIT/Basics of Socket Programming RPR!37

38 Hands-On 1c: UDP Packet Loss Data Transfer Clients sends data (100 bytes) every 2s (10 times) AA.. (1 st pkt), BB..(2 nd pkt),, JJ..(10 th pkt) Break the link between switch at 7th sec and restore after 12 sec Server reads full 100 bytes. What would server receive and display? S1 S2 DrAIT/Basics of Socket Programming RPR!38

39 Hands-On 1d: TCP Streaming Data Transfer Clients sends data (100 bytes) every 2s (10 times) AA.. (1 st pkt), BB..(2 nd pkt),, JJ..(10 th pkt) Server reads 30 bytes at a time What would server display S1 S2 DrAIT/Basics of Socket Programming RPR!39

40 Hands-On 1e:TCP Recovery Data Transfer Clients sends data (100 bytes) every 2s (10 times) AA.. (1 st pkt), BB..(2 nd pkt),, JJ..(10 th pkt) Break the link between switch at 7 th sec and restore after 12 th sec Server reads 30 bytes at a time What would server receive: S1 S2 DrAIT/Basics of Socket Programming RPR!40

41 Hands-On 1f:TCP Timeouts TCP timeout study T0: break the link between S1 and S2 Connect client to server How many SYN packets are transmitted What is the time difference between SYN pkts When does client give up Repeat the experiment, but with restoring the link after 1 minute. S1 S2 DrAIT/Basics of Socket Programming RPR!41

42 Hands-On 1g:TCP Recovery & Streaming Data Transfer Clients sends data (100 bytes) every 2s (10 times) AA.. (1 st pkt), BB..(2 nd pkt),, JJ..(10 th pkt) Break the link between switch at 7 th sec and restore after 12 th sec Server reads 30 bytes at a time Study the timeouts of retransmission Analyze the segments on retransmission Do multiple segments combine in a single transmit What happens if combination is more than MTU? DrAIT/Basics of Socket Programming RPR!42

43 Handson 1h: Study of TCP Queuing Run TCP server (nc -l <port>) Connect multiple clients to it Look the TCP connections at both clients and server All should show ESTABLISHED Exchange data from all clients When server responds, which client gets it What happens to data of other clients What happens to other clients when communicating client closes the connection!43

44 Session 2 : setup A!44

45 Session 2: Setup B N1 1 2 Router N2 Switch Ha: /24 Hc: /24 Hb: /24 2!45

46 ARP - Address Resolution Protocol Packet delivery to a host requires two addresses Logical address - IP Address Physical address - MAC address Need to find mapping from logical to physical ARP is used - RFC 826 Src: Forouzan - Computer Networking RPR/Experiential Learning - Network Basics!46

47 ARP - 4 cases MAC MAC RPR/Experiential Learning - Network Basics Src: Forouzan - Computer Networking!47

48 ARP ARP Request and Reply ARP Request is broadcast ARP Reply is Unicast Other forms of ARP Proxy ARP (RFC 1027) Reverse ARP (RFC 903) Gratuitous ARP RPR/Experiential Learning - Network Basics!48

49 Proxy ARP Router (Proxy ARP Server) replied to all requests Used when Splitting a network w/o changing hosts netmask Mobile IP RPR/Experiential Learning - Network Basics Src: Forouzan - Computer Networking!49

50 Reverse ARP Reverse ARP (RARP) : RFC 903 Used for diskless stations Organization does not have enough IP Address Target as MAC Bcast does not cross the router Needs one RARP server for each subnet BOOTP Improvement over RARP Has a relay agent to forward across network Static mapping of MAC to IP Manageability issues DHCP - replaces BOOTP RPR/Experiential Learning - Network Basics!50

51 Gratuitous ARP Ref: Gratuitous ARP Request Both src and dstn IP is set to that of m/c Dstn MAC is broadcast i.e. ff:ff:ff:ff:ff:ff Ordinarily, no reply will occur normally if a m/c exists, it may respond Gratuitous ARP Reply (for HA, LB, Spoofing) A reply to which no request has occurred RPR/Experiential Learning - Network Basics!51

52 Gratuitous ARP Why Gratuitous ARP Help detect IP conflicts if a m/c receives G-ARP req which is its own, implies IP conflict Helps in updating other m/cs ARP tables Used in clustering solutions, when IP is moved Helps inform the switch to update its port table Each time an i/f comes up (after down), sends G-ARP RPR/Experiential Learning - Network Basics!52

53 Life of Packet in Internet DNS Record: -> Q: User at host A types ping -c1 What is the packet flow? RPR/Experiential Learning - Network Basics!53

54 DHCP Goal: allow host to dynamically obtain its IP address Renew its lease on address in use, on lease expiry Preferably gets the same address, not guaranteed Support for mobile users who join network Guarantee: only one address to only one client Retain DHCP client address across reboots not guaranteed Retain DHCP client configs across server reboot Must coexist with statically assigned addresses Should work with DHCP server failovers Interoperate with BOOTP relay agents RPR/Experiential Learning - Network Basics!54

55 DHCP: more than IP addresses DHCP can return more than just allocated IP address on subnet: Address of first-hop router for client Name and IP address of DNS sever Network mask (indicating network versus host portion of address) RPR/Experiential Learning - Network Basics!55

56 DHCP: Dynamic Host Configuration Protocol DHCP overview: An extension of BOOTP mechanism Host broadcasts DHCP Discover msg [optional] DHCP server responds with DHCP Offer msg more than one server can make the offer client can choose which server to send request to Host requests IP address: DHCP Request msg DHCP server sends address: DHCP Ack msg Renewal happens with DHCP Request/ack On completion, client sends DHCP Release msg Practically not seen RPR/Experiential Learning - Network Basics!56

57 Handson-2a: ARP Understand ARP working. Know current ARP working arp -an ping H x (where H x is not in ARP table) but live See the ARP table to have Hx entry ping H y (where H y is not live) What does ARP table shows!57

58 Handson-2b: ARP Create state ARP entry for H z not in ARP table sudo arp -s <IP Addr> <MAC Addr> ping H z No ARP Request should be transmitted. ping -b -c5 <Broadcast address>!58

59 Handson-2c: Gratuituos ARP Use arping to issue gratuituous ARP On Ha, assign IP of Hc sudo ip addr del /24 dev eth0 sudo ip addr add /24 dev eth0 sudo arping -A -I eth Analyze ARP table of Hb!59

60 Handson-2d: ICMP Redirect Ha: 10.x.1.1/ Switch Hc: 10.x.1.201/24 lo:10.x.3.201/24 Hb:10.x.1.101/24 lo:10.x.2.101/24 On Ha sudo ip route add 10.x.2.0/24 via 10.x sudo ip route add 10.x.3.0/24 via 10.x On Hb sudo ip route add 10.x.3.0/24 via 10.x On Hc sudo ip route add 10.x.3.0/24 via 10.x RPR/Experiential Learning - Network Basics!60

61 Handson-3a: Basic Routing Ha: /24 Hc: / Router Hb-e1: /24 Hb-e2: /24 Enable routing on Hb sudo sysctl -w net.ipv4.ip_forward=1 Define routing of /24 on Ha Define routing of /24 on Hc Ping Hc from Ha Note down the ARP table of Ha and Hc. It should show MAC addresses of Hb!61

62 Handson-3b: Proxy ARP Ha: /22 Hc: / Router Hb-e1: /24 Hb-e2: /24 Enable proxy ARP, and routing on Hb sudo sysctl -w net.ipv4.conf.all.proxy_arp=1 sudo sysctl -w net.ipv4.ip_forward=1 Ping Hc from Ha Note down the ARP table of Ha and Hc. It should show MAC addresses of Hb!62

63 Handson-3c: PMTU Discovery Ha: 10.x.1.1/24 Hc: 10.x.3.201/ Router Router Hb-e1:10.x.1.101/24 Hb-e2:10.x.3.1/24 On Hb sudo ip link set dev eth2 mtu 1000 sudo sysctl -w net.ipv4.ip_forward=1 On Ha ping -c 2 s p RPR/Experiential Learning - Network Basics!63

64 Handson-3d: IP Fragmentation Ha: 10.x.1.1/24 Hc: 10.x.3.201/ Router Router Hb-e1:10.x.1.101/24 Hb-e2:10.x.3.1/24 On Hb sudo ip link set dev eth2 mtu 1000 sudo sysctl -w net.ipv4.ip_forward=1 On Ha./udp_client -b s p c 2 RPR/Experiential Learning - Network Basics!64

65 Handson-4a: Longest Prefix Match LAN: eno1 eno1 Hb eno1 Router Router USB Routing table of Hb USB 10.x.1.65/24 10.x.1.34/27 10.x.1.129/26!65

66 Summary Transport Layer Multiplexing UDP Message boundary TCP Streaming TCP Reliability: timeouts and retransmits ICMP errors: Redirect, TTL expiry ARP, Gratuituous ARP IP routing, Longest prefix match!66

67 Thank You!67

Experiential Learning Workshop on Transport & IP Routing

Experiential Learning Workshop on Transport & IP Routing Experiential Learning Workshop on Transport & IP Routing July 28, 2018 Dr. Ram P Rustagi Professor, CSE Dept KSIT, Bangalore rprustagi@ksit.edu.in Resources https://rprustagi.com/elnt/experiential- Learning.html

More information

Experiential Learning Workshop on Basics of Network Layer

Experiential Learning Workshop on Basics of Network Layer Experiential Learning Workshop on Basics of Network Layer July 03, 2018 Dr. Ram P Rustagi Professor, CSE Dept KSIT, Bangalore rprustagi@ksit.edu.in Resources & Acknowledgements Resources https://rprustagi.com/elnt/experiential-

More information

NT1210 Introduction to Networking. Unit 10

NT1210 Introduction to Networking. Unit 10 NT1210 Introduction to Networking Unit 10 Chapter 10, TCP/IP Transport Objectives Identify the major needs and stakeholders for computer networks and network applications. Compare and contrast the OSI

More information

Chapter 3 Transport Layer

Chapter 3 Transport Layer Chapter 3 Transport Layer All material copyright 1996-2016 J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down Approach 7 th edition Jim Kurose, Keith Ross Pearson/Addison Wesley

More information

Computer Networks. (Intensive Learning Experience) July 03, 2018

Computer Networks. (Intensive Learning Experience) July 03, 2018 Computer Networks (Intensive Learning Experience) July 03, 2018 Dr. Ram P Rustagi Dept of CSE KSIT, Bangalore rprustagi@ksit.edu.in http://www.rprustagi.com!1 Executive Summary Why ILE Covering employability

More information

10 minutes survey (anonymous)

10 minutes survey (anonymous) 10 minutes survey (anonymous) v Comments/Suggestions to my lecture/lab/ homework/exam v If you like this course, which part do you like? v If you don t like it, which part do you not like? Thanks! Transport

More information

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 9

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 9 CMPE 150/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 9 1 Chapter 3 outline 3.1 transport-layer services 3.2 multiplexing and demultiplexing 3.3

More information

Chapter 3 Transport Layer

Chapter 3 Transport Layer Chapter 3 Transport Layer A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see the animations;

More information

CSC 401 Data and Computer Communications Networks

CSC 401 Data and Computer Communications Networks CSC 401 Data and Computer Communications Networks Transport Layer Connection Oriented Transport: TCP Sec 3.5 Prof. Lina Battestilli Fall 2017 Transport Layer Chapter 3 Outline 3.1 Transport-layer Services

More information

Chapter 3 Transport Layer

Chapter 3 Transport Layer Chapter 3 Transport Layer Part b Connection-Oriented Transport Transport Layer 3-1 Chapter 3 outline 3.1 transport-layer services 3.2 multiplexing and demultiplexing 3.3 connectionless transport: UDP 3.4

More information

Computer Networking Introduction

Computer Networking Introduction Computer Networking Introduction Halgurd S. Maghdid Software Engineering Department Koya University-Koya, Kurdistan-Iraq Lecture No.10 Chapter 3 outline 3.1 transport-layer services 3.2 multiplexing and

More information

Experiential Learning Workshop on Basics of Socket Programming

Experiential Learning Workshop on Basics of Socket Programming Experiential Learning Workshop on Basics of Socket June 28, 2018 Dr. Ram P Rustagi Professor, CSE Dept KSIT, Bangalore rprustagi@ksit.edu.in Resources https://rprustagi.com/elnt/experiential- Learning.html

More information

Chapter III: Transport Layer

Chapter III: Transport Layer Chapter III: Transport Layer UG3 Computer Communications & Networks (COMN) Mahesh Marina mahesh@ed.ac.uk Slides thanks to Myungjin Lee and copyright of Kurose and Ross TCP: Overview RFCs: 793,1122,1323,

More information

Lecture 12: Transport Layer TCP again

Lecture 12: Transport Layer TCP again Lecture 12: Transport Layer TCP again COMP 332, Spring 2018 Victoria Manfredi Acknowledgements: materials adapted from Computer Networking: A Top Down Approach 7 th edition: 1996-2016, J.F Kurose and K.W.

More information

Chapter 3 outline. 3.5 connection-oriented transport: TCP segment structure reliable data transfer flow control connection management

Chapter 3 outline. 3.5 connection-oriented transport: TCP segment structure reliable data transfer flow control connection management Chapter 3 outline 3.1 transport-layer services 3.2 multiplexing and demultiplexing 3.3 connectionless transport: UDP 3.4 principles of reliable data transfer 3.5 connection-oriented transport: TCP segment

More information

Different Layers Lecture 20

Different Layers Lecture 20 Different Layers Lecture 20 10/15/2003 Jian Ren 1 The Network Layer 10/15/2003 Jian Ren 2 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every host,

More information

Suprakash Datta. Office: CSEB 3043 Phone: ext Course page:

Suprakash Datta. Office: CSEB 3043 Phone: ext Course page: CSE 3214: Computer Networks Protocols and Applications Suprakash Datta datta@cse.yorku.ca Office: CSEB 3043 Phone: 416-736-2100 ext 77875 Course page: http://www.cse.yorku.ca/course/3214 These slides are

More information

Chapter 3- parte B outline

Chapter 3- parte B outline Chapter 3- parte B outline 3.1 transport-layer services 3.2 multiplexing and demultiplexing 3.3 connectionless transport: UDP 3.4 principles of reliable data transfer 3.5 connection-oriented transport:

More information

TCP reliable data transfer. Chapter 3 outline. TCP sender events: TCP sender (simplified) TCP: retransmission scenarios. TCP: retransmission scenarios

TCP reliable data transfer. Chapter 3 outline. TCP sender events: TCP sender (simplified) TCP: retransmission scenarios. TCP: retransmission scenarios Chapter 3 outline TCP reliable 3.2 principles of reliable 3.3 connection-oriented flow 3.4 principles of congestion 3.5 TCP congestion TCP creates rdt service on top of IP s unreliable service pipelined

More information

CS 4390 Computer Networks. Pointers to Corresponding Section of Textbook

CS 4390 Computer Networks. Pointers to Corresponding Section of Textbook CS 4390 Computer Networks UT D application transport network data link physical Session 10 Transmission Control Protocol (TCP) An Overview Adapted from Computer Networking a Top-Down Approach 1996-2012

More information

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link. Internet Layers Application Application Transport Transport Network Network Network Network Link Link Link Link Ethernet Fiber Optics Physical Layer Wi-Fi ARP requests and responses IP: 192.168.1.1 MAC:

More information

Application. Transport. Network. Link. Physical

Application. Transport. Network. Link. Physical Transport Layer ELEC1200 Principles behind transport layer services Multiplexing and demultiplexing UDP TCP Reliable Data Transfer TCP Congestion Control TCP Fairness *The slides are adapted from ppt slides

More information

CSE 4213: Computer Networks II

CSE 4213: Computer Networks II Next CSE 4213: Computer Networks II The layer Suprakash Datta datta@cs.yorku.ca Office: CSEB 3043 Phone: 416-736-2100 ext 77875 Course page: http://www.cs.yorku.ca/course/4213 These slides are adapted

More information

ENEE 457: Computer Systems Security 11/07/16. Lecture 18 Computer Networking Basics

ENEE 457: Computer Systems Security 11/07/16. Lecture 18 Computer Networking Basics ENEE 457: Computer Systems Security 11/07/16 Lecture 18 Computer Networking Basics Charalampos (Babis) Papamanthou Department of Electrical and Computer Engineering University of Maryland, College Park

More information

UDP and TCP. Introduction. So far we have studied some data link layer protocols such as PPP which are responsible for getting data

UDP and TCP. Introduction. So far we have studied some data link layer protocols such as PPP which are responsible for getting data ELEX 4550 : Wide Area Networks 2015 Winter Session UDP and TCP is lecture describes the two most common transport-layer protocols used by IP networks: the User Datagram Protocol (UDP) and the Transmission

More information

Exercises: Basics of Network Layer Experiential Learning Workshop

Exercises: Basics of Network Layer Experiential Learning Workshop Exercises: Basics of Network Layer Experiential Learning Workshop 1 General Guidelines 1. Make a team of two or three unless stated otherwise. 2. For each exercise, use wireshark capture to verify contents

More information

CSE/EE 461 Lecture 13 Connections and Fragmentation. TCP Connection Management

CSE/EE 461 Lecture 13 Connections and Fragmentation. TCP Connection Management CSE/EE 461 Lecture 13 Connections and Fragmentation Tom Anderson tom@cs.washington.edu Peterson, Chapter 5.2 TCP Connection Management Setup assymetric 3-way handshake Transfer sliding window; data and

More information

TCP: Overview RFCs: 793,1122,1323, 2018, 2581

TCP: Overview RFCs: 793,1122,1323, 2018, 2581 TCP: Overview RFCs: 793,1122,1323, 2018, 2581 point-to-point: one sender, one receiver reliable, in-order byte steam: no message boundaries pipelined: TCP congestion and flow control set window size full

More information

TCP (Part 2) Session 10 INST 346 Technologies, Infrastructure and Architecture

TCP (Part 2) Session 10 INST 346 Technologies, Infrastructure and Architecture TCP (Part 2) Session 10 INST 346 Technologies, Infrastructure and Architecture Muddiest Points Reading pseudocode Reading finite state diagrams What parts of rdt are in TCP? Goals for Today Finish up TCP

More information

Chapter 3: Transport Layer. Chapter 3 Transport Layer. Chapter 3 outline. Transport services and protocols

Chapter 3: Transport Layer. Chapter 3 Transport Layer. Chapter 3 outline. Transport services and protocols Chapter 3 Transport Layer A note on the use of these ppt slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you can add, modify, and delete

More information

CSE 4/589 Midterm Review. Hengtong Zhang SUNY Buffalo 10/30/2018

CSE 4/589 Midterm Review. Hengtong Zhang SUNY Buffalo 10/30/2018 CSE 4/589 Midterm Review Hengtong Zhang SUNY Buffalo 10/30/2018 Chapter 1 overview: what s the Internet? what s a protocol? network edge; hosts, access net, physical media network core: packet/circuit

More information

Lecture 08: The Transport Layer (Part 2) The Transport Layer Protocol (TCP) Dr. Anis Koubaa

Lecture 08: The Transport Layer (Part 2) The Transport Layer Protocol (TCP) Dr. Anis Koubaa NET 331 Computer Networks Lecture 08: The Transport Layer (Part 2) The Transport Layer Protocol (TCP) Dr. Anis Koubaa Reformatted slides from textbook Computer Networking a top-down appraoch, Fifth Edition

More information

NWEN 243. Networked Applications. Layer 4 TCP and UDP

NWEN 243. Networked Applications. Layer 4 TCP and UDP NWEN 243 Networked Applications Layer 4 TCP and UDP 1 About the second lecturer Aaron Chen Office: AM405 Phone: 463 5114 Email: aaron.chen@ecs.vuw.ac.nz Transport layer and application layer protocols

More information

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 10

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 10 CMPE 150/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 10 1 Midterm exam Midterm next Thursday Close book but one-side 8.5"x11" note is allowed (must

More information

CS 4390 Computer Networks. Transport Services and Protocols

CS 4390 Computer Networks. Transport Services and Protocols CS 4390 Computer Networks UT D data Session 07 Transport Layer Overview and UDP Adapted from Computer Networking a Top-Down Approach 1996-2012 by J.F Kurose and K.W. Ross, All Rights Reserved Transport

More information

CSC 401 Data and Computer Communications Networks

CSC 401 Data and Computer Communications Networks CSC 401 Data and Computer Communications Networks Transport Layer Intro, Mutliplexing/Demultiplexing, UDP Sec 3.1 3.4 Prof. Lina Battestilli Fall 2017 Chapter 3: Transport Layer our goals: understand principles

More information

Chapter III: Transport Layer

Chapter III: Transport Layer Chapter III: Transport Layer UG3 Computer Communications & Networks (COMN) Myungjin Lee myungjin.lee@ed.ac.uk Slides copyright of Kurose and Ross TCP: Overview RFCs: 793,1122,1323, 2018, 2581 point-to-point:

More information

Transport Layer. Chapter 3: Transport Layer

Transport Layer. Chapter 3: Transport Layer Transport Layer EECS 3214 Slides courtesy of J.F Kurose and K.W. Ross, All Rights Reserved 29-Jan-18 1-1 Chapter 3: Transport Layer our goals: understand principles behind layer services: multiplexing,

More information

Chapter 6 Transport Layer

Chapter 6 Transport Layer Chapter 6 Transport Layer A note on the use of these ppt slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you can add, modify, and delete

More information

Exercises: Basics of Networking II Experiential Learning Workshop

Exercises: Basics of Networking II Experiential Learning Workshop Exercises: Basics of Networking II Experiential Learning Workshop 1 General Guidelines 1. Make a team of two or three unless stated otherwise. 2. For each exercise, use wireshark capture to verify contents

More information

Chapter 3 Transport Layer

Chapter 3 Transport Layer Chapter 3 Transport Layer Lec 8: Transport Layer Service Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 All material copyright 1996-2012 J.F Kurose

More information

ARP, IP, TCP, UDP. CS 166: Introduction to Computer Systems Security 4/7/18 ARP, IP, TCP, UDP 1

ARP, IP, TCP, UDP. CS 166: Introduction to Computer Systems Security 4/7/18 ARP, IP, TCP, UDP 1 ARP, IP, TCP, UDP CS 166: Introduction to Computer Systems Security 4/7/18 ARP, IP, TCP, UDP 1 IP and MAC Addresses Devices on a local area network have IP addresses (network layer) MAC addresses (data

More information

CSC 4900 Computer Networks: TCP

CSC 4900 Computer Networks: TCP CSC 4900 Computer Networks: TCP Professor Henry Carter Fall 2017 Project 2: mymusic You will be building an application that allows you to synchronize your music across machines. The details of which are

More information

CSCE 463/612 Networks and Distributed Processing Spring 2018

CSCE 463/612 Networks and Distributed Processing Spring 2018 CSCE 463/612 Networks and Distributed Processing Spring 2018 Transport Layer Dmitri Loguinov Texas A&M University February 22, 2018 Original slides copyright 1996-2004 J.F Kurose and K.W. Ross 1 Chapter

More information

Lecture 5. Transport Layer. Transport Layer 1-1

Lecture 5. Transport Layer. Transport Layer 1-1 Lecture 5 Transport Layer Transport Layer 1-1 Agenda The Transport Layer (TL) Introduction to TL Protocols and Services Connectionless and Connection-oriented Processes in TL Unreliable Data Transfer User

More information

TSIN02 - Internetworking

TSIN02 - Internetworking Lecture 4: Outline Literature: Lecture 4: Transport Layer Forouzan: ch 11-12 RFC? Transport layer introduction UDP TCP 2004 Image Coding Group, Linköpings Universitet 2 The Transport Layer Transport layer

More information

Transport layer. UDP: User Datagram Protocol [RFC 768] Review principles: Instantiation in the Internet UDP TCP

Transport layer. UDP: User Datagram Protocol [RFC 768] Review principles: Instantiation in the Internet UDP TCP Transport layer Review principles: Reliable data transfer Flow control Congestion control Instantiation in the Internet UDP TCP 1 UDP: User Datagram Protocol [RFC 768] No frills, bare bones Internet transport

More information

Transport layer. Review principles: Instantiation in the Internet UDP TCP. Reliable data transfer Flow control Congestion control

Transport layer. Review principles: Instantiation in the Internet UDP TCP. Reliable data transfer Flow control Congestion control Transport layer Review principles: Reliable data transfer Flow control Congestion control Instantiation in the Internet UDP TCP 1 UDP: User Datagram Protocol [RFC 768] No frills, bare bones Internet transport

More information

CS118 Discussion 1A, Week 4. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

CS118 Discussion 1A, Week 4. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m. CS118 Discussion 1A, Week 4 Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m. 1 Outline Lecture review: Transport layer Project Questions? Midterm logistics 2 Stop and Wait Protocol Main Issue: limited

More information

TSIN02 - Internetworking

TSIN02 - Internetworking Lecture 4: Transport Layer Literature: Forouzan: ch 11-12 2004 Image Coding Group, Linköpings Universitet Lecture 4: Outline Transport layer responsibilities UDP TCP 2 Transport layer in OSI model Figure

More information

rdt3.0: channels with errors and loss

rdt3.0: channels with errors and loss rdt3.0: channels with errors and loss new assumption: underlying channel can also lose packets (data, ACKs) checksum, seq. #, ACKs, retransmissions will be of help but not enough approach: sender waits

More information

TSIN02 - Internetworking

TSIN02 - Internetworking Lecture 4: Transport Layer Literature: Forouzan: ch 11-12 2004 Image Coding Group, Linköpings Universitet Lecture 4: Outline Transport layer responsibilities UDP TCP 2 Transport layer in OSI model Figure

More information

Internet and Intranet Protocols and Applications

Internet and Intranet Protocols and Applications Internet and Intranet Protocols and Applications Lecture 1b: The Transport Layer in the Internet January 17, 2006 Arthur Goldberg Computer Science Department New York University artg@cs.nyu.edu 01/17/06

More information

Lecture 9: Transpor Layer Overview and UDP

Lecture 9: Transpor Layer Overview and UDP Lecture 9: Transpor Layer Overview and UDP COMP 332, Spring 2018 Victoria Manfredi Acknowledgements: materials adapted from Computer Networking: A Top Down Approach 7 th edition: 1996-2016, J.F Kurose

More information

Connections. Topics. Focus. Presentation Session. Application. Data Link. Transport. Physical. Network

Connections. Topics. Focus. Presentation Session. Application. Data Link. Transport. Physical. Network Connections Focus How do we connect processes? This is the transport layer Topics Naming processes Connection setup / teardown Flow control Application Presentation Session Transport Network Data Link

More information

TSIN02 - Internetworking

TSIN02 - Internetworking TSIN02 - Internetworking Literature: Lecture 4: Transport Layer Forouzan: ch 11-12 Transport layer responsibilities UDP TCP 2004 Image Coding Group, Linköpings Universitet 2 Transport layer in OSI model

More information

ICS 451: Today's plan

ICS 451: Today's plan ICS 451: Today's plan ICMP ping traceroute ARP DHCP summary of IP processing ICMP Internet Control Message Protocol, 2 functions: error reporting (never sent in response to ICMP error packets) network

More information

internet technologies and standards

internet technologies and standards Institute of Telecommunications Warsaw University of Technology 2017 internet technologies and standards Piotr Gajowniczek Andrzej Bąk Michał Jarociński Transport Layer The majority of slides presented

More information

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. ** Slides are attributed to J. F.

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. ** Slides are attributed to J. F. CSEN 503 Introduction to Communication Networks Mervat AbuElkheir Hana Medhat Ayman Dayf ** Slides are attributed to J. F. Kurose Chapter 3 outline Transport-layer services Multiplexing and demultiplexing

More information

Chapter 4 Network Layer

Chapter 4 Network Layer Chapter 4 Network Layer Reti degli Elaboratori Canale AL Prof.ssa Chiara Petrioli a.a. 2014/2015 We thank for the support material Prof. Kurose-Ross All material copyright 1996-2012 J.F Kurose and K.W.

More information

Pipelined protocols: overview

Pipelined protocols: overview Pipelined protocols: overview Go-back-N: sender can have up to N unacked packets in pipeline receiver only sends cumulative ack doesn t ack packet if there s a gap sender has timer for oldest unacked packet

More information

Chapter 3 Transport Layer

Chapter 3 Transport Layer Chapter 3 Transport Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Slides adopted from original ones provided by the textbook authors. Transport

More information

Chapter 3 Transport Layer

Chapter 3 Transport Layer Chapter 3 Transport Layer A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see the animations;

More information

CSC 401 Data and Computer Communications Networks

CSC 401 Data and Computer Communications Networks CSC 401 Data and Computer Communications Networks Transport Layer TCP Connection Management & Congestion Control Sec 3.6 and 3.7 Prof. Lina Battestilli Fall 2017 Transport Layer Chapter 3 Outline 3.1 Transport-layer

More information

Network Layer: Router Architecture, IP Addressing

Network Layer: Router Architecture, IP Addressing Network Layer: Router Architecture, IP Addressing UG3 Computer Communications & Networks (COMN) Mahesh Marina mahesh@ed.ac.uk Slides thanks to Myungjin Lee and copyright of Kurose and Ross Router Architecture

More information

User Datagram Protocol

User Datagram Protocol Topics Transport Layer TCP s three-way handshake TCP s connection termination sequence TCP s TIME_WAIT state TCP and UDP buffering by the socket layer 2 Introduction UDP is a simple, unreliable datagram

More information

RSC Part III: Transport Layer 3. TCP

RSC Part III: Transport Layer 3. TCP RSC Part III: Transport Layer 3. TCP Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are, mainly, part of the companion slides to the book Computer Networking: A Top Down

More information

CS Lecture 1 Review of Basic Protocols

CS Lecture 1 Review of Basic Protocols CS 557 - Lecture 1 Review of Basic Protocols IP - RFC 791, 1981 TCP - RFC 793, 1981 Spring 2013 These slides are a combination of two great sources: Kurose and Ross Textbook slides Steve Deering IETF Plenary

More information

internet technologies and standards

internet technologies and standards Institute of Telecommunications Warsaw University of Technology 2017 internet technologies and standards Piotr Gajowniczek Andrzej Bąk Michał Jarociński Transport Layer The majority of slides presented

More information

CS4700/CS5700 Fundamentals of Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks CS4700/CS5700 Fundamentals of Computer Networks Lecture 14: TCP Slides used with permissions from Edward W. Knightly, T. S. Eugene Ng, Ion Stoica, Hui Zhang Alan Mislove amislove at ccs.neu.edu Northeastern

More information

Chapter 1 Introduction

Chapter 1 Introduction Reiew for Midterm Chapter 1 Introduction Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Slides adopted from original ones proided by the textbook

More information

TCP/IP Networking. Part 4: Network and Transport Layer Protocols

TCP/IP Networking. Part 4: Network and Transport Layer Protocols TCP/IP Networking Part 4: Network and Transport Layer Protocols Orientation Application Application protocol Application TCP TCP protocol TCP IP IP protocol IP IP protocol IP IP protocol IP Network Access

More information

Chapter III: Transport Layer

Chapter III: Transport Layer Chapter III: Transport Layer UG3 Computer Communications & Networks (COMN) Mahesh Marina mahesh@ed.ac.uk Slides thanks to Myungjin Lee and copyright of Kurose and Ross Transport services and protocols

More information

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet Chapter 2 - Part 1 The TCP/IP Protocol: The Language of the Internet Protocols A protocol is a language or set of rules that two or more computers use to communicate 2 Protocol Analogy: Phone Call Parties

More information

Course on Computer Communication and Networks. Lecture 5 Chapter 3; Transport Layer, Part B

Course on Computer Communication and Networks. Lecture 5 Chapter 3; Transport Layer, Part B Course on Computer Communication and Networks Lecture 5 Chapter 3; Transport Layer, Part B EDA344/DIT 423, CTH/GU Based on the book Computer Networking: A Top Down Approach, Jim Kurose, Keith Ross, Addison-Wesley.

More information

The Transport Layer: TCP & Reliable Data Transfer

The Transport Layer: TCP & Reliable Data Transfer The Transport Layer: TCP & Reliable Data Transfer Smith College, CSC 249 February 15, 2018 1 Chapter 3: Transport Layer q TCP Transport layer services: v Multiplexing/demultiplexing v Connection management

More information

CSC358 Week 5. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

CSC358 Week 5. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved CSC358 Week 5 Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright 1996-2016 J.F Kurose and K.W. Ross, All Rights Reserved Recap: Reliable Data Transfer rdt3.0 stop-and-wait checksum

More information

Announcement. Homework 1 due last night, how is that? Will discuss some problems in the lecture next week

Announcement. Homework 1 due last night, how is that? Will discuss some problems in the lecture next week Announcement Homework 1 due last night, how is that? Will discuss some problems in the lecture next week Should have completed at least part II of project 1 Homework 2 will be out next week Review of Previous

More information

TCP / IP-TCP/UDP. Agenda. TCP/IP Protocol Family. Agenda. Overview of Transport Layer. Network Information Center BUPT Nov./2010

TCP / IP-TCP/UDP. Agenda. TCP/IP Protocol Family. Agenda. Overview of Transport Layer. Network Information Center BUPT Nov./2010 Agenda / IP-/UDP Network Information Center BUPT Nov./2010 /IP protocol stack Principles behind transport layer services Addressing Multiplexing Transport layer protocols in the Internet UDP: connectionless

More information

Chapter 3 outline. Chapter 3: Transport Layer. Transport vs. network layer. Transport services and protocols. Internet transport-layer protocols

Chapter 3 outline. Chapter 3: Transport Layer. Transport vs. network layer. Transport services and protocols. Internet transport-layer protocols Chapter 3: Transport Layer our goals: understand principles behind transport layer : multiplexing, demultiplexing congestion control learn about Internet transport layer protocols: UDP: connectionless

More information

Introduction to Networking. Operating Systems In Depth XXVII 1 Copyright 2017 Thomas W. Doeppner. All rights reserved.

Introduction to Networking. Operating Systems In Depth XXVII 1 Copyright 2017 Thomas W. Doeppner. All rights reserved. Introduction to Networking Operating Systems In Depth XXVII 1 Copyright 2017 Thomas W. Doeppner. All rights reserved. Distributed File Systems Operating Systems In Depth XXVII 2 Copyright 2017 Thomas W.

More information

COMP211 Chapter 3 Transport Layer

COMP211 Chapter 3 Transport Layer COMP211 Chapter 3 Transport Layer All material copyright 1996-2016 J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down Approach 7 th edition Jim Kurose, Keith Ross Pearson/Addison

More information

Chapter 3 Transport Layer

Chapter 3 Transport Layer Chapter 3 Transport Layer A note on the use of these ppt slides: We re making these slides freely aailable to all (faculty, students, readers). They re in PowerPoint form so you see the animations; and

More information

Development of reliable protocol Sliding window protocols. C = channel capacity in bps I = interrupt/service time + propagation delay

Development of reliable protocol Sliding window protocols. C = channel capacity in bps I = interrupt/service time + propagation delay Outline Development of reliable protocol Sliding window protocols Go-Back-N, Selective Repeat Protocol performance Sockets, UDP, TCP, and IP UDP operation TCP operation connection management flow control

More information

Lecture 3: The Transport Layer: UDP and TCP

Lecture 3: The Transport Layer: UDP and TCP Lecture 3: The Transport Layer: UDP and TCP Prof. Shervin Shirmohammadi SITE, University of Ottawa Prof. Shervin Shirmohammadi CEG 4395 3-1 The Transport Layer Provides efficient and robust end-to-end

More information

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers Layer 4: UDP, TCP, and others based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers Concepts application set transport set High-level, "Application Set" protocols deal only with how handled

More information

CSC358 Week 4. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

CSC358 Week 4. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved CSC358 Week 4 Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright 1996-2016 J.F Kurose and K.W. Ross, All Rights Reserved Logistics Assignment 1 due this Friday Office hour on Feb

More information

Transport Layer: outline

Transport Layer: outline Transport Layer: outline Transport-layer services Multiplexing and demultiplexing Connectionless transport: UDP Principles of reliable data transfer Connection-oriented transport: TCP Segment structure

More information

Correcting mistakes. TCP: Overview RFCs: 793, 1122, 1323, 2018, TCP seq. # s and ACKs. GBN in action. TCP segment structure

Correcting mistakes. TCP: Overview RFCs: 793, 1122, 1323, 2018, TCP seq. # s and ACKs. GBN in action. TCP segment structure Correcting mistakes Go-back-N: big picture: sender can have up to N unacked packets in pipeline rcvr only sends cumulative acks doesn t ack packet if there s a gap sender has r for oldest unacked packet

More information

Introduction to Internetworking

Introduction to Internetworking Introduction to Internetworking Introductory terms Communications Network Facility that provides data transfer services An internet Collection of communications networks interconnected by bridges and/or

More information

Transport Layer. CMPS 4750/6750: Computer Networks

Transport Layer. CMPS 4750/6750: Computer Networks Transport Layer CMPS 4750/6750: Computer Networks 1 Outline Overview of transport-layer services Connectionless Transport: UDP Principles of reliable data transfer Connection-Oriented Transport: TCP TCP

More information

Fall 2012: FCM 708 Bridge Foundation I

Fall 2012: FCM 708 Bridge Foundation I Fall 2012: FCM 708 Bridge Foundation I Prof. Shamik Sengupta Instructor s Website: http://jjcweb.jjay.cuny.edu/ssengupta/ Blackboard Website: https://bbhosted.cuny.edu/ Intro to Computer Networking Transport

More information

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen Lecture 4 - Network Layer Networks and Security Jacob Aae Mikkelsen IMADA September 23, 2013 September 23, 2013 1 / 67 Transport Layer Goals understand principles behind network layer services: network

More information

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting Quiz v 10/30/2013 (Wednesday), 20 mins v Midterm question (available on website) v TCP basics Segment structure and fields Flow control (rwnd) Timeout interval v TCP Congestion control Phases transition

More information

Transport Layer (TCP/UDP)

Transport Layer (TCP/UDP) Transport Layer (TCP/UDP) Where we are in the Course Moving on up to the Transport Layer! Application Transport Network Link Physical CSE 461 University of Washington 2 Recall Transport layer provides

More information

CSC 401 Data and Computer Communications Networks

CSC 401 Data and Computer Communications Networks CSC 401 Data and Computer Communications Networks Network Layer IPv4, Format and Addressing,, IPv6 Prof. Lina Battestilli Fall 2017 Chapter 4 Outline Network Layer: Data Plane 4.1 Overview of Network layer

More information

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview Chapter 4: chapter goals: understand principles behind services service models forwarding versus routing how a router works generalized forwarding instantiation, implementation in the Internet 4- Network

More information

Transport Layer: Outline

Transport Layer: Outline Transport Layer: Outline Transport-layer services Multiplexing and demultiplexing Connectionless transport: UDP Principles of reliable data transfer Connection-oriented transport: TCP Segment structure

More information

internet technologies and standards

internet technologies and standards Institute of Telecommunications Warsaw University of Technology 2017 internet technologies and standards Piotr Gajowniczek Andrzej Bąk Michał Jarociński Network Layer The majority of slides presented in

More information

CSCD 330 Network Programming

CSCD 330 Network Programming CSCD 330 Network Programming Lecture 9 Transport Layer Winter 2019 Reading: Begin Chapter 3 Some Material in these slides from J.F Kurose and K.W. Ross All material copyright 1996-2007 1 Outline Overview

More information