Questions tagged [packets]

Packets refer to network packets. A network packet is a formatted unit of data carried by a packet-switched network.

A network packet is a formatted unit of data carried by a packet-switched network.

A packet consists of control information and user data, which is also known as the payload. Control information provides data for delivering the payload, for example: source and destination network addresses, error detection codes, and sequencing information. Typically, control information is found in packet headers and trailers.

Use this tag for programming questions related to packet creation, packets contents analysis, packet sending and receiving, or other tasks that can be done with network packets.

Source: Wikipedia

372 questions
4
votes
1 answer

I'd like to use union as C# with byte array

I had idea about message parsing in serial communication, there are many kind of packets which have different form. but they're all sent by byte array. so I thought using union to parse each message. but it's not working well. following code is the…
JaeSang Yoo
  • 45
  • 1
  • 3
3
votes
1 answer

How to Send Packets to a Remote Minecraft Classic Server in Python?

Hello kind folks of StackOverflow. I am trying to make a sort of 'bot' which can connect to a Minecraft Classic server, post messages and possibly build. Anyway, I'm having some trouble understanding how to send packets in python, and how to…
Jack
  • 740
  • 5
  • 21
3
votes
1 answer

voip basics - header info for packet?

I do some learning of using voip over udp in a small network. I know there are bundles of libraries ready to do and overdo everything I ever need with a few method calls, but as I said I am learning, so need to reinvent the wheel to see how it…
Aubergine
  • 5,862
  • 19
  • 66
  • 110
3
votes
3 answers

Occurrence of a 0x90 (NOP) sequence in legitimate code

The background: I've written a python script to inspect IP packets, specifically the payload/data of a packet in order to detect if it could be used in a buffer (stack) overflow. Now as I understand it a NOP sled is used to pad the stack so that the…
Trowalts
  • 119
  • 1
  • 2
  • 10
3
votes
2 answers

Ensuring no packet loss between TCP client and server

I am writing a Java TCP client which sends chunks of data to a C server. The client-server worked very well on my development PC. This code upon deployment on a hardware board showed packet loss. I only have the logs with me and I know that the…
user489152
  • 907
  • 1
  • 23
  • 42
3
votes
1 answer

How to "decode" python scapy packet "RAW load"

I have been trying to decode these types of packets for some time, I have done vast research but have not been able to 'decode' certain scapy packets. I have been testing with my network, then watching the results in scapy and I get these encoded…
John Doe
  • 41
  • 1
  • 2
  • 6
3
votes
1 answer

Redstone particles don't change their color

I'm trying to send colored redstone particles to player via packets using ProtocolLib. I Googled that to make them colored, I need use the offset parameters as the RGB system. However, it didn't work as intended; particles are still red or have…
i0xHeX
  • 315
  • 2
  • 15
3
votes
2 answers

Using hashing for efficient Deep Packet Inspection

In order to enhance the performance of Deep Packet Inspection we are preprocessing the set of rules by performing a hashing algorithm on them which in turn divides the rules into smaller chunks of sub-rules, making the inspection much faster. The…
RoaaGharra
  • 710
  • 5
  • 19
3
votes
1 answer

How to see TCP, IP headers in my HTTP proxy?

I have a forking HTTP proxy implemented on my Ubuntu 14.04 x86_64 with the following scheme (I'm reporting the essential code and pseudocode just to show the concept): socketClient = socket(AF_INET, SOCK_STREAM,…
elmazzun
  • 1,066
  • 2
  • 18
  • 44
3
votes
2 answers

When exactly are network packets created?

At which point in message transmission from client to host (or vice versa) is the message actually sliced into packets? From my current understanding, the application puts an entire file in the socket and hands it over to TCP entirely. TCP first…
sanjihan
  • 5,592
  • 11
  • 54
  • 119
3
votes
2 answers

Transmission of float values over TCP/IP and data corruption

I have an extremely strange bug. I have two applications that communicate over TCP/IP. Application A is the server, and application B is the client. Application A sends a bunch of float values to application B every 100 milliseconds. The bug is the…
axilmar
  • 836
  • 1
  • 13
  • 17
3
votes
0 answers

Android VpnService Packet Sniffing

I'm working on a school project and have hit a road block and wanted to see if anyone can help point me in the right direction. We are trying to capture packets from an Android phone without rooting the phone. The only option that I have found was…
Seaniqua
  • 53
  • 8
3
votes
3 answers

Count incoming packets on specific network interface

I'd like to count the number of incoming packets on a network interface (e.g eth0) for a specific period of time (till 5 minutes after executing the script), how can I do it via shell or python script? which one is more accurate? I'm aware of…
Sina Sh
  • 1,177
  • 3
  • 15
  • 24
3
votes
1 answer

Is Socket ReceiveFromAsync implicltly multi threaded?

I'm currently working on a high performance Raw socket application. I'm using ReceiveFromAsync to receive packets. This may sound like a silly question, but is this implicitly threaded? I'm not sure if i need to take the received packet and thread…
Waterboy4800
  • 232
  • 2
  • 10
3
votes
0 answers

Windows SSDP discovery service throttling outgoing SSDP broadcasts

I have a Python app that broadcasts SSDP discovery requests. I noticed the devices I'm attempting to discover aren't always responding. Using Wireshark I found that only some of my broadcasts are reaching the wire. After some troubleshooting I…
Horshack
  • 111
  • 1
  • 6
1 2
3
24 25