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

Public static method is not importing from src.test.java packet to src.main.java packet

Why public static method from class of src.test.java packet is not importing to classes of src.main.java ? When I print MainTest in classes of src.main.java packet, the IDE can't recognize it
Igor Vlasuyk
  • 514
  • 2
  • 10
  • 22
-1
votes
1 answer

Java Sending a short String via Socket in a high frequency

I am trying to make an application to control DMX Channels. For this I have an ESP8266 which takes a String as an input like "2.255", where the first integer is the DMX Channel and the second integer the value. For my PC I wrote a method that first…
FreezedHD
  • 1
  • 1
-1
votes
1 answer

Route packets via backbone interface

I have a general routing question, we have 2 servers in 2 separate datacenters they can both talk to each other via em1 interface, but cannot talk to each other via p1p1 interfaces we have a customer that will connect to NY1's p1p1 interface + port…
perfecto25
  • 772
  • 9
  • 13
-1
votes
1 answer

How can you reduce the transmission size of a packet being sent via multicast?

I have a few questions (all related), so I'll first explain the context and then ask. My primary question is the title, but beyond that I think I just need clarification and confirmation on whether my understanding is correct. We have some…
BenH
  • 1
  • 1
  • 1
-1
votes
1 answer

How to print data in a buffer irrespective of zeros in between till the given length

I wrote a simple program to read a packet till layer 3 and print the same in hex format. I gave input in hex format. My output should be same as this. Input: 45 00 00 44 ad 0b 00 00 40 11 72 72 ac 14 02 fd ac 14 00 06 e5 87 00 35 00 30 5b 6d ab c9…
satyaGolladi
  • 180
  • 13
-1
votes
2 answers

Recv function for TCP Socket programming

I am new in Socket Programming. I am trying to create a client application. The server is a camera which communicates using TCP. The camera is sending continuous data. Using Wireshark, I can see that the camera is sending continuous packets of…
Lucky
  • 49
  • 7
-1
votes
4 answers

Changing incoming and outgoing UDP Communication

What is the best way of reading, changing, and resending UDP communications? For instance i have a server application that tells a master server it's alive sending a packet over UDP on port 3209. It sends out "I'm alive, my ip is xxx.xxx.xxx.xxx and…
E3pO
  • 493
  • 1
  • 9
  • 21
-1
votes
1 answer

Create magic packet on C++

I'm trying to crate a Magic Packet to apply WOL on a certain PC, I tried to do it in the same format exactly like the packet looks in a Wireshark capture, but the PC doesn't recognize the receiving packet as a magic packet here is the code: UINT8* …
DvoraFux
  • 11
  • 3
-1
votes
1 answer

How to capture all requests with scapy

i need your help guys, well my idea is, after we press the enter v button to search for a site, i have to capture this packet and check it, i already did the "check part", the packet i am looking for is 'get' requests, i guess? so here is the code…
-1
votes
1 answer

Software Defined Networking in Python Using Linux RYU Controller

I am actually working in a project SDN(Software Defined Networking) Based Project using python on linux(Ubuntu). Which actually works as a packet traffic monitor. All this work is shown on the cmd without GUI. I want a GUI in which we can see the…
-1
votes
3 answers

Casting structs to the pointers

For a couple of days now I'm working with packets on c, I have successfully created icmp packet to send, but I didn't get the way to put it into the socket by myself, so I have found multiple codes that should perform similar action. So they all…
Matthew Darens
  • 129
  • 2
  • 8
-1
votes
1 answer

How to check if ethernet header is type IEEE 802.1Q?

I use pcap_open_offline for parsing packets. I what to check if ethernet header is type IEEE 802.1Q. I know I need to check if first 16 bits in 802.1Q tag are equal to 8100 but I do not know how to do it. Or if you know another way I can try it.
Spook
  • 331
  • 1
  • 6
  • 16
-1
votes
1 answer

Does recvfrom() modify len?

sendto() give me "invalid argument" because len decrease by 2 bytes from 20. Why calling recvfrom() modifies len? s=socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); struct sockaddr_ll sll; len=sizeof(sll); bzero((char *)&sll,…
Enrico R.
  • 21
  • 5
-1
votes
2 answers

What is a good method for decrypting a packet being sent from a client over a local network? (Possible wireshark?)

At the moment I am working on a C# project that processes packets being sent from the client using a PacketReader I created. I log the packet and data being sent from the client into a textbox, but how do i really understand what is being sent? Here…
-1
votes
1 answer

Is there a library for crafting all kinds of Bluetooth packets?

Scapy is a library for crafting any kinds of ip packets in python. Is there something similar for bluetooth? I have looked at libraries such as bleno and noble for nodejs but they allow discovery and advertisements for BLE.
Lew Wei Hao
  • 763
  • 1
  • 13
  • 25
1 2 3
99
100