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
1 answer

Networking Sockets Theory

If two devices with different IP addresses send UDP packets through processes with different ports to the same destination device and on the same destination port, will the two packets be received by the same socket?
user1553248
  • 1,184
  • 2
  • 19
  • 33
0
votes
1 answer

Client receiving packet only on close

Basically I made two C# applications, a client and a server. The client connects to the server (via sockets), then sends a packet containing some text, and the server should reply. My problem is: the server sends (or the client receives) the…
trapped
  • 27
  • 1
  • 8
0
votes
1 answer

hex stream to UTF string with C#

i captured tcp packets by using wireshark. but wireshark can not decode bytes to UTF unicode. so i copied packet's hex stream to notepad. i have hex stream, like…
0
votes
1 answer

Number of packets ordered by IP

My server is currently under a small DOS attack. I would like to know if there is an easy way to get the list of IPs sending packets to my server, ordered by the number of packet they sent, on a specific port. I use ubuntu server 12.04 Thank you in…
Laeti
  • 43
  • 1
  • 1
  • 4
0
votes
0 answers

Parsing packet got error: unpack requires a string argument of length

I'm parsing a packet written in a binary file. I have to retrieve each field in different variables because I have to validate them. I have an error after using struct over some fields: (pk_dst,)=struct.unpack('!I', line[16:20])#ip_dst…
rocco
  • 25
  • 7
0
votes
1 answer

Extracting bit from a flow of bit string in Python

I have a binary file where a IP Packet was written. I have to create a Python program that has to validate each field in the IP Packet, so I'm trying to parse each field form the file (Ip Packet). The problem that I have is there are two fields that…
rocco
  • 25
  • 7
0
votes
1 answer

Cannot received UDP packet on Iphone w/ AsyncUdpSocket

Hi guys im working on a project at school and I got a problem, I'm able to send UDP packet to different adress but I can't read UDP packet sent to my iPhone, after receiving an UDP packet I want the data to appear in a label, im doing something…
0
votes
1 answer

How to read the buffer from a paquet (tftp)

I am currently trying to write a tftp in C. But i have some difficulties to read the packet that I sent. Here is what I have : The struct that I am sending : typedef struct { short type; short block_num; char* data; } data_t; the function (server's…
Exia0890
  • 441
  • 6
  • 21
0
votes
1 answer

Android java.lang.ClassCastException with a socket

I'm developing an android application to connect to a server. I'm having some issues with errors, the exact same application works perfectly with java swing on a standard pc. The exact error is E/AndroidRuntime(1257): java.lang.ClassCastException:…
Nick Garfitt
  • 35
  • 1
  • 9
0
votes
1 answer

Custom xml packet in android

Can we create/construct a custom xml packet in android? I need to create an xml packet in the format shown below and send it to the server. Sending a packet to the server can be done using the DatagramSocket and DatagramPacket according to the…
User210282
  • 83
  • 4
  • 13
0
votes
1 answer

How to understand packet lost in UDP?

How can I understand packet lost in UDP? For example in a chat application if a Sentence is not received how to understand it and warn client?
Hanna
  • 539
  • 2
  • 9
  • 24
0
votes
1 answer

sending packets to a client given the remote_endpoint object and the socket?

Is there a way to send a packet to a client knowing the remote_endpoint object where endpoint.address and endpoint.port are used? EDIT: I added the async_write free function but I still don't know how to specify the ip-address or the port for the…
pandoragami
  • 5,387
  • 15
  • 68
  • 116
0
votes
1 answer

C++: BOOST-ASIO async_read_some does not return number of packet bytes?

I tried using following code to read the number of available bytes in the socket (on the server side) and the variable packet_bytes does not do anything. I was expecting the number of bytes used by the packet to be read into packet_bytes but that…
pandoragami
  • 5,387
  • 15
  • 68
  • 116
0
votes
1 answer

How to read IRC packets?

I'm currently using pcap in C++ to read a tcp packet. The problem is I'm confused as to how I go about reading if the packet is using an IRC protocol and then how do I read the commands that are sent from and to the IRC client and server? For…
user489162
0
votes
2 answers

capture data packets in LAN

in my college lab all the PCs are connected via LAN by L2 switch. i want to capture the http data packets by wireshark but it is only showing the interface of my own PC. so how can i capture the packets of other PCs. can somebody tell me working of…
krishan sethi
  • 43
  • 1
  • 6