The TCP/IP Flashcards
What does TCP/IP stand for and what is it used for?
- TCP / IP stands for transmission control protocol / internet protocol.
- Used to enable different devices to communicate.
What are the four distinct layers of the tcp/ip stack that the tcp/ip protocol is formed of?
Application, transport, network, link
What is the application layer responsible for?
- It interacts with the user through software such as a web browser
- It selects and uses the correct protocol to transmit data.
What is the transport layer responsible for?
- Establishes an end to end connection between the sender/receiver.
- It splits the data into packets and labels them with a sequence number
- The packets are labeled with the port number to be used (this identifies the protocol in use)
What is the network layer responsible for?
- Adds the source/destination IP addresses to each packet
- Routers work within the network layer, using the IP addresses to send packets to their destination.
- The IP address and port number form the socket address which specify the device the packet must be sent to and the application being used
What is the link layer responsible for?
- Controls physical connections between network nodes
- Adds MAC addresses to packets of source/destination so that packets can locate the correct device
What do receiver’s MAC addresses identify?
- The hardware to which a packet should be sent to.
- MAC addresses change with every hop through a network.
What happens at the receiving end of the tcp/ip stack?
- Once a packet is received, it is stripped of its extra information by reversing the TCP / IP stack.
- The link layer removes MAC addresses
- The network layer removes IP addresses
- The transport layer uses the packet’s port number to determine the correct application to send the packet to. It also uses the packet’s sequence number to put the packets in the correct order.
- The application layer receives the packets and displays the information to the user.
What is a socket address and what are they used for?
- A socket address is an IP address combined with a port number. For example: 114.26.20.199:443.
- They identify which of the applications on the recipient device a packet should be sent to.
What are Ip addresses formed of?
- They’re split into two parts: a network identifier and a host identifier.
- Devices in a network share the same network identifier but have individual host identifiers.
What are subnets and what are subnet masks used for.
- Networks can be divided into smaller networks, called subnets. Each subnet has a different network identifier.
- The network identifier is determined by a subnet mask.
Name a commonly used subnet mask?
255.255.255.0
Give an example of how a subnet mask is used to determine the network identifier?
Find the network identifier, using the ip address 192.168.3.24 and the subnet mask 255.255.255.0
- 192.168.3.24 - IP Address
- 11000000.10101000.00000011.00011000 - IP Address in binary
- 255.255.255.0 - The subnet mask
11111111. 11111111.11111111.00000000 - The subnet mask in binary
11000000. 10101000.00000011.00000000 - uses a Bitwise AND operation
192. 168.3.0 - The network identifier in decimal
The more bits that are assigned to the network identifier of an IP address …
The more different subnets a network can have and the less bits assigned to the host identifier (the less devices can be connected to each subnet)
The more bits that are assigned to
the host identifier…
the more different devices can be connected to each subnet simultaneously.
What are the two types of IP address standards?
IPv4 and IPv6
How are IPv4 addresses formed?
Give an example.
- IPv4 addresses consist of 4 parts, separated by dots.
- Each part is assigned 8 bits allowing for numbers from 0-255 to be represented. Example: 192.168.34.7
How are IPv6 addresses formed?
Give an example.
IPv6 addresses are formed of eight blocks separated by colons. Each block contains four hexadecimal characters
Example: 2071:0eb8:85a3:8a2f:0000:0000:0370:7264