nrPCAPWriter
Description
The nrPCAPWriter
object creates a packet capture (PCAP) or
packet capture next generation (PCAPNG) file writer object to write generated and recovered 5G
new radio (NR) medium access control (MAC) packets to a PCAP or PCAPNG file
(.pcap
or .pcapng
, respectively). To write 5G NR MAC
packets, no native link type is available for NR. The object writes the 5G NR MAC packets to
the PCAP or PCAPNG file by encapsulating the packets into a pseudo protocol with a link type.
The object prepends each MAC packet with socket address link layer (SLL), internet protocol
(IP), and user datagram protocol (UDP) headers followed by per-packet information. The
encapsulation of packets enables the object to write a MAC packet with a maximum size of
65,482 bytes at a time. If the size of the MAC packet is greater than 65,482 bytes, the object
truncates the remaining bytes.
Creation
Description
creates a default 5G
NR PCAP or PCAPNG file writer object.nrPCAPW
= nrPCAPWriter
sets properties using one or more
optional name-value arguments. For example, nrPCAPW
= nrPCAPWriter(Name=Value
)FileExtension='pcapng'
sets
the extension of the file as .pcapng
.
Properties
Object Functions
Examples
References
[1] Tuexen, M. “PCAP Next Generation (Pcapng) Capture File Format.” 2020. https://www.ietf.org/.
[2] “Development/LibpcapFileFormat - The Wireshark Wiki.” Accessed May 20, 2020. https://www.wireshark.org.
Extended Capabilities
Version History
Introduced in R2021b