Transport and Network Layers

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which layer in the Internet model is responsible for linking application and network layers?

  • Network Layer
  • Data Link Layer
  • Physical Layer
  • Transport Layer (correct)

In the context of the Internet model, which layer is responsible for the segmentation and reassembly of data?

  • Application Layer
  • Network Layer
  • Transport Layer (correct)
  • Data Link Layer

Which of the following tasks is managed by the transport layer?

  • Addressing messages
  • Routing messages
  • Defining network topologies
  • End-to-end delivery of messages (correct)

What function does the network layer perform in the context of message transmission?

<p>Addressing and routing of messages (D)</p> Signup and view all the answers

Vint Cerf and Bob Kahn originally developed which protocol in 1974?

<p>TCP/IP (D)</p> Signup and view all the answers

Which of the following protocols is commonly used in LANs, WANs, and backbone networks?

<p>TCP/IP (A)</p> Signup and view all the answers

How many bytes of overhead are present in TCP?

<p>20-24 bytes (D)</p> Signup and view all the answers

What is the term used for the Protocol Data Unit (PDU) in TCP?

<p>Segment (C)</p> Signup and view all the answers

Which protocol is used for the reliable transmission of data?

<p>TCP (D)</p> Signup and view all the answers

What is the typical overhead size for UDP?

<p>32-64 bits (C)</p> Signup and view all the answers

When is UDP typically used?

<p>When speed and low overhead are more important than reliability (D)</p> Signup and view all the answers

Which version of the Internet Protocol (IP) is most commonly used?

<p>IP version 4 (IPv4) (B)</p> Signup and view all the answers

How many possible addresses are available in IPv4?

<p>Approximately 4.3 billion (D)</p> Signup and view all the answers

What is the primary reason for the slow adoption of IPv6?

<p>Exhaustion of IPv4 addresses (B)</p> Signup and view all the answers

How many bits long are IPv6 addresses?

<p>128 bits (D)</p> Signup and view all the answers

What is the typical overhead for an IPv4 packet?

<p>20-24 bytes (C)</p> Signup and view all the answers

What is the size of the fixed header in an IPv6 packet?

<p>40 bytes (D)</p> Signup and view all the answers

Which of the following is an optional header in IPv6?

<p>Hop-by-hop options (A)</p> Signup and view all the answers

What is the function of 'ports' in the transport layer?

<p>To identify application (2-byte numbers) (A)</p> Signup and view all the answers

Which port is commonly used for HTTP?

<p>80 (D)</p> Signup and view all the answers

What well-known port is used for HTTPS traffic?

<p>443 (B)</p> Signup and view all the answers

What is the purpose of segmenting large files in the transport layer?

<p>Breaking up large files into smaller segments (and putting them back together) (A)</p> Signup and view all the answers

What does MSS stand for?

<p>Maximum Segment Size (B)</p> Signup and view all the answers

What is the MSS if the maximum size of the data in an Ethernet frame is 1,500 bytes and TCP and IP use 20 byte headers?

<p>1460 bytes (B)</p> Signup and view all the answers

What is another term for connection-oriented messaging?

<p>TCP (D)</p> Signup and view all the answers

What type of messaging is connectionless messaging?

<p>UDP (A)</p> Signup and view all the answers

What is used to open TCP connections?

<p>Three-way handshake (B)</p> Signup and view all the answers

What does ARP stand for in the context of network layer functions?

<p>Address Resolution Protocol (D)</p> Signup and view all the answers

What is indicated by 129.79.78.193?

<p>IP address (D)</p> Signup and view all the answers

What is the purpose of DHCP?

<p>To dynamically assign IP addresses to devices on a network (B)</p> Signup and view all the answers

What is the function of DNS?

<p>Host name resolution (B)</p> Signup and view all the answers

What is the role of a 'router' in a network?

<p>To make routing decisions (B)</p> Signup and view all the answers

Which of the following describes a 'routing table'?

<p>A set of rules used to make decisions about where to direct packets (A)</p> Signup and view all the answers

What is the difference between centralized and decentralized routing?

<p>Centralized routing uses one computer to make routing decisions; decentralized routing distributes decision-making among nodes. (C)</p> Signup and view all the answers

Which type of routing involves manually configuring each router?

<p>Static routing (D)</p> Signup and view all the answers

Which of the following is a characteristic of dynamic routing?

<p>Routing tables are updated periodically. (A)</p> Signup and view all the answers

What is the difference between distance vector and link state dynamic routing algorithms?

<p>Distance vector is based on the number of hops; link state considers the number of hops, circuit speed, and traffic congestion. (D)</p> Signup and view all the answers

Under what circumstances is RIP typically useful?

<p>Smaller, less complex networks (D)</p> Signup and view all the answers

Which routing protocol is best suited for large enterprise networks?

<p>OSPF (D)</p> Signup and view all the answers

Which protocol is specifically designed for inter-domain routing between different autonomous systems?

<p>BGP (A)</p> Signup and view all the answers

What is the purpose of multicast routing?

<p>To send data from one computer to a subset of computers (D)</p> Signup and view all the answers

Flashcards

Transport Layer

Layer 4 in the Internet model, linking application and network layers, responsible for segmentation and end-to-end delivery.

Network Layer

Layer 3 in the Internet model, responsible for addressing and routing messages.

TCP/IP

A suite of communication protocols used to interconnect network devices on the internet.

TCP (Transmission Control Protocol)

The most used transport layer protocol that is a segment and used for reliable transmissions.

Signup and view all the flashcards

UDP (User Datagram Protocol)

Operates at the transport layer. Used in time-sensitive situations or when reliability is handled by the application layer.

Signup and view all the flashcards

IPv4 (Internet Protocol version 4)

Most common version of IP that uses 32-bit addresses.

Signup and view all the flashcards

IPv6 (Internet Protocol version 6)

Uses 128-bit addresses and is slowly being adopted due to IPv4 exhaustion.

Signup and view all the flashcards

Ports

2-byte numbers used to identify an application.

Signup and view all the flashcards

Segmenting

Breaking up large files into smaller segments, then piecing them back together.

Signup and view all the flashcards

Session Management

Conversation that can be had between two computers or creating a virtual circuit.

Signup and view all the flashcards

Connection-oriented messaging (TCP)

Using a session to send data.

Signup and view all the flashcards

Connectionless messaging (UDP)

Sending messages without establishing a session.

Signup and view all the flashcards

Addressing

Used to direct messages from source to destination.

Signup and view all the flashcards

Address Resolution

Addresses translated (resolved) from one layer to another.

Signup and view all the flashcards

Dot-decimal notation

Most common way to write IPv4 addresses using dot-decimal notation.

Signup and view all the flashcards

Dynamic Addressing

Automatically supply IP addresses.

Signup and view all the flashcards

DHCP (Dynamic Host Configuration Protocol)

Most common protocol for dynamic addressing.

Signup and view all the flashcards

Domain Name Service (DNS)

Translates host name to IP address.

Signup and view all the flashcards

ARP (Address Resolution Protocol)

Identify MAC address of the next device in the circuit.

Signup and view all the flashcards

Routing

Process of finding the best path through a network; routers use routing tables.

Signup and view all the flashcards

Routing Tables

Used to make routing decisions.

Signup and view all the flashcards

Centralized Routing

One computer makes all of the routing decisions.

Signup and view all the flashcards

Decentralized Routing

Each node makes routing decisions independently

Signup and view all the flashcards

Dynamic Routing

Routing tables are updated periodically.

Signup and view all the flashcards

Distance Vectoring

Based on the number of hops between two devices.

Signup and view all the flashcards

Link State

Based on the number of hops, circuit speed, and traffic congestion.

Signup and view all the flashcards

RIP (Routing Information Protocol)

Dynamic distance vector protocol used for interior routing.

Signup and view all the flashcards

OSPF (Open Shortest Path First)

Dynamic link state protocol used for interior routing on large enterprise networks.

Signup and view all the flashcards

EIGRP (Enhanced Interior Gateway Routing Protocol)

Dynamic link state protocol developed by Cisco.

Signup and view all the flashcards

BGP (Border Gateway Protocol)

Dynamic distance vector protocol used for exterior routing.

Signup and view all the flashcards

Unicast

One computer to another computer.

Signup and view all the flashcards

Broadcast

One computer to all computers in the network.

Signup and view all the flashcards

Multicast

One computer to a group of computers.

Signup and view all the flashcards

Study Notes

Transport and Network Layers

  • The transport layer is layer 4 in the Internet model and links the application and network layers
  • The transport layer is responsible for segmentation and reassembly and session management
  • The transport layer handles the end-to-end delivery of messages
  • The network layer is layer 3 in the Internet model
  • The network layer is responsible for addressing and routing messages

TCP/IP Protocol

  • Originally developed as a single internetworking protocol in 1974 by Vint Cerf and Bob Kahn
  • TCP/IP was later divided into TCP and IP protocols
  • TCP/IP are the most common protocols on the Internet and in LANs, WANs, and backbone networks

Transport Layer Protocols

  • Transmission Control Protocol (TCP) is the most common transport layer protocol
  • TCP's PDU is called a segment
  • TCP is used for reliable transmission of data, with a 160-192 bit (20-24 byte) overhead
  • The options field in TCP is not always required
  • User Datagram Protocol (UDP) operates at the transport layer
  • UDP's PDU is also called a segment
  • UDP is used in time-sensitive situations and for control messages
  • UDP overhead is 32-64 bits (4-8 bytes)
  • In UDP, the source port is optional in IPv4 and IPv6; Checksum is optional in IPv4

Network Layer Protocols

  • The IPv4 is the most common version of IP used
  • IPv4 uses 32-bit addresses (~4.29 billion possible), but has led to an exhaustion of address space
  • IPv6 uses 128-bit addresses (~3.4 x 1038 possible) and is slowly being adopted due to IPv4 exhaustion

IPv4 Packet

  • IPv4 packet overhead is 160-192 bits (20-24 bytes)
  • An options field is rarely used

IPv6 Packet

  • IPv6 has a fixed header with 320 bits (40 bytes) of overhead
  • IPv6 includes optional headers like hop-by-hop options and destination options

Transport Layer Functions

  • The transport layer links to the application layer
  • TCP/UDP may serve multiple application layer protocols
  • Ports are used to identify applications, using 2-byte numbers, with many source/destination ports following standards
  • Common port standards include:
    • HTTP: TCP port 80
    • HTTPS: TCP port 443
    • FTP: TCP ports 20 and 21
    • SMTP: TCP port 25
    • IMAP: TCP port 143
    • POP3: TCP port 110 (or TCP port 995 for secure version)
    • DNS: TCP or UDP port 53 (most commonly UDP)

Segmentation

  • Segmentation involves breaking up large files into smaller segments and putting them back together
  • Segments may be passed individually to the application layer or after reassembly
  • Segment size depends on the network and data link layer protocols
  • Maximum Segment Size (MSS) is negotiated during TCP handshake
  • If the maximum size of the data in an Ethernet frame is 1,500 bytes and TCP and IP use 20 byte headers, the maximum segment size is 1460 bytes

Session Management

  • A session can be thought of as a conversation between two computers or creating a virtual circuit
  • Using a session to send data is called connection-oriented messaging (TCP)
  • Sending messages without establishing a session is called connectionless messaging (UDP)
  • TCP connections are opened using a three-way handshake using SYN, SYN-ACK, and ACK
  • Sessions provide reliable end-to-end connections

Addressing

  • Addressing is used to direct messages from source to destination
  • Addresses are assigned in various ways, like by system administrators, ICANN, hardware vendors, etc
  • Addresses exist at different layers and may be translated from one layer to another, like DNS or ARP
  • Examples of addresses:
    • Application layer: Uniform Resource Locator (URL), like www.indiana.edu
    • Network layer: IP address, like 129.79.78.193 (4 bytes)
    • Data link layer: MAC address, like 1C-6F-65-F8-33-8A (6 bytes)
  • IPv4 addresses are 32 bits and are commonly written using dot-decimal notation
  • A portion of an IP address represents the network, and the rest identifies the host
  • Classful addressing uses the first bits to determine the number of hosts, though it is discontinued, the nomenclature is still used

Addressing Types

  • Classless Inter-Domain Routing (CIDR) uses subnet masks to more flexibly divide address space into subnets
  • Dynamic addressing involves a server supplying IP addresses automatically
  • Dynamic Host Configuration Protocol (DHCP) is the most common protocol for dynamic addressing
  • DHCP involves a device sending out a broadcast message and addresses being "leased" for a length of time
  • Address resolution involves host (server) name resolution and MAC address resolution
  • Domain Name Service (DNS) translates a host name to an IP address
  • Address Resolution Protocol (ARP) identifies the MAC address of the next device in the circuit

Routing

  • Routing is the process of identifying the path a packet takes through a network from sender to receiver
  • Routing tables are used to make routing decisions, showing which path to send packets on to reach a given destination
  • Routers are special purpose devices used to handle routing decisions on the Internet, and maintain their own routing tables
  • Centralized routing involves one computer making routing decisions, which is not common anymore
  • Decentralized routing involves each node independently making decisions and exchanging information
  • The Internet uses decentralized routing

Routing Types

  • Static routing utilizes fixed routing tables and are manually configured by network managers
  • Dynamic routing has routing tables that are updated periodically; routers exchange information using protocols to update tables
  • Distance vector algorithms are based on the number of "hops" between two devices
  • Link state algorithms are based on the number of hops, circuit speed, and traffic congestion, which can provide more reliable, up-to-date paths to destinations
  • Routing Information Protocol (RIP) is a dynamic distance vector protocol used for interior routing, wherein the network manager builds the routing table and routers counts "hops" and selects the shortest route when new computers are added
  • Open Shortest Path First (OSPF) is a dynamic link state protocol used for interior routing in large enterprise networks
  • Enhanced Interior Gateway Routing Protocol (EIGRP) is a dynamic link state protocol
  • EIGRP records transmission capacity, delay time, reliability and load for all paths and keeps the routing tables for its neighbors and uses this information in its routing decisions as well
  • Border Gateway Protocol (BGP) is a dynamic distance vector protocol used for exterior routing that provides routing information only on selected routes (e.g., preferred or best route)

Multicasting

  • Unicast is one computer to another computer
  • Broadcast is one computer to all computers in the network
  • Multicast is one computer to a group of computers (e.g., videoconference)
  • The same data needs to reach multiple receivers, avoiding transmitting it once for each receiver
  • Multicasting is particularly useful if the access link has bandwidth limitations
  • In IP multicast, hosts dynamically join and leave multicast groups using Internet Group Management Protocol (IGMP)

TCP/IP Example

  • Required network addressing information:
    • Device’s own IP address
    • Subnet mask
    • IP address of default gateway (most commonly the router)
    • IP address of at least one DNS server

TCP/IP Examples

  • A Client (128.192.98.130) requests a Web page from a server (www1.anyorg.com); the client knows the server's IP
  • A Client (128.192.98.130) requests a Web page from a server (www2.anyorg.com) on a different subnet; the client knows the server’s IP
  • A Client (128.192.98.130) requests a Web page from a server (www1.anyorg.com); the client does not know the server’s IP

TCP/IP and Layers

  • Packets move through all layers of host computers
  • At gateways and routers, packets move from the Physical layer to the Data Link Layer through the network Layer
  • Ethernet packets are removed and a new one is created for the next node in each stop along the way
  • IP and above packets never change in transit (created by the original sender and destroyed by the final receiver)

Implications for Management

  • Organizations are standardizing on TCP/IP, which decreases equipment and training costs
  • Network providers are also moving toward standardization
  • Transition to IPv6 is slow

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

TCP/IP and OSI Model Quiz
5 questions
TCP/IP Model
16 questions

TCP/IP Model

FastGrowingMars avatar
FastGrowingMars
Use Quizgecko on...
Browser
Browser