Questions tagged [packet]

A packet is one unit of binary data capable of being routed through a computer network.

This is a small amount of computer data sent over a network. Any time you receive data from the Internet, it comes to your computer in the form of many little packets.

Each packet contains:

  • A label which uniquely identifies it
  • The IP address of its origin and destination
  • A sequence number (for sorting)
  • A checksum (for error checking

The process of sending and receiving packets is known as "packet-switching." Packets from many different locations can be sent on the same lines and be sorted and directed to different routes by various computers along the way, the packets are then sorted by their sequence number once they reach their destination. It works a lot like the post office, except billions of packets are transferred each day, and most packets take less than a few seconds to reach their destination. Even FedEx same-day delivery can't compete with that.

Packet Definition. 2013. Packet Definition. [ONLINE] Available at: http://www.techterms.com/definition/packet. [Accessed 30 April 2013].

1562 questions
0
votes
2 answers

ERROR_NOT_ENOUGH_MEMORY Error when writing INI using WritePrivateProfileString, after 200k calls

I'm making simple dll packet sniffer using C++, that will hook to the apps, and write the received packet into INI file. Unfortunately after 20-30 minutes it crashed the main apps. When the packet is received, receivedPacket() will be called. After…
Ahmad Hafiz
  • 358
  • 2
  • 6
  • 13
0
votes
1 answer

dependency check failure on oracle linux

i am new on linux. i am using oracle linux... el5. i am trying to install oracle 11g. i have to install some packets for pre-installation task. ex: compat-libstdc++-33-3.2.3 i downloaded the rpm file and tried to install but i got a dependency…
0
votes
1 answer

Perl Net::Pcap hex dump packet session

I have the following information below being produced by the Net::Pcap module to print the payload of the packets of interest within a capture. The data below is the excerpt of a Windows executable file being captured within Perl. I would like to be…
0
votes
2 answers

why my browser sends two packets with the same attributes except push?

I was writting a java (jpcap) application that distinguishes which response packet was for which request packet. suddenly I encounter these two http packets that my browser sent exactly the same (seq number, ack number, ...) except one of them has…
Alireza
  • 4,347
  • 3
  • 20
  • 31
0
votes
1 answer

Why udp sendto become so slow when the input data size increase a little?

I have a strange question. I did the following test on android: i=0; while(i< PACKET_NUMBER) { //UDP send packets if( sendto(sockfd,buffer,strlen(buffer),0, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) <= 0) { error("failed to…
0
votes
1 answer

OSC packet implementation in win 32

Need help regarding OSC packet implementation in win 32 in Visual Studio 2008
0
votes
1 answer

Associating HTTP Requests with Responses in large packet capture

I am attempting to work with large packet captures from wireshark that have been output in pdml format. These captures are then loaded into python using the lxml library to traverse over them. The issue I am having is that I can pull out…
EEP
  • 715
  • 1
  • 4
  • 17
0
votes
1 answer

Good way to document a packet protocol

I've built a server and client which communicate with eachother using a raw tcp socket. What is a good way to document the packet's sent to eachother? At the moment I use a wikia and create a new table foreach packet but the packets with loops and…
0
votes
1 answer

send: invalid argument

I have a problem with this line of code. I must take a packet to a port and resend to interface(ex:eth0). My program successfully take packet from the port but when I resend (with send()) to interface I have an error: send:Invalid argument The line…
user1307697
  • 15
  • 1
  • 10
0
votes
2 answers

(C++/winsock) Packaging alternative to structs

I have always used structs for packaging and receiving packets, will i gain anything by converting them to classes inherited from main packet class ? is there another "c++ish" way for packaging and any performance gain by this ?
deniz
  • 2,427
  • 4
  • 27
  • 38
0
votes
1 answer

ObjectInputStream failing to read

I have an ObjectOutputStream and an ObjectInputStream. I try to send ints and objects through them. Now I manage to send through and read up to a point and I don't know why it stops there. Here is the point: Reader: while (true) { start…
Trixmix
  • 81
  • 9
0
votes
1 answer

Android Receiving UDP Packets from same IP Adr

My Android application stalls at s.receive(p) because it is not receiving any packets. I have X-Plane sending packets of data to random port 49059 in the SAME IP address as the Android Tablet that I want to receive those packets. This is because…
datWooWoo
  • 843
  • 1
  • 12
  • 42
0
votes
3 answers

Java EOFException Server/Client TCP application

I am running 2 threads in my applciation. One to check for incoming packets and one to process and send packets. They both do it on the SAME STREAM. Example for 1: while (connection open) { in.readObject() instanceof ... } Example for 2: while…
Trixmix
  • 81
  • 9
0
votes
1 answer

How can I simulate lost packets, to test my web app's handling of network glitches?

How can I simulate lost packets, to test my web app's handling of network glitches? My background is in video game development ( http://xona.com/ ) and I know network coding can be tested by simulating lost packets, with a setting from 0% to 100% to…
Xonatron
  • 15,622
  • 30
  • 70
  • 84
0
votes
1 answer

Can you hide web service ASMX calls from pack sniffers?

I am new to web services so I created a web service to replace my current in-app DB transactions. I wanted things to be safer so that is why I went this way. When using a free packet sniffer, it instantly grabs my web service ASMX call. The problem…
Landin Martens
  • 3,283
  • 12
  • 43
  • 61