Week 2 - Network TCP-IP Flashcards
Network
Two or more computers connected with a medium for the purpose of sharing resources
Network Protocol
An internationally accepted set of rules for connecting computers to the Internet and most other
networks
TCP/IP
A suit of networking protocols that Encapsulates a number of different protocols for different network communication tasks
* Two core protocols:
1. Transmission Control Protocol
2. Internet Protocol
3 layers, Application, Transport and Internet
TCP/IP Application Layer
– Programs talk to Application layer
– Application protocols
(e.g. email, file transfer, web browsing)
– Programs use different protocols depending on required task
– Sends Data Transport Layer
– Receives Data Transport Layer
– Application protocols: FTP, HTTP
TCP/IP Transport Layer
– Coordinates delivery of data from one location to another on the network
– Sending
* Break message up into packets
* Add correction info
– Receiving
* Re-assemble packets into original message
* Carries out error checking
* Identify proper application to deliver message to
– Protocols used: TCP and UDP
TCP/IP Internet Layer
– Implements rules of internet addressing
* Adds address to packets (IP Address)
* IP Address: 32 bit (4 octets)
Routers Implement Internet Layer
* Receive packets and then route them to the correct destination
Send
* Select the next-hop (gateway/network node) host and
transmit packet by passing to Link Layer
Destination Receive
* Pass packets to appropriate transport layer protocol
TCP/IP Link Layer – Network Interface
– Network Interface
* Defined by type of physical network the device is connected to (Ethernet)
Receiving:
– Delivers to appropriate Internet Layer Protocol
Sending:
– Specifies Internet Layer Protocol
Assemble final frame that will be sent over network
– Add source and destination MAC address
– MAC address (physical address of network card)
TCP/IP Link Layer – Physical layer
– Physical layer
* Consists of cables or other connection media
* Deals with data as bits traveling across a network
medium
* Convert packets to electricity (cable network) or
electromagnetic waves (wireless network)
Internet Layer
- Sends packets to their specified destinations
- Adds an IP-specific header to the packet
- Header contains information such as:
– Source
– Destination
– Version
– Internet header length
– Protocol
– Other information about the data
Protocols in the Internet Layer:
- Internet Protocol (IP)
– Contains addressing information that enables packets to be routed
– Two basic functions of IP are addressing and fragmentation - Internet Control Message Protocol (ICMP)
– Used to generate IP error messages
Transport Layer
Coordinates delivery of data from one location to
another on the network
* First need to Consider:
1. Connection Oriented
2. Connectionless
Connection-Oriented:
– Protocol that requires that a logical connection be
established between two devices before transferring
data
– Devices Perform Handshaking
* Source requests connection
* Destination accepts connection
* Source confirms connections
– Bi-Directional
* Both sides must be able to communicate with each
other
Connectionless
– No Logical Connection made between devices
– No handshaking required
– One Direction
* Source to destination
* Source does not check if destination is still there, or if
it is prepared to receive information…it just sends it!
2 main protocols in Transport layer
Responsible for delivering data from one location to another on the network
Two main protocols
– Transmission Control Protocol: Connection-Oriented
– User Datagram Protocol: Connectionless
Transmission Control Protocol (TCP)
– Connection-oriented protocol
– When sending: keeps track of packets sent
– When receiving: confirms receipt of packets and
reassembles them into a single file after they’ve all
arrived
– Controls the flow of messages
Network Ports
Application specific construct serving as a communication endpoint
- Packets are delivered to specific computer on a network.
– May be multiple processes running on that computer
interested in send/receiving network packets - Port Numbers are used to address packets to specific processes
User Datagram Protocol (UDP)
– Connectionless protocol
– Doesn’t perform error checking or acknowledge that messages were sent successfully
Application Layer
- Sits at the top of the TCP/IP model
- Contains the higher-level protocols used for network communication in the Transport layer
- Provides services for user applications to employ
– E.g. Web Browser using HTTP protocol
– E.g. Email Client using SMTP protocol - Application Layer Standardizes Communication