Skip to content

Madhav-MKNC/Network-Analyzing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Network-Analyzing

Overview of Network Data Units

In computer networking, data is transmitted in discrete units called Network Data Units (NDUs). These units help to ensure that data is transmitted efficiently and reliably across the network. In this overview, we will discuss the different types of NDUs and their characteristics.

Types of Network Data Units

1. Bit

The smallest unit of data in a computer network is a bit. It can have a value of either 0 or 1.

2. Byte

A byte is a unit of data that consists of 8 bits. It is the basic building block of most computer systems and is used to represent characters, numbers, and other types of data.

3. Packet

A packet is a unit of data that is transmitted across a network. It consists of a header and a payload. The header contains information about the packet, such as its source and destination addresses, while the payload contains the actual data being transmitted.

4. Frame

A frame is a unit of data that is used in local area networks (LANs). It consists of a header, data, and a trailer. The header and trailer contain information about the frame, such as its source and destination addresses, while the data contains the actual information being transmitted.

5. Segment

A segment is a unit of data that is used in transport layer protocols, such as TCP (Transmission Control Protocol). It consists of a header and data. The header contains information about the segment, such as its source and destination ports, while the data contains the actual information being transmitted.

Comparison of Network Data Units

The following table summarizes the characteristics of the different types of NDUs:

NDU Size Used in Example
Bit 1 All layers 0 or 1
Byte 8 bits All layers 'a', 27
Packet Variable Network layer IP packet
Frame Variable Data link layer Ethernet frame
Segment Variable Transport layer (TCP) TCP segment

Conclusion

Network Data Units play a crucial role in ensuring the efficient and reliable transmission of data across computer networks. By understanding the different types of NDUs and their characteristics, network engineers can design and optimize their networks for maximum performance and reliability.

Network Protocol Data Units (NPDUs)

Overview of Network Data Units

In computer networking, data is transmitted in discrete units called Network Data Units (NDUs). These units help to ensure that data is transmitted efficiently and reliably across the network. In this overview, we will discuss the different types of NDUs and their characteristics for Ethernet frames, WiFi frames, IP datagrams, TCP segments, and UDP.

Ethernet Frames

Ethernet frames are used in Ethernet networks to transmit data between devices. They consist of a header, data, and a trailer. The header contains information such as the source and destination MAC addresses, while the trailer contains error detection information.

NDU Size Used in Example
Ethernet Frame 64-1518 bytes Data link layer Ethernet II, IEEE 802.3 frames

WiFi Frames

WiFi frames are used in wireless networks to transmit data between devices. They consist of a header, data, and a trailer. The header contains information such as the source and destination MAC addresses, while the trailer contains error detection information.

NDU Size Used in Example
WiFi Frame Variable Data link layer IEEE 802.11 frames

IP Datagrams

IP datagrams are used to transmit data across IP networks. They consist of a header and data. The header contains information such as the source and destination IP addresses, while the data contains the actual information being transmitted.

NDU Size Used in Example
IP Datagram Variable Network layer IPv4, IPv6 datagrams

TCP Segments

TCP segments are used in transport layer protocols, such as TCP, to transmit data across networks. They consist of a header and data. The header contains information such as the source and destination port numbers, while the data contains the actual information being transmitted.

NDU Size Used in Example
TCP Segment Variable Transport layer (TCP) TCP segments

UDP Datagrams

UDP datagrams are used in transport layer protocols, such as UDP, to transmit data across networks. They consist of a header and data. The header contains information such as the source and destination port numbers, while the data contains the actual information being transmitted.

NDU Size Used in Example
UDP Datagram Variable Transport layer (UDP) UDP datagrams

Conclusion

By understanding the different types of NDUs used in computer networking, network engineers can design and optimize their networks for maximum performance and reliability. Ethernet frames, WiFi frames, IP datagrams, TCP segments, and UDP datagrams all play an important role in the efficient and reliable transmission of data across computer networks.

STRCUTURE AND FORMAT OF THESE FRAMES

Ethernet Frames

Ethernet frames consist of a header, data, and trailer.

Ethernet Frame Header

Field Size (bits) Description
Preamble 7 bytes (56 bits) A sequence of alternating 0s and 1s to allow for synchronization between devices
Start Frame Delimiter 1 byte (8 bits) Marks the beginning of the frame
Destination MAC Address 6 bytes (48 bits) Specifies the destination device
Source MAC Address 6 bytes (48 bits) Specifies the sending device
EtherType/Length 2 bytes (16 bits) Specifies the type of data being carried in the frame or the length of the frame
VLAN Tag (Optional) 4 bytes (32 bits) Specifies a VLAN tag, if present

Ethernet Frame Data

The data in an Ethernet frame can vary in size from 46 to 1500 bytes.

Ethernet Frame Trailer

The trailer contains an error detection mechanism called the Frame Check Sequence (FCS).

Field Size (bits) Description
FCS 4 bytes (32 bits) A CRC-32 checksum of the entire frame, used for error detection

WiFi Frames

WiFi frames consist of a header, data, and trailer.

WiFi Frame Header

Field Size (bits) Description
Frame Control 2 bytes (16 bits) Contains various control information, such as the frame type and subtype
Duration/ID 2 bytes (16 bits) Specifies the duration of the transmission or the identifier of the frame
Destination MAC Address 6 bytes (48 bits) Specifies the destination device
Source MAC Address 6 bytes (48 bits) Specifies the sending device
BSSID (Basic Service Set Identifier) 6 bytes (48 bits) Specifies the MAC address of the access point
Sequence Control 2 bytes (16 bits) Used to provide sequence numbers for fragmentation and reassembly
QoS Control (Optional) 2 bytes (16 bits) Specifies Quality of Service information, if present
HT Control (Optional) 4 bytes (32 bits) Specifies High Throughput control information, if present

WiFi Frame Data

The data in a WiFi frame can vary in size from 0 to 2312 bytes.

WiFi Frame Trailer

The trailer contains an error detection mechanism called the Frame Check Sequence (FCS).

Field Size (bits) Description
FCS 4 bytes (32 bits) A CRC-32 checksum of the entire frame, used for error detection

IP Datagrams

IP datagrams consist of a header and data.

IP Datagram Header

Field Size (bits) Description
Version 4 bits Specifies the IP protocol version
Header Length 4 bits Specifies the length of the header in 32-bit words
Type of Service 8 bits Specifies the type of service, such as priority or reliability
Total Length 16 bits Specifies the total length of the datagram, including the header and data
Identification 16 bits Used for fragmentation and reassembly
Flags 3 bits Used for fragmentation and reassembly
Fragment Offset 13 bits Used for fragmentation and reassembly
Time to Live 8 bits Specifies the maximum number of hops the datagram can take before being discarded
Protocol 8 bits Specifies the protocol used in the data portion of the datagram
Header Checksum 16 bits A checksum of the header used for error detection
Source IP Address 32 bits Specifies the IP address of the sending device
Destination IP Address 32 bits Specifies the IP address of the destination device

IP Datagram Data

The data in an IP datagram can vary in size up to 65,535 bytes.

TCP Segments

TCP segments consist of a header, data, and optional trailer.

TCP Segment Header

Field Size (bits) Description
Source Port 16 bits Specifies the port number of the sending process
Destination Port 16 bits Specifies the port number of the receiving process
Sequence Number 32 bits Used for reliable data transfer
Acknowledgement Number 32 bits Used for reliable data transfer
Data Offset 4 bits Specifies the length of the header in 32-bit words
Reserved 6 bits Reserved for future use
Control Bits 6 bits Specifies various control information, such as whether the segment contains data, and if it is the last segment in a stream
Window Size 16 bits Specifies the size of the receive window
Checksum 16 bits A checksum of the entire segment used for error detection
Urgent Pointer 16 bits Used to specify the location of urgent data, if present

TCP Segment Data

The data in a TCP segment can vary in size up to the maximum segment size (MSS), which is typically around 1460 bytes.

TCP Segment Trailer

The trailer is optional and typically not used.

UDP Datagrams

UDP datagrams consist of a header and data.

UDP Datagram Header

Field Size (bits) Description
Source Port 16 bits Specifies the port number of the sending process
Destination Port 16 bits Specifies the port number of the receiving process
Length 16 bits Specifies the total length of the datagram, including the header and data
Checksum 16 bits A checksum of the entire datagram used for error detection

UDP Datagram Data

The data in a UDP datagram can vary in size up to 65,535 bytes. UDP is a connectionless protocol and does not provide any reliability or flow control mechanisms, so it is often used for applications that require low latency and can tolerate packet loss, such as real-time multimedia streaming.

Conclusion

In conclusion, network data units are the basic building blocks of network communication. Ethernet frames, Wi-Fi frames, IP datagrams, TCP segments, and UDP datagrams each have their own unique format and structure, but they all serve the same purpose of transmitting data over a network.

Understanding the structure and format of these network data units is important for troubleshooting network issues, optimizing network performance, and designing network protocols and applications.

As networks continue to evolve and new technologies emerge, it's important to stay up to date on the latest developments and advancements in network data units. With the increasing importance of data communication in our daily lives, knowledge of network data units is essential for anyone working in the field of computer networking.

OSI Model

Layer Protocol data unit (PDU) Function TCP/IP protocols Layers type
7
Application
Data High-level protocols such as for resource sharing or remote file access, e.g. HTTP. HTTP(s), FTP, SMTP Host
6
Presentation
Translation of data between a networking service and an application; including character encoding, data compression and encryption/decryption. MIME, SSL/TLS, XDR
5
Session
Managing communication sessions, i.e., continuous exchange of information in the form of multiple back-and-forth transmissions between two nodes. Sockets
4
Transport
Segment, Datagram Reliable transmission of data segments between points on a network, including segmentation, acknowledgement and multiplexing. TCP, UDP, SCTP, DCCP
3
Network
Packet Structuring and managing a multi-node network, including addressing, routing and traffic control. IP, IPsec, ICMP, IGMP, OSPF, RIP Media
2
Data link
Frame Transmission of data frames between two nodes connected by a physical layer. PPP, SBTV, SLIP
1
Physical
Bit, Symbol Transmission and reception of raw bit streams over a physical medium.

About

Some Networking stuff.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published