摘要:
UDP是传输层协议,和TCP协议处于一个分层中,但是与TCP协议不同,UDP协议并不提供超时重传,出错重传等功能,也就是说其是不可靠的协议。 UDP数据报结构: UDP首部格式: 解释: 由于很多软件需要用到UDP协议,所以UDP协议必须通过某个标志用以区分不同的程序所需要的数据包。端口号的功能就在 阅读全文
posted @ 2016-03-15 23:46
ZHOU YANG
阅读(907)
评论(0)
推荐(0)
摘要:
前面讲到了,IP协议并不是一个可靠的协议,它不保证数据被送达,那么,自然的,保证数据送达的工作应该由其他的模块来完成。其中一个重要的模块就是ICMP(网络控制报文)协议。 当传送IP数据包发生错误--比如主机不可达,路由不可达等等,ICMP协议将会把错误信息封包,然后传送回给主机。给主机一个处理错误 阅读全文
posted @ 2016-03-15 23:44
ZHOU YANG
阅读(1262)
评论(0)
推荐(0)
摘要:
选路是IP层最重要的一个功能之一。前面的部分已经简单的讲过路由器是通过何种规则来根据IP数据包的IP地址来选择路由。这里就不重复了。首先来看看一个简单的系统路由表。 对于一个给定的路由器,可以打印出五种不同的flag。 这样,IP选路的方式就可以更加具体化了。如下 顺便提一下那个GenMask(还记 阅读全文
posted @ 2016-03-15 23:44
ZHOU YANG
阅读(1445)
评论(0)
推荐(0)
摘要:
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then l 阅读全文
posted @ 2016-03-15 23:42
ZHOU YANG
阅读(355)
评论(0)
推荐(0)
摘要:
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or 阅读全文
posted @ 2016-03-15 17:07
ZHOU YANG
阅读(311)
评论(0)
推荐(0)
摘要:
The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each hou 阅读全文
posted @ 2016-03-15 16:04
ZHOU YANG
阅读(378)
评论(0)
推荐(0)

浙公网安备 33010602011771号