network-protocols

Requesting A and AAAA records in single DNS query

喜你入骨 提交于 2019-12-03 09:11:16
问题 I'm working on a DNS query implementation in C and interested in requesting both A and AAAA (IPv4 and IPv6) records in a single query packet, but I'm not getting any responses from the nameserver when I put the two queries together in one packet like this. I've tried sending the query to several different nameservers (both local and 8.8.8.8) with no luck. Is this something that does not work, or is it likely that my query packet is malformed? My basic algorithm for appending the AAAA query

Whether there is a UDT backend for boost::asio?

江枫思渺然 提交于 2019-12-03 07:53:28
Please, tell to me are whether exist UDT protocol backend for boost::asio? UDT is a reliable UDP based application level data transport protocol for distributed data intensive applications over wide area high-speed networks. ( http://udt.sourceforge.net/index.html ) TCP, UDP, and ICMP are supported by Boost.Asio. Other protocols can be implemented by extending the Protocol type requirements . There are several threads on the asio-users mailing list discussing adding support for SCTP, you may be able to use that as an example. This may sound like a shameless plug... But we are currently

Python TCP stack implementation

a 夏天 提交于 2019-12-03 07:42:19
问题 Is there a python library which implements a standalone TCP stack? I can't use the usual python socket library because I'm receiving a stream of packets over a socket (they are being tunneled to me over this socket). When I receive a TCP SYN packet addressed to a particular port, I'd like to accept the connection (send a syn-ack) and then get the data sent by the other end (ack'ing appropriately). I was hoping there was some sort of TCP stack already written which I could utilize. Any ideas?

ZeroMQ + Protocol Buffers

女生的网名这么多〃 提交于 2019-12-03 06:23:36
问题 ZeroMQ FAQ page suggest use of Google's protobuf as a way to serialise message content. Has anyone see a good usage example? I also need to get the answer to "What is the biggest advantage of serialising messages?" - whether it may be something I can live without and take the advantage of slimmer pipeline. I quite like the idea of .proto files and the protoc compiler. Also, it seem that another great tool to throw at the playground would be libev , any comments are welcome :) 回答1: If you are

Available Game network protocol definition languages and code generation

无人久伴 提交于 2019-12-03 05:15:34
问题 I've been looking for a good general purpose binary network protocol definition framework to provide a way to write real-time game servers and clients (think World Of Warcraft or Quake III) in multiple languages (e.g. Java backend server and iPhone front-end client written in Objective-C and Cocoa). I want to support Java Flash clients, iPhone clients and C# clients on windows (and XNA clients on XBOX). I'm looking for a way to efficiently send/receive messages over a TCP/IP or UDP socket

IP Fragmentation and Reassembly

两盒软妹~` 提交于 2019-12-03 04:42:32
问题 I am currently going through my networking slides and was wondering if someone could help me with the concept of fragmentation and reassembly. I understand how it works, namely how datagrams are split into smaller chunks because network links have a MTU. However the example in the picture is confusing me. So the first two sections show a length of 1500, because this is the MSU, but shouldn't this mean that the last one should have 1000 (for a total of 4000 bytes) and not 1040? Where did these

Bluetooth Protocol?

こ雲淡風輕ζ 提交于 2019-12-03 04:19:03
问题 Ok, this might just be a dumb question, but I was wondering if Bluetooth follows TCP or UDP protocol? From my knowledge of network protocols (which isn't much), I would say that it doesn't follow either of those two and that there is some kind of specific bluetooth protocol that exist. I have one more question...what protocol does the bluetooth functionality in the GameKit in the new iPhone OS 3.0 follow? I haven't looked through every single word of the apple documents yet, but so far, I

How To Generate Tcp,ip And Udp Packets In Python?

强颜欢笑 提交于 2019-12-03 04:13:42
Can anyone tell me what is the basic step to generate UDP, TCP and IP Packets. And how can i generate it using Python? as suggested by jokeysmurf you might craft packets with scapy if you you want to send/receive usual packets then you should use socket or socketserver http://docs.python.org/library/socket.html#module-socket http://docs.python.org/library/socketserver.html#module-SocketServer to send TCP to google's port 80 use import socket HOST = 'google.com' # The remote host PORT = 80 # The same port as used by the server s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(

Tools for experimental Protocol Design & Development?

旧街凉风 提交于 2019-12-03 03:10:53
Are there any open source, high level tools that would facilitate and simplify development of experimental network protocols (TCP/UDP) using a GUI? Basically, something like a dynamic state machine editor that would allow you to define "packets", "messages", "states", "validators", "handlers" etc. Preferably, such a tool would be comprehensive enough to deal with all relevant aspect of the protocol (i.e. client & server), so that the high level protocol description could be serialized out to an XML/RDF file where it could be used to dynamically create application code to implement the protocol

Everything a c++ developer should know about network programming?

霸气de小男生 提交于 2019-12-03 02:54:02
问题 So I am doing a lot of high performance network programming using Boost::Asio (or just Asio if you will), and have a pretty solid grasp of the essentials of both TCP and UDP protocols. I am wondering though, because I still don't consider myself an expert in networking despite my knowledge, what is a good way to frame the essentials of what networking programmers should know, especially for those trying to push the performance of their large networking based applications? There is a great