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].

1445 questions
81
votes
7 answers

JavaScript WebSockets with UDP?

I'm writing a JavaScript Application that has to receive a huge amount of data from other users. It is not important if some of this data gets lost. Is there some way of using JavaScript WebSockets with UDP instead of TCP?
user142019
69
votes
10 answers

iPhone and WireShark

How can I sniff packets from my iPhone on my network? can someone give me some instructions? I tried Googling, but nothing teaches how to sniff iPhone packets、 I am on windows.
Strawberry
  • 58,930
  • 53
  • 138
  • 190
69
votes
3 answers

What is the mask in a WebSocket frame?

I am working on a websocket implementation and do not know what the sense of a mask is in a frame. Could somebody explain me what it does and why it is recommend? 0 1 2 3 0 1 2 3 4 5 6 7 8 9…
bodokaiser
  • 13,492
  • 20
  • 90
  • 133
49
votes
3 answers

Does TCP send a SYN/ACK on every packet or only on the first connection?

I have a TCP server that listens for an incoming client, then sends it one packet of data every second. I was wondering, does the SYN/ACK packet only get sent on initial connection, so it looks like this:
Daniel T.
  • 33,336
  • 31
  • 125
  • 191
37
votes
10 answers

When will a TCP network packet be fragmented at the application layer?

When will a TCP packet be fragmented at the application layer? When a TCP packet is sent from an application, will the recipient at the application layer ever receive the packet in two or more packets? If so, what conditions cause the packet to be…
zooropa
  • 3,661
  • 5
  • 36
  • 57
33
votes
2 answers

Android VpnService to capture packets won't capture packets

I been searching for my answer for a couple of hours now and I can't figure it out. Please help. What I want to do is to use the VpnService in Android to grab network packets like the application tPacketCapture I started by using the ToyVpn sample…
Juan Acevedo
  • 1,507
  • 2
  • 18
  • 37
33
votes
3 answers

Capture incoming traffic in tcpdump

In tcpdump, how can I capture all incoming IP traffic destined to my machine? I don't care about my local traffic. Should I just say: tcpdump ip dst $MyIpAddress and not src net $myIpAddress/$myNetworkBytes ... or am I missing something?
Ricky Robinson
  • 17,881
  • 35
  • 113
  • 172
27
votes
2 answers

Sending UDP Packet in C#

I have a game server (WoW). I want my players to download my custom patches to the game. I've done a program that checks for update/downloading things. I want my program to send a packet to my game server if player have all my patches. I dont need…
DOminik
  • 273
  • 1
  • 3
  • 4
23
votes
6 answers

How should I mark the end of a TCP packet?

In a client/server application were text data of varying length will be sent back and forth between the client and server, how should I mark the end of a packet that is being sent? For example, when the server is receiving packet data from a client…
Keith Maurino
  • 3,184
  • 10
  • 36
  • 48
22
votes
3 answers

Benefits of "Don't Fragment" on TCP Packets?

One of our customers is having trouble submitting data from our application (on their PC) to a server (different geographical location). When sending packets under 1100 bytes everything works fine, but above this we see TCP retransmitting the packet…
ta.speot.is
  • 25,998
  • 8
  • 62
  • 93
21
votes
3 answers

Bluetooth Low Energy - updating a characteristic value repeatedly

Follow-Up question on Electrical Engineering Stackexchange I want to write the value of a Bluetooth Low Energy characteristic repeatedly in a short amount of time (as a possible use case, imagine a mouse). The characteristic with a 128bit UUID is…
Etan
  • 15,505
  • 17
  • 83
  • 142
20
votes
1 answer

How do I get binary byte length in Erlang?

If I have the following binary: <<32,16,10,9,108,111,99,97,108,104,111,115,116,16,170,31>> How can I know what length it has?
0xAX
  • 18,596
  • 23
  • 107
  • 194
19
votes
5 answers

com.mysql.jdbc.PacketTooBigException

I am storing images in MYSQL. I have table as CREATE TABLE myTable (id INT, myImage BLOB); When I am trying to insert 4.7MB file, I am getting exception as com.mysql.jdbc.PacketTooBigException: Packet for query is too large (4996552 > 1048576).…
Fahim Parkar
  • 28,922
  • 40
  • 153
  • 260
16
votes
7 answers

Compression algorithm for JSON encoded packets?

What would be the best compression algorithm to use to compress packets before sending them over the wire? The packets are encoded using JSON. Would LZW be a good one for this or is there something better?
ryeguy
  • 60,742
  • 51
  • 186
  • 256
16
votes
3 answers

Retrieving buffer/packet/payload sizes for USB serial write transfer in userspace Linux C code

Apologies in advance I won't be able to accept an answer here immediately - just thought I'd like to jot this down, while I have the problem... In brief: I can observe three different buffer sizes, when I initiate a write to an usb-serial port using…
sdaau
  • 32,015
  • 34
  • 178
  • 244
1
2 3
96 97