Please enable JavaScript.
Coggle requires JavaScript to display documents.
4.2 The TCP/IP Protocol Stack - Coggle Diagram
4.2 The TCP/IP Protocol Stack
Network protocols
The Internet Protocol (IP) is a packet-switching protocol used for the exchange of
payload data. It belongs to the third layer of the OSI model
The Internet Control Message Protocol (ICMP) is used by network devices (e.g., routers) to exchange error messages and diagnostic or routing information.
The Transmission Control Protocol (TCP) is a connection-oriented transport protocol belonging to the fourth layer (the transport layer) of the OSI model. It guarantees the reliable delivery of data streams in the form of numbered packets using an automatic repeat request (ARQ) mechanism
The User Datagram Protocol (UDP) is a connectionless transport protocol that, unlike
TCP, only transports individual packets and does not guarantee reliable delivery
The TCP/IP Reference Model
! table on page 86 !
! table on page 87 !
https://www.youtube.com/watch?v=wvPe4Zb0tUA
Application layer
represents data to the user, plus encoding and dialog control
simply DATA
Transport layer
supports communication between diverse devices across diverse networks
TCP or UDP protocols
simply SEGMENT (так как добавился transport header)
Internet layer
determines the best path through the network
simply PACKET (так как добавился network header)
Link layer
controls the hardware devices and media that make up the network
simply FRAME , BITS (тк физические слои тут связаны в один - link layer) (так как добавился frame header)
The Link Layer
Protocols....
The Address Resolution Protocol (ARP)
определяет физический адрес при посылке пакета
отвечает на запросы других станций
Протокол имеет буферную память (ARP-таблицу), в которой хранятся пары адресов (IP-адрес, MAC-адрес (физический адрес))
комп А знает IP адрес и спрашивает MAC адрес у девайса, с таким IP <--> комп Б отзывается на свой IP адрес и высылает свой MAC
(все это происходит в рамках ARP cash)
!table on page 88!
https://www.youtube.com/watch?v=cn8Zxh9bPio
An
IP address
is used to locate a device on a network
MAC address
is what identifies the actual device
The Neighbor Discovery Protocol (NDP)
the new version of ARP for the most recent version of the Internet Protocol IPv6
IP addresses
logical computer address
https://www.youtube.com/watch?v=dgzMVnvGSDc
IPv4
Example of an IPv4 address: 123.77.88.99
Local node address: 77.88.99
Subnet with the address: 123
Subnet mask
ее вид 255.255.255.0
при наложении IP адрес выглядит так, например: 192.168.5.33/24
24 - первые 24 адреса относятся к сети, а остальное - к узлу
https://www.google.com/search?q=ip+address+subnet+and+node&tbm=isch&ved=2ahUKEwiYp7rJyKHzAhWPxCoKHfWfAFEQ2-cCegQIABAA&oq=ip+address+subnet+and+node&gs_lcp=CgNpbWcQAzoECAAQQzoFCAAQgAQ6BAgAEB46BAgAEBM6BggAEAgQHlCWY1iukAFgiZQBaABwAHgAgAGLAYgBpQqSAQQxNS4xmAEAoAEBqgELZ3dzLXdpei1pbWfAAQE&sclient=img&ei=wPxSYZjHF4-JqwH1v4KIBQ&client=opera#imgrc=Ik76X98pTUFLeM
IPv6
Example: abcd:ef01:2345:6789:abcd:ef01:2345:6789
network address translation (NAT)
private IP address
С машиной с частным IP-адресом связаться можно только изнутри локальной сети. С одной стороны, это делает локальную сеть недоступной для многих атак извне. С другой стороны, в некоторых службах Интернета (одноранговых сетях, сетевых играх, передаче файлов в мессенджерах) это создаёт проблемы: если у одного из компьютеров IP-адрес частный, а у другого внешний, инициатором соединения будет клиент с частным IP
The Transport Layer
protocols...
Transmission Control Protocol (TCP)
used to guarantee that all data is received and in order
TCP are directly packet into IP address
(например, если открыть сайт без TCP, то там все будет без порядка или скачиваешь файл и он скачивается с открывками)
ARQ mechanism
triggers a second retransmission if data packets become lost
TCP Header
! table on page 92 !
Link Title
Source port: this is a 16 bit field that specifies the port number of the sender
Destination port: this is a 16 bit field that specifies the port number of the receiver.
Sequence number: the sequence number is a 32 bit field that indicates how much data is sent during the TCP session. When you establish a new TCP connection (3 way handshake)
Acknowledgment number: this 32 bit field is used by the receiver to request the next TCP segment. By using sender sequence number, receiver uses it to send back the acknowledgment.
Flags: there are 9 bits for flags, we also call them control bits. We use them to establish connections, send data and terminate connections
SYN
ACK
FIN
connection closes with a FIN packet
Checksum: 16 bits are used for a checksum to check if the TCP header is OK or not.
Three-Way Handshake Model
! table on page 93 !
https://www.youtube.com/watch?v=enET2x2eHU8
Well-known ports
HTTP etc (есть целый список)