Computer Networking TCP/IP Part 2

Slides:



Advertisements
Similar presentations
CCNA – Network Fundamentals
Advertisements

CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
CSE331: Introduction to Networks and Security Lecture 10 Fall 2002.
CS Summer 2003 CS672: MPLS Architecture, Applications and Fault-Tolerance.
1 Interdomain Routing Protocols. 2 Autonomous Systems An autonomous system (AS) is a region of the Internet that is administered by a single entity and.
Routing.
Border Gateway Protocol (BGP). 2 CORE, PEERs Autonomous Systems BGP Basic Operations The BGP Routing Process.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
Transport Layer TCP and UDP IS250 Spring 2010
Gursharan Singh Tatla Transport Layer 16-May
Process-to-Process Delivery:
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Chapter 8 Communication Networks and Services Internet Routing Protocols DHCP, NAT, and Mobile IP.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
Border Gateway Protocol
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
Network Layer4-1 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
The Internet Network layer
1 Chapter 14-16a Internet Routing Review. Chapter 14-16: Internet Routing Review 2 Introduction Motivation: Router performance is critical to overall.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI transport layer CCNA Exploration Semester 1 – Chapter 4.
1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Homework 4 Out: Fri 2/24/2017 In: Fri 3/10/2017.
Introduction to Networks
Chapter 4: Network Layer
NAT – Network Address Translation
Dynamic Routing Protocols II OSPF
Border Gateway Protocol
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
CMPT 371 Data Communications and Networking Routing in the Internet
CS 3700 Networks and Distributed Systems
5. End-to-end protocols (part 1)
Border Gateway Protocol
OSPF (Open Shortest Path First)
Transport Layer.
Process-to-Process Delivery, TCP and UDP protocols
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
ICMP ICMP – Internet Control Message Protocol
Chapter 4: Network Layer
PART 5 Transport Layer Computer Networks.
BGP supplement Abhigyan Sharma.
TCP Transport layer Er. Vikram Dhiman LPU.
Introduction to Networks
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Routing.
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Dynamic Routing Protocols II OSPF
Process-to-Process Delivery:
Department of Computer and IT Engineering University of Kurdistan
Chapter 4: Network Layer
Chapter 4: Network Layer
CPEG514 Advanced Computer Networkst
Chapter 4: Network Layer
PART 5 Transport Layer.
Transport Protocols: TCP Segments, Flow control and Connection Setup
Transport Protocols: TCP Segments, Flow control and Connection Setup
Process-to-Process Delivery: UDP, TCP
Computer Networks Protocols
Routing.
Network Layer: Internet Inter-Domain Routing
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Layer 9/22/2019.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Presentation transcript:

Computer Networking TCP/IP Part 2 Dr Sandra I. Woolley

Contents TCP/IP Part 2 Transport Layer Protocols: UDP and TCP Internet Routing Protocols: Interior Gateway Protocol (IGP) Exterior Gateway Protocol (EGP) Open Shortest Path First (OSPF) Border Gateway Protocol DHCP

Transport Layer Protocols: UDP and TCP

UDP – User Datagram Protocol Best effort datagram service Simple transmitter and receiver Connectionless: no handshaking and no connection state Low header overhead No flow control, no error control, no congestion control UDP datagrams can be lost or out-of-order Applications multimedia (e.g. RTP) network services (e.g. DNS, SNMP)

UDP Datagram Source and destination port numbers 0-255 Well-known ports 256-1,023 Less well-known ports 1,024-65,536 Ephemeral client ports Source and destination port numbers Client ports are ephemeral Server ports are well-known Max number is 65,535 UDP length Total number of bytes in datagram (including header) 8 bytes ≤ length ≤ 65,535 UDP Checksum Optionally detects errors in UDP datagram (all 0's if not used) Source Port Destination Port UDP Length UDP Checksum Data 0 16 31

TCP – Transmission Control Protocol Reliable byte-stream service More complex transmitter and receiver Connection-oriented: full-duplex unicast connection between client and server processes Connection setup, connection state, connection release Higher header overhead Error control, flow control, and congestion control Higher delay than UDP Most applications use TCP HTTP, SMTP, FTP, POP3, …

TCP Segment Format Source port Destination port Sequence number Acknowledgment number Checksum Urgent pointer Options Padding 0 4 10 16 24 31 U R G A C K P S H T Y N F I Header length Reserved Window size Data Each TCP segment has header of 20 or more bytes + 0 or more bytes of data

TCP Header Port Numbers A socket address identifies a connection endpoint IP address + port A connection is specified by a socket address pair. Well-known ports FTP 20 DNS 53 HTTP 80 Sequence Number Byte count First byte in segment. Initial sequence number is selected during connection setup.

Initial Sequence Number Select initial sequence numbers (ISN) to avoid overlap with segments from prior connections that may circulate in the network and arrive at a later time.

TCP Connection Establishment “Three-way Handshake” Initial sequence numbers (ISN) chosen to protect against segments from prior connections Host A Host B SYN, Seq_no = x SYN, Seq_no = y, ACK, Ack_no = x+1 Seq_no = x+1, ACK, Ack_no = y+1

If Host Always Uses the Same ISN Host B SYN, Seq_no = n, ACK, Ack_no = n+1 Seq_no = n+1, ACK, Ack_no = n+1 Delayed segment with Seq_no = n+2 will be accepted

Maximum Segment Size Maximum Segment Size (MSS) largest block of data that TCP sends to other end. Each end can announce its MSS during connection establishment. Default is 576 bytes including 20 bytes for IP header and 20 bytes for TCP header. Ethernet implies MSS of 1,460 bytes. IEEE 802.3 implies 1,452

TCP Connection Closing “Graceful Close” Acknowledge FIN statements FIN, seq = 5086 Ack = 5087 Data, seq. = 303, Ack=5087 Delivers data bytes FIN, seq. =453, Ack = 5087 Ack = 454 Host A Host B Ack = 453

Internet Routing Protocols

Routing and Forwarding How to determine the routing table entries carried out by routing daemon Forwarding Look up routing table and forward packet from input to output port carried out by IP layer Routers exchange information using routing protocols to develop the routing tables.

Autonomous Systems Global Internet viewed as collection of autonomous systems. Autonomous system (AS) is a set of routers or networks administered by a single organization. Same routing protocol need not be run within the AS. But, to the outside world, an AS should present a consistent picture of what ASs are reachable through it. Stub AS: has only a single connection to the outside world. Multihomed AS: has multiple connections to the outside world, but refuses to carry transit traffic Transit AS: has multiple connections to the outside world, and can carry transit and local traffic.

Inter and Intra Domain Routing Interior Gateway Protocol (IGP): routing within AS RIP, OSPF Exterior Gateway Protocol (EGP): routing between AS’s BGPv4 Border Gateways perform IGP & EGP routing IGP R EGP IGP R R R R R AS A AS C R R IGP AS B

Open Shortest Path First (OSPF) RFC 2328 (v2) Enables each router to learn complete network topology. Each router monitors the link state to each neighbour and floods the link-state information to other routers. Each router builds an identical link-state database. Allows router to build shortest path tree with itself as root. OSPF typically converges fast when there is a failure in the network. To improve scalability, AS may be partitioned into areas Area is identified by 32-bit Area ID Router in area only knows complete topology inside area and limits the flooding of link-state information to area. Area border routers summarize info from other areas.

OSPF Protocol OSPF packets transmitted directly on IP datagrams; Protocol ID 89 Five OSPF packet types: Hello Database description Link state request; Link state update; Link state ack OSPF Stages Discover neighbours by sending Hello packets (every 10 sec) and designated router elected in multi-access networks. Adjacencies are established and link state databases are synchronized. Link state information is propagated (and updated every 30 mins) & routing tables are calculated.

Exterior Gateway Protocols The Internet is woven into a coherent whole by Exterior Gateway Protocols (EGPs) that operate between AS’s. EGP enables two AS’s to exchange routing information about: The networks that are contained within each AS. The AS’s that can be reached through each AS. EGP path selection is guided by policy rather than path optimality Trust, peering arrangements, etc.

EGP Example AS1 AS2 AS3 R1 R2 R3 R4 N1 EGP routers within an AS, e.g. R3 and R2, are kept consistent. Suppose AS2 is willing to handle transit packets from AS1 to N1. R2 advertises to AS1 the reachability of N1 through AS2. R1 applies its policy to decide whether to send to N1 via AS2. N1 reachable through AS2

Border Gateway Protocol v4 BGP (RFC 1771) is an EGP “routing” protocol to exchange network reachability information among BGP routers (also called BGP speakers.) Network reachability information contains sequence of ASs that packets traverse to reach a destination network. Information exchanged between BGP speakers allows a router to construct a graph of AS connectivity Routing loops can be pruned Routing policy at AS level can be applied AS1 AS2 AS3 AS4 AS5 AS6 AS7

BGP Speaker & AS Relationship BGP speaker: a router running BGP Peers or neighbours: two speakers exchanging information on a connection. BGP peers use TCP (port 179) to exchange messages. Initially, BGP peers exchange entire BGP routing table Incremental updates sent subsequently Reduces bandwidth usage and processing overhead Keepalive messages sent periodically (30 seconds) Internal BGP (iBPG) between BGP routers in same AS. External BGP (eBGP) connections across AS borders.

iBGP & eBGP R iBGP eBGP eBGP to exchange reachability information in different AS’s eBGP peers directly connected iBGP to ensure net reachability information is consistent among the BGP speakers in the same AS

Path Selection Each BGP speaker Evaluates paths to a destination from an AS border router Selects the best path that complies with policies Advertises that route to all BGP neighbours BGP assigns a preference order to each path and selects path with highest value; BGP does not keep a cost metric to any path. When multiple paths to a destination exist, BGP maintains all of the paths, but only advertises the one with highest preference value.

BGP Policy Examples of policy: Never use AS X. Never use AS X to get to a destination in AS Y. Never use AS X and AS Y in the same path. Import policies to accept, deny, or set preferences on route advertisements from neighbours. Export policies to determine which routes should be advertised to which neighbours. A route is advertised only if AS is willing to carry traffic on that route.

Additional Notes

Additional Notes Dynamic Host Configuration Protocol – protocol for assigning IP addresses. Queueing (bookwork basics – what is Little’s formula?) Quality-of-Service.

Thank You