MayMeow's Blog Notes

OSI Model

The model (layers)

Transport Protocols

TCP

Pros

Cons

Used in situation as file share, internet browsing or sending email.

UDP

Pros

Cons

This protocol is used in situation where you sending and receive small data. e.g. Discovering protocols - ARP, DHCP

Also using for video streaming (packet loss result in pixelating).

UDP packet consist of following headers:

Header Description
Time to Live (TTL) This field sets an expiry timer for the packet, so it doesn’t clog up your network if it never manages to reach a host or escape!
Source Address The IP address of the device that the packet is being sent from, so that data knows where to return to.
Destination Address The device’s IP address the packet is being sent to so that data knows where to travel next.
Source Port This value is the port that is opened by the sender to send the UDP packet from. This value is randomly chosen (out of the ports from 0-65535 that aren’t already in use at the time).
Destination Port This value is the port number that an application or service is running on the remote host (the one receiving the data); for example, a webserver running on port 80. Unlike the source port, this value is not chosen at random.
Data This header is where data, i.e. bytes of a file that is being transmitted, is stored.

Packet vs Frame

Some headers that packets can include

Header Description
Time to Live This field sets an expiry timer for the packet to not clog up your network if it never manages to reach a host or escape!
Checksum This field provides integrity checking for protocols such as TCP/IP. If any data is changed, this value will be different from what was expected and therefore corrupt.
Source Address The IP address of the device that the packet is being sent from so that data knows where to return to.
Destination Address The device’s IP address the packet is being sent to so that data knows where to travel next.

#Cybersecurity #Study-Notes