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
-2
votes
2 answers

UDP Packet to Class

I'm making a simple program that receive UDP Packets from another program and I want to cast this packet to a class. I have a class : public class Packet { public string MyFirstProperty {get; set;} public string MySecondProperty {get; set;} …
-2
votes
1 answer

How do I obtain UDP packet data with double type that is received over a network?

I have a java program written that simply receives data sent through a UDP socket and prints it to the screen. The data that is received is sent from another computer that uses matlab to send the data. I am pretty sure that the matlab simulation is…
Flower
  • 249
  • 1
  • 6
  • 14
-2
votes
1 answer

Looking for c# packet capture library

i'm writing C# code in visual studio2015 and im looking for packet capture library my goal is to reject some non-allowed packets and ddos attack
Jason
  • 183
  • 1
  • 1
  • 9
-2
votes
1 answer

1's complement - Can 1 bit or 2 bit errors go undetected? How? Why?

Within a network packet header, when 1's complement is used with 8 bit bytes (rather than the 16 bits normally used in TCP), can a 1 bit error go undetected? can a 2 bit error go undetected? If they can how and why does this happen?
Rahim Khoja
  • 615
  • 13
  • 25
-2
votes
1 answer

Set a TCP port > 65535 with pcap and dnet

I have been injecting packets on the network and watching the effects via wireshark. I am able to correctly set and change tcp ports and set the source and destination. However, I am now having an issue. One of the things I need to do is to set a…
Alex
  • 53
  • 8
-2
votes
2 answers

THE Size Of Udp Packets

i want to know if we have a simple udp packet that has a string in it how much the size of udp packet will be for exmaple we have a udp packet that has a string in it the string is:stackoverflow.com ok now how much the size of the udp packet will…
-2
votes
1 answer

Packet analyzer in c

I need to capture packets which are coming from interface (say eth0) and need to print those packet details (same as wireshark) through C language. Packet can be any general packet. is there any way to achieve this ?? (I don't want to use any…
-2
votes
2 answers

How does web server(IIS)detect user client IP of packet in network layer?

I have a web server that can receive the client IP by http request headers in application layer.But if IP information don't exist in http headers.How can I know the client IP in network layer? For Example,to install networking software or hardware…
JohnnyLiao
  • 387
  • 2
  • 7
  • 17
-2
votes
1 answer

Annoying error when sending an udp packet

I have a problem which I can't solve. I've made a program which sends a UDP-packet to a certain IP-address. Here's source code: byte[] packetData = System.Text.ASCIIEncoding.ASCII.GetBytes(""); string IP = txtIP.ToString(); int…
-2
votes
1 answer

assembling a file received through UDP Datagram packets

I'm sending/receiving a file (on localhost) through UDP Datagram, and now I want to assemble the received packets to create that received file and save it on some path (desktop for example) .. what should I do? any idea? You can find my…
ZelelB
  • 1,546
  • 5
  • 31
  • 60
-2
votes
1 answer

How to add 'ff ff ff ff' (HEX) before the data of an byte[] array?

I am currently programming an emulator for a multiplayer game. The client sends this to the server: ÿÿÿÿ2joinParty 61586 110000140b9f842 1 1 0 -1 1 pw 1. My program sends joinParty 61586 110000140b9f842 1 1 0 0 1 pw 1 to the server. Now when I make…
Robin
  • 3
  • 2
-3
votes
0 answers

Does anyone know how the packets are transferred between nodes in WSN using MATLAB?

Currently, i am trying to create an algorithm for WSN. However, the problem with node's packets transmit/receive remains. If anyone have done this kind of work already your help can boost my work.
-3
votes
1 answer

TCP Packet Structure

Can somebody help me creating a tcp packet with this packet structure in nodejs ? enter image description here const net = require('net'); var createPacket = require("./MSPPacketHandler/createPacket"); var host = '192.168.4.1'; var port =…
-3
votes
1 answer

Networking packet and data

What is the difference between packets and data in any of the network models (TCP/IP) or (OSI) models? And please add some examples in the answer.
-3
votes
1 answer

Can iBeacon packets 02 01 1a 1a ff 4c 00 0c 0e?

Is iBeacon Advertising data is started to 02 01 1a 1a ff 4c 00 02 15 or 02 01 06 1a ff 4c 00 02 15?? I captured sample Advertising packets however, it started to 02 01 1a 1a ff 4c 00 0c 0e I known as last 2 byte is data type and data length that…
lkrr
  • 15
  • 5
1 2 3
96
97