Difference between revisions of "Data packet"

From Computer Science Wiki
Jump to navigation Jump to search
Line 38: Line 38:
 
== Skills ==
 
== Skills ==
  
# You should be aware how to capture and view packets.
+
You should be aware how to capture and view packets.
  
OS X : <syntaxhighlight inline lang="bash">nettop -m tcp</syntaxhighlight>  
+
OS X : <syntaxhighlight inline lang="bash">nettop -m tcp</syntaxhighlight>
 +
OS X / Linux : <syntaxhighlight inline lang="bash">sudo tcpdump -nnSX port 443</syntaxhighlight>
  
 
== What do you actually NEED to know? ==  
 
== What do you actually NEED to know? ==  

Revision as of 10:43, 6 January 2020

Networks[1]

A packet is a basic unit of communication over a digital network. A packet is also called a datagram, a segment, a block, a cell or a frame, depending on the protocol used for the transmission of data. When data has to be transmitted, it is broken down into similar structures of data before transmission, called packets, which are reassembled to the original data chunk once they reach their destination.

The structure of a packet depends on the type of packet it is and on the protocol. Normally, a packet has a header and a payload.

The header keeps overhead information about the packet, the service, and other transmission-related data. For example, data transfer over the Internet requires breaking down the data into IP packets, which is defined in IP (Internet Protocol), and an IP packet includes:

  • The source IP address, which is the IP address of the machine sending the data.
  • The destination IP address, which is the machine or device to which the data is sent.
  • The sequence number of the packets, a number that puts the packets in order such that they are reassembled in a way to get the original data back exactly as it was prior to transmission.
  • The type of service
  • Flags
  • And some other technical data
  • The payload, which represents the bulk of the packet (all the above is considered as overhead), and is actually the data being carried.

(Above used with gratitude from: https://www.lifewire.com/what-is-a-data-packet-3426310[2])

A diagram of a packet[edit]

Ip header.jpg

Looking for a basic introduction to packets ?[edit]



Skills[edit]

You should be aware how to capture and view packets.

OS X : nettop -m tcp OS X / Linux : sudo tcpdump -nnSX port 443

What do you actually NEED to know?[edit]

  • Define the terms: protocol, data packet
  • Explain how data is transmitted by packet switching

References[edit]

a group or system of interconnected people or things.

a group or system of interconnected people or things.

A unit of abstract mathematical system subject to the laws of arithmetic.

Give the precise meaning of a word, phrase, concept or physical quantity.

Give a detailed account including reasons or causes.