gre头部发麻是什么原因 key有什么用

Network(60)
受欢迎的一种实现是使用 Microsoft 的两个配置局域网到局域网路由,如下所示的路由和远程 Access Services (RRAS) 的服务器之间的 VPN 技术:
L-RRAS ===== VPN ===== R-RRAS
--------------
-------------------
--------------
为了更好地理解 GRE 在创建使用以及使用 Vpn,最好先了解数据包结构。PPTP 控制会话建立之后,使用 GRE 封装数据或负载以安全的方式。PPTP 有关的其他信息,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章:
VPN 隧道的 PPTP 协议数据包说明和使用
Microsoft 还使用了用于封装数据的 GRE 数据包格式具有以下常规窗体:
+-----------------------------------+
| Data Link (D/L) Header
+-----------------------------------+
| IP Header
+-----------------------------------+
| GRE Header
+-----------------------------------+
| PPP Header
+-----------------------------------+
| Encrypted PPP Payload
+-----------------------------------+
| Data Link Trailer
+-----------------------------------+
提供点对点协议 (PPP) 头,然后放在 GRE 数据包的数据或将通过该隧道的有效负载。GRE 数据包执行的两个隧道终结点之间的数据。GRE 数据包已到达最终目的地 (隧道的端点) 后,它将被丢弃,然后封装的数据包传送到最终目的地。
在此部分的顶部使用关系图中,从 Lclient 的 Internet 协议 (IP) 数据包首先传输到 L RRAS 服务器。IP 数据包被加密、 指定附加的 PPP 标头,然后放在 GRE 数据包。由于 PPP 标头还加密和数据,下面的关系图说&PPP 存根&并不&PPP 标头&。虽然它不能看到它,GRE
协议配置为知道存在 PPP 标头。GRE 封装和加密数据数据包的通过 Internet 与最终目标的&R RRAS 服务器。R RRAS 服务器会去除头 GRE 和 PPP 标头,然后传输到 Rclient 解密后的数据 (IP 数据包)。
L-RRAS ===== VPN ===== R-RRAS
--------------
-------------------
--------------
D/L header
D/L header
D/L header
GRE header
Payload (encrypted)
若要了解如何 GRE 协议工作作为封装数据的协议,您需要检查的协议标头格式。GRE 数据包报头,如 Microsoft 的实现具有以下形式:
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|C|R|K|S|s|Recur|A| Flags | Ver |
Protocol Type
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Key (HW) Payload Length
Key (LW) Call ID
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Sequence Number (Optional)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Acknowledgment Number (Optional)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
下表列出了每个字段与它的功能和可以使用的参数的详细说明。
+-----------------------------------------------------------------------+
| (Bit 0) Checksum Present. Set to zero (0).
+-----------------------------------------------------------------------+
| (Bit 1) Routing Present. Set to zero (0).
+-----------------------------------------------------------------------+
| (Bit 2) Key Present. Set to one (1).
+-----------------------------------------------------------------------+
| (Bit 3) Sequence Number Present. Set to one (1) if a payload
| (data) packet is present. Set to zero (0) if payload is not
| present (GRE packet is an Acknowledgment only).
+-----------------------------------------------------------------------+
| (Bit 4) Strict source route present. Set to zero (0).
+-----------------------------------------------------------------------+
| Recur | (Bits 5-7) Recursion control. Set to zero (0).
+-----------------------------------------------------------------------+
| (Bit 8) Acknowledgment sequence number present. Set to one (1)|
| if packet contains Acknowledgment Number to be used for
| acknowledging previously transmitted data.
+-----------------------------------------------------------------------+
| Flags | (Bits 9-12) Must be set to zero (0).
+-----------------------------------------------------------------------+
| (Bits 13-15) Must contain 1 (enhanced GRE).
+-----------------------------------------------------------------------+
|=======================================================================|
+-----------------------------------------------------------------------+
| Protocol Type
| Set to hex 880B (for PPP).
+-----------------------------------------------------------------------+
| Key (HW) Payload Length | (High 2 octets of Key) Size of the payload, |
| not including the GRE header.
+-----------------------------------------------------------------------+
| Key (LW) Call ID
| (Low 2 octets) Contains the Peer's Call ID
| for the session to which this packet
| belongs.
+-----------------------------------------------------------------------+
| Sequence Number
| Contains the sequence number of the payload.|
| Present if S bit (Bit 3) is one (1).
+-----------------------------------------------------------------------+
| Contains the sequence number of the highest |
| Acknowledgment Number
| numbered GRE packet received by the sending |
| peer for this user session. Present if A bit|
| (Bit 8) is one (1).
+-----------------------------------------------------------------------+
GRE 协议有几个值得注意的增强功能。这些是从请求注释 (RFC) 2637年。
确认号字段中。这用来确定是否在远程端的隧道到达特定 GRE 数据包或一组数据包。此确认功能不是任何用户数据的数据包的传输与配合使用的。它是改为用来确定用户数据数据包将要为给定的用户会话通过隧道传输的速率。隧道的可移植性。有效负载部分包含 PPP 数据包不带任何介质的框架元素。序列号跟踪。涉及到的序列号是每个数据包序列号。每个用户会话的序列号被设置为会话启动时为零。为给定的用户会话包含负载 (并且 S 位或第 3 位设置为 1) 发送每个数据包为该会话分配下一个连续的序列号。使用了非法的 Ack。此协议允许确认要执行的数据,并使总体协议更加有效,这反过来又要求更少的数据包的缓存。
当您查看网络监视器跟踪,您应注意以下几点。标记摘要前 16 位的十六进制值组成。在下面的示例数据包中,标记摘要是 12,417 或 0x3081h。Microsoft 网络监视器分析器不表示版本号标记摘要位字段中,但它存在。例如,假设以下示例数据包:
GRE: Flags Summary = 11)
GRE: 0............... = Checksum Absent
GRE: .0.............. = Routing Absent
GRE: ..1............. = Key Present
GRE: ...1............ = Sequence Number Present
GRE: ....0........... = Strict Source Route Absent
GRE: ........1....... = Acknowledge Sequence Number Present
GRE: Recursion Control = 0 (0x0)
GRE: Ver = 1 (0x1)
GRE: Protocol Type = 0x880B
GRE: Key Length = 90 (0x5A)
GRE: Key Call ID = 30)
GRE: Sequence Number = 16 (0x10)
GRE: Ack Number = 15 (0xF)
前 8 位是 ,它表示一个十六进制值为 30。接下来的 8 位是 81 的 ,它表示一个十六进制值。因此,标记摘要是 0x3081h 或以十进制表示的 12,417。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:115678次
积分:1989
积分:1989
排名:第15207名
原创:42篇
转载:248篇
(2)(1)(3)(4)(4)(3)(6)(11)(21)(29)(6)(1)(2)(1)(4)(2)(7)(8)(4)(1)(4)(1)(8)(5)(19)(21)(4)(4)(7)(11)(10)(5)(10)(7)(10)(6)(11)(3)(4)(14)(2)(2)(1)(6)(1)君,已阅读到文档的结尾了呢~~
数据学员教材下册
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
数据学员教材下册
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer--144.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口该账号邮箱未验证,请后登录
请输入正确的密码!
记住登录状态
使用合作网站帐号登录 :
在线时间1820 小时经验值68655 小站金币37535 最后登录注册时间主题精华1阅读权限0帖子
小站金币37535
今年元月写的argument入门系列颇受欢迎,这几天写一下issue的入门。很多同学头疼issue,最大的困难在于没法写到一定的字数。其实字数真的不能强求,不是说写到一定字数就能拿高分,事实上,有网友曾经写得很少,但是在考场上花了很多时间修改,反而拿到4分。所以,不要强求字数。
issue要入门首先要认真读题,把题目彻底读懂。很多同学不认真读题,发习作上论坛的时候都不抄题。我每次批改版友的作文时都会对照着看下题目,所以对于不抄题目的行为十分不满。新G的作文时间很短,加上字数的压力,导致部分同学写的时候不认真读题,结果很悲剧。
如何做到认真审题?首先要避免误读。今天才看到一篇习作,写的是issue 58
Issue 58 Learning is primarily a matter of students cannot be motivated by school or college alone.
Write a response in which you discuss the extent to which you agree or disagree with the statement and explain your reasoning for the position you take. In developing and supporting your position, you should consider ways in which the statement might or might not hold true and explain how these considerations shape your position.
这道题比较特别,前后两句话用分号隔开,是什么意思呢?前一句说学习主要是一件关乎个人自律的事情,后一句说仅仅靠学校、大学不能激励学生。一般可理解为后一句是前一句的某种推论或impllication,这两句话可以当成一个整体来讨论。我们可以看看这位同学怎么写的
In my opinion, whether or not students should be motivated by educational institution as learning is a matter of personal discipline is mainly depended on what kind of those educational institution they attend. For students learning in vocational school, it is unnecessary for school to do anything for encouraging students in learning, as the students have already known their professional orientation before enrollment.
一看开头我就断定这篇文章废掉了。因为作者将cannot误读为should not 而紧接着的unnecessary也是顺着这个思路去写的,这就是对题目的大大的误解。因为should是一个价值判断的问题,应该与否关乎我们的三观,是一个所谓的normative satement,而能不能做某件事则是一个客观的positive (testable) statement。学过经济学的同学都会明白这两者之间的区别。这道题分明是在讨论学校能否激励学生,而前面说学习是关乎自律的事情是后一句的某种依据和前提,因此这里的关键是学校是否有机会、有资源去激励学生,而不是应不应该的问题。
这里要强调的是issue的题干里每个词都需要我们在下笔之前仔细推敲,探明整个的意思。避免误读题目实在是写好issue或者不写砸issue的第一步。
在不误读的基础上,还要学会抓住题干中的关键词,所谓抓住不仅仅是认识到这是关键词,而是要在整篇文章里反复去回应这个关键词。这里以issue 1为例。
As people rely more and more on technology to solve problems, the ability of humans to think for themselves will surely deteriorate.
Write a response in which you discuss the extent to which you agree or disagree with the statement and explain your reasoning for the position you take. In developing and supporting your position, you should consider ways in which the statement might or might not hold true and explain how these considerations shape your position.
这道科技类的题目相对是比较好写的,但是部分同学在写的时候没能紧扣题干里的关键词。这道题的关键在于abitlity to think for themselves。而事实上think这个概念是很难写的,我们都知道think是什么意思,但是要说清楚think是怎么一回事却很难,因为这是个相对抽象的概念。比如某同学写的中间段
In research field, thinking is the key of achievement, and actually the existence of many kinds of physical axioms and outstanding speculation have already prove that. The path of thinking out is not smooth, but more thorny. In the process, massive expected and unexpected problems keep testing thinkers’ ability, as well as their patience. By that time, it is better to rely on production of technology release the pressure outside, leading no harm to ability, but assistance to process of thinking. According to that, the ability of thinking scientist possess can be utilized maximized, bringing to scientist the outstanding discovery that they expected, or are even surprised with.
整段其实也多次提到了thinking 但是读完之后还是不知道在说啥 一方面是表达的问题,更重要的是对于thinking这个概念没有具体讨论
这里摘录中间第一段
Consider the scientists and engineers who are responsible for developing the theoretical and practical aspects of the new technologies. It is true that they also rely on technologies to solve their problems in research and product developements. But they also rely on their own thinking abilities to solve problems in their works. 这两句作为本段的开头分别回应了题干中的rely more and more on technology to solve problems以及 the ability of humans to think for themselves
For example, software engineers of mobile apps rely on the mobile programming platforms to develop the apps as the platform can help the engineers to visualize the user interface of the apps.&&The computers they use can also collect and analyze the user data for the software engineers to better understand how the users behave in response to different app design decisions.
接下来这部分重点解释It is true that they also rely on technologies to solve their problems in research and product developements.
But ultimately, no computer softwares can replace the engineers in solving the key problems such as how to attract more users and how to improve the quality of user experiences. If the engineers are to improve the mobile apps, they still have to think by themselves to decide how to improve the design by taking into account the data provided by different tools.
而接下来这部分则是回应But they also rely on their own thinking abilities to solve problems in their works.
注意我这里讲think for themselves放到一个很具体额度语境中去演绎
Likewise, the computer scientists are challenged to optimize the algorithms used in different programs to reduce the time required to run the programs. Sophisticated computer programs such as Matlab can help the scientists to simulate different algorithms and get data on their computational performance. But the computer scientists have to think by themselves to tweet the mathetical models and develop more efficient algorithms.&&
最后这部分新加了一个相关的例子&&同意很具体的进行讨论。
为什么举例说明这么重要,就在于通过例子,我们可以把一些本来很抽象不易说清楚的概念很实在、具体的讨论。我们不知道怎么说清楚思考这件事,但是在软件开发和设计中思考就是去想办法吸引用户、提升用户体验。这样文章就好写很多了。
更多精彩:
相关帖子 |
只有努力的人才配得上幸福
在线时间8 小时经验值236 小站金币19 最后登录注册时间主题精华0阅读权限10帖子
博士生, 积分 236, 距离下一级还需 65 积分
小站金币19
楼主好厉害~感谢分享~~~
&感谢亲的支持,考试加油。&
在线时间83 小时经验值1344 小站金币178 最后登录注册时间主题精华0阅读权限20帖子
实习讲师, 积分 1344, 距离下一级还需 657 积分
小站金币178
&感谢亲的支持,考试加油。&
杀T考G屠鸭,一切尽在TPO小站论坛!
在线时间1820 小时经验值68655 小站金币37535 最后登录注册时间主题精华1阅读权限0帖子
小站金币37535
yadewayidimi93 发表于
楼主好厉害~感谢分享~~~
感谢亲的支持,考试加油。
只有努力的人才配得上幸福
在线时间1820 小时经验值68655 小站金币37535 最后登录注册时间主题精华1阅读权限0帖子
小站金币37535
光之炽天使 发表于
感谢亲的支持,考试加油。
只有努力的人才配得上幸福
2014世界杯球迷勋章(德国)
购买了球迷勋章的德国球迷
2014世界杯球迷勋章(巴西)
购买了球迷勋章的巴西球迷
2014世界杯球迷勋章(阿根廷)
购买了球迷勋章的阿根廷球迷
2014世界杯球迷勋章(荷兰)
购买了球迷勋章的荷兰球迷
购买了小站星座勋章
小站生肖勋章(经验值&1000&注册天数&30)
购买了萌萌哒勋章
购买了萌萌哒勋章
购买了萌萌哒勋章
购买了萌萌哒勋章
购买了萌萌哒勋章
购买了萌萌哒勋章
购买了萌萌哒勋章
购买了萌萌哒勋章
购买了萌萌哒勋章
我们将以您绑定的
作为接收批改短信的默认手机号码
订阅小站最新精品课程信息
输入您的手机号码,批改动态随时掌握!
订阅小站最新精品课程信息
您可以在设置—密码安全—绑定手机中随时修改您的手机号码
还差最后一步了!只要填写完邮箱即可同时获得批改短信提醒和小站精品课程信息两大福利了!
小站论坛,All Rights Reserved 小站国际教育&&沪ICP备号&&夜里回家找不到钥匙?那是你没用这个发光小配件
[摘要]LumNkey的小配件其实就像是套在钥匙上的“帽子”。每次接近大门时就会发出闪烁的灯光,让你即便是在伸手不见五指的夜里,也可以顺利从包包中找到钥匙。
腾讯数码讯(Guti)我们大部分人,几乎每天都在各种“找找找”的模式中无限循环。出门前找钥匙钱包和手机;看电视找遥控器;好不容易忙了一天眼看回到家,还得找大门钥匙。哎,何时才能够摆脱这个无限“找找找”的魔咒。
正在加载...
其实,现在市面上已经有不少专门针对“找找找”推出的小配件。今天,就给各位介绍一款可以帮你摆脱“钥匙找找找”魔咒的配件,保证你不会再有找不到钥匙的尴尬。这个名为LumNkey的小配件,其实就像是套在钥匙上的“帽子”。每次接近大门时就会发出闪烁的灯光,让你即便是在伸手不见五指的夜里,也可以顺利从包包中找到钥匙。LumNkey共有两部分,戴在钥匙上的“帽子”和装在大门上的感应器。LumNkey的“帽子”部分配备了LED灯以及传感器,主要接近了大门上配套的感应器,LED灯泡就会开始闪烁。LumNkey“帽子”部分的安装也非常简单,只需要将上下两部分合起来,扣在要是柄上即可。LumNkey另一个配套的基座部分通常安装在大门钥匙孔和门把手的上方。除了内置传感器,同样配备了LED照明灯,可以在感应到“帽子”接近时点亮,提供照明。这样一来,就算是在没有灯光的黑夜里,即便是头脑不清醒的醉汉,也能够轻松找到钥匙孔,顺利打开大门。目前这套LumNkey已经开始登陆众筹网站Kickstarter进行资金筹集,众筹目标为5万美元,早鸟价格为30美元(约合人民币207元)起,如果一切顺利的话,预计在2017年5月出货,总为找钥匙发愁、经常因为太黑找不准钥匙孔的各位亲,不妨入手这套贴心又实用的小配件吧。来源:Kickstarter推荐:关注腾讯数码微信官号(ID:qqdigi),带你玩遍各种潮酷新品,前沿资讯、一手评测、视频搞机、趣玩直播,还有各种新奇玩儿法。一加3T用着怎么样?无人机最怕什么?喝凉水都长肉怎么办?iPhone 8原型机有几款?答案都在这里。
[责任编辑:jiedu]
还能输入140字
Copyright & 1998 - 2016 Tencent. All Rights Reserved

我要回帖

更多关于 gre key 的文章

 

随机推荐