随笔分类 -  TCP/IP

摘要:NAT是网络地址翻译就是把公网IP翻译成私有地址, 又叫端口映射或端口转发. 采用路由方式是指ADSL拥有一个动态或固定的公网IP,ADSL直接接在HUB或交换机上,所有的电脑共享上网。这时ADSL的外部地址只有一个,比如61.177.*.*。 而内部的IP是人为设置的,比如ADSL设为192.16... 阅读全文
posted @ 2015-05-29 16:49 IAmAProgrammer 编辑
摘要:STUN(Simple Transversal of UDP through NATs)[21]是RFC3489 规定的一种NAT 穿透方式,它采用辅助的方法探测NAT 的IP 和端口。STUN 的探测过程需要有一个公网IP的STUN 服务器,在NAT 后面的客户端必须和此服务器配合,互相之间发送若... 阅读全文
posted @ 2014-04-30 17:42 IAmAProgrammer 编辑
摘要:https://github.com/bakwc/udt-nat-traverseExample of nat traversal using udt library.UDTis a udp based connection establishing protocol.server.cpp - wa... 阅读全文
posted @ 2014-04-30 14:17 IAmAProgrammer 编辑
摘要:http://udt.sourceforge.net/DT is a reliable UDP based application level data transport protocol for distributed data intensive applications over wide ... 阅读全文
posted @ 2014-04-30 14:12 IAmAProgrammer 编辑
摘要:http://www.thegeekstuff.com/2010/07/perl-tcp-udp-socket-programming/In this article, let us discuss how to write Perl socket programming using the inb... 阅读全文
posted @ 2014-04-27 21:07 IAmAProgrammer 编辑
摘要:STUN :Simple Traversal of User Datagram Protocol [UDP] Through Network Address Translators [NATs]STUN protocol (Simple Traversal of UDP through NATs) ... 阅读全文
posted @ 2014-04-22 11:04 IAmAProgrammer 编辑
摘要:http://blog.csdn.net/jnu_simba/article/details/8957242一、ISO/OSI参考模型OSI(open system interconnection)开放系统互联模型是由ISO(International Organization for Standardization)国际标准化组织定义的网络分层模型,共七层,如下图。物理层(Physical Layer):物理层定义了所有电子及物理设备的规范,为上层的传输提供了一个物理介质,本层中数据传输的单位为比特(bit)。属于本层定义的规范有EIA/TIA RS-232、EIA/TIA RS-449、V 阅读全文
posted @ 2013-12-29 20:15 IAmAProgrammer 编辑
摘要:http://zh.wikipedia.org/wiki/IEEE_802IEEE 802指IEEE标准中关于局域网和城域网的一系列标准。更确切的说,IEEE 802标准仅限定在传输可变大小数据包的网络。其中最广泛使用的有以太网、令牌环、无线局域网等。这一系列标准中的每一个子标准都由委员会中的一个专门工作组负责。IEEE 802中定义的服务和协议限定在OSI模型[OSI网络参考模型]的最低两层(即物理层和数据链路层)。事实上,IEEE 802将OSI的数据链路层分为两个子层,分别是逻辑链路控制(LLC, Logical Link Control)和介质访问控制(MAC, Media Acces 阅读全文
posted @ 2013-12-29 16:03 IAmAProgrammer 编辑
摘要:http://lwip.wikia.com/wiki/Lwipopts.hMemory management (RAM usage)/** * MEM_LIBC_MALLOC==1: Use malloc/free/realloc provided by your C-library * instead of the lwip internal allocator. Can save code size if you * already use it. */#ifndef MEM_LIBC_MALLOC#define MEM_LIBC_MALLOC 0#endi... 阅读全文
posted @ 2013-12-27 20:52 IAmAProgrammer 编辑
摘要:http://www.st.com/st-web-ui/static/active/cn/resource/technical/document/application_note/DM00036052.pdfLwIP TCP/IP stack demonstration for STM32F4x7 microcontrollersPacket buffer structureLwIP manages packet buffers using a data structure called pbuf.The pbuf structure enables the allocation of a d 阅读全文
posted @ 2013-12-27 14:57 IAmAProgrammer 编辑
摘要:http://blog.csdn.net/ygrx/article/details/8020516好久没有做过技术工作了,前几天因为一些需要,要在ST的OS20平台上进行了LWIP的移植,有一些心得,写出来供大家参考。LWIP的背景我就不介绍了,相信能看到这篇文章的人都对其背景有过了解了。LWIP的模块化还是很强的,所以移植起来没有想象的那么多困难,一个协议栈在某个平台上移植,其实主要来说包括两个大的部分接口,注意一下,我使用的是最新的LWIP1.4.0。1.与系统相关的接口,比如多线程,信号量,互斥锁,系统时间等,当然,LWIP还有一种无操作系统模式,那这些接口就不用实现了。2.与硬件相关的 阅读全文
posted @ 2013-12-25 09:25 IAmAProgrammer 编辑
摘要:DHCP原理详解http://www.linklogger.com/UDP67_68.htmUDP Ports 67 and 68Common UsePort 67 BootpsPort 68 BootpcInbound ScanTypically this traffic is related to normal DHCP operation and is not an attack on your network. DHCP (Dynamic Host Configuration Protocol) is how your computer gets its unique IP addre 阅读全文
posted @ 2013-03-28 18:57 IAmAProgrammer 编辑
摘要:http://stackoverflow.com/questions/8324215/ip-address-of-device-using-phone-as-access-pointThe following code will give you the ip adrress & other details of the wifi enabled devices connected to the the android hotspot deviceMain.javaimport java.util.ArrayList;import android.app.Activity;import 阅读全文
posted @ 2013-03-22 08:22 IAmAProgrammer 编辑

点击右上角即可分享
微信分享提示