Chapter 1: Networking Protocols Flashcards
(151 cards)
What are the four layers of the TCP/IP model?
- Application
- Transport
- Internet (Networking)
- Link
What are the two layers of the Link layer?
- Data Link
- Physical
Link Layer
- provides physical transmission support and includes the protocols used to transmit information over a link between two devices
- frames
- includes hardware and protocol necessary to send information between two hosts that are connected by a physical link (cable) or over the air (radio waves)
- Most popular protocol is Ethernet
Internet Layer
- aka Networking
- provides networking services and includes protocols that allow for the transmission of information through multiple hops
- each “hop device” knows how to reach the destination IP address and transmit the information to the next best node to reach the destination
- Packets
Routing Protocol
- the way each node (router) determines the best next node to the destination
Transport Layer
- when transmitting information, the sending host knows when the information is sent, but has no way to know whether it actually made it to the destination
- so, Transport Layer provides services to successfully transfer information between two end-to-end process
- detects whether any information went missing
- provides information about which type of information is being transmitted
- Segments
How does the Transport Layer distinguish between separate transactions, such as requesting a web page and starting an FTP transaction?
- the Transport Layer helps to separate the two requests by using the concept of a Transport Layer PORT
- port 80 for web request
- port 21 for an FTP transaction
- this service is called MULTIPLEXING
Application Layer
- top layer and most familiar to end users
- ## a user may use the mail client to send an email message (SMTP), or use a web browser to browse a website (HTTP)
TCP/IP Model Encapsulation
- each layer provides services for the level above it
- protocols at each layer include a protocol header
- the header includes enough information for the protocol to work toward the delivery of the information
- this process is called ENCAPSULATION
DNS Resolution
Step 1: Host A sends a recursive DNS query for a type A record to resolve www.cisco.com to its own DNS server (DNS A)
Step 2: DNS A server checks its DNS cache, but does not find the information. So, it sends an iterative DNS query to the root DNS server, which is authoritative for all of the Internet
Step 3: The root DNS server is not authoritative for that host, so it sends back a referral to the .com DNS server, which is authoritative server for the .com domain.
Step 4: The .com DNS server performs a similar process and sends a referral to the cisco.com DNS server
Step 5: The cisco.com DNS server is the DNS authoritative server for www.cisco.com so it can reply to DNS A with the information
Step 6: DNS A receives the information and stores it in its DNS cache for future use.
Step 7: Host A receives the information from DNS A and can start sending packets to www.cisco.com using the correct IP address.
How long does a DNS server store information in its cache?
- finite time based on the TTL value in the response from the authoritative DNS server for a given doamin
TCP
- Transmission Control Protocol
- reliable, connection-oriented protocol for communicating over the Internet
- Connection-oriented means that TCP requires a connection between two hosts established through a specific packet exchange before any data packets can be sent
- —-Services provided——
- multiplexing
- connection establishment and termination
- reliability (error detection and recovery)
- flow control
Why not use TCP for all applications?
- the reliability offered by TCP is done at the cost of lower speed and the need for increased bandwidth
Multiplexing
- allows multiple transport layer connections between the same hosts
- sockets are used to distinguish to which application a connection belongs
Connection Establishment and Termination
- a connection is established before data is sent
- this ensures that the other host is ready to receive data
- the connection is also terminated through a formal data exchange
Reliability
- data lost due to error or from the underlying datagram can be recovered by asking the remote device to send the information again
Flow Control
- TCP uses a windowing system to adjust the speed of transmission
TCP Header Fields
- Source and Destination Ports
- Sequence Number
- Acknowledgment Number
- Control Flags
- Window
- Urgent Pointer
TCP Flags
- URG
- ACK
- PSH
- RST
- SYN
ACK
- Acknowledgement flag
- Set to 1 after the connection has been established
PSH
- Push flag
- signifies that the data should be pushed directly to an application
RST
- Reset flag
- Resets the connection
SYN
- Synchronization
- sequence numbers
- relevant for connection establishment
- should only be set within the first packets from both of the hosts
FIN
- this flag signifies that there is no more data from sender