layer

osi七层模型

孤者浪人 提交于 2019-12-06 16:35:39
OSI 七层模型和TCP/IP模型及对应协议(详解) 完成中继功能的节点通常称为中继系统。在OSI七层模型中,处于不同层的中继系统具有不同的名称。 一个设备工作在哪一层,关键看它工作时利用哪一层的数据头部信息。网桥工作时,是以MAC头部来决定转发端口的,因此显然它是数据链路层的设备。 具体说: 物理层:网卡,网线,集线器,中继器,调制解调器 数据链路层:网桥,交换机 网络层:路由器 网关工作在第四层传输层及其以上 集线器是物理层设备,采用广播的形式来传输信息。 交换机就是用来进行报文交换的机器。多为链路层设备(二层交换机),能够进行地址学习,采用存储转发的形式来交换报文.。 路由器的一个作用是连通不同的网络,另一个作用是选择信息传送的线路。选择通畅快捷的近路,能大大提高通信速度,减轻网络系统通信负荷,节约网络系统资源,提高网络系统畅通率。 交换机和路由器的区别 交换机拥有一条很高带宽的背部总线和内部交换矩阵。交换机的所有的端口都挂接在这条总线上,控制电路收到数据包以后,处理端口会查找内存中的地址对照表以确定目的MAC(网卡的硬件地址)的NIC(网卡)挂接在哪个端口上,通过内部交换矩阵迅速将数据包传送到目的端口,目的MAC若不存在则广播到所有的端口,接收端口回应后交换机会“学习”新的地址,并把它添加入内部MAC地址表中。 使用交换机也可以把网络“分段”,通过对照MAC地址表

Leaflet add/remove legends with layer selection

可紊 提交于 2019-12-06 16:00:06
I'm new to Leaflet/JavaScript and have been struggling to get legends a map to show only when a specific layers is selected from the layer control. I have three layers, one of which I would like to have no legend and two others that have a corresponding legend. I came across an example, but have not been able to make it work: // Add and remove legend from layers map.on('overlayadd', function (eventLayer) { // Switch to the Permafrost legend... if (eventLayer.name === 'Permafrost') { this.removeControl(legend1); legend2.addTo(this); } else { // Or switch to the treeline legend... this

【MySQL基础架构和运行原理☞基础】

最后都变了- 提交于 2019-12-06 15:37:45
1.MySQL 的前世今生 MySQL 是一个开放源代码的关系数据库管理系统。原开发者为瑞典的 MySQL AB 公司,最早是在 2001 年 MySQL3.23 进入到管理员的视野并在之后获得广泛的应用。 2008 年 MySQL 公司被 Sun 公司收购并发布了首个收购之后的版本 MySQL5.1 ,该版本引入分区、基于行复制以及plugin API 。移除了原有的 BerkeyDB 引擎,同时, Oracle 收购 InnoDB Oy 发布了 InnoDB plugin,这后来发展成为著名的 InnoDB 引擎。 2010 年 Oracle 收购 Sun 公司,这也使得 MySQL 归入 Oracle 门下,之后 Oracle 发布了收购以后的首个版本 5.5 ,该版本主要改善集中在性能、扩展性、复制、分区以及对 windows 的支持。目前版本已发展到 5.7。 和其它数据库相比, MySQL 有点与众不同,它的架构可以在多种不同场景中应用并发挥良好作用。主要体现在存储引擎的架构上,插件式的存储引擎架构将查询处理和其它的系统任务以及数据的存储提取相分离。这种架构可以根据业务的需求和实际需要选择合适的存储引擎。 2、MySQL整体逻辑架构 第一层,即最上一层 ,所包含的服务并不是MySQL所独有的技术。它们都是服务于C/S程序或者是这些程序所需要的 :连接处理,身份验证

Multi-tier vs Distibuted?

China☆狼群 提交于 2019-12-06 12:19:53
Multi-tier and/or ditstributed apps, do they have the same meaning ? When we talk about layers in these apps, is it physical layers (database, browser, web server,...) or logical layers (data access layer, business layer,...) ? Maybe these two sentences do convey intuitively the distinction between distributed and multi-tier : Distributed : You replicate the processing amongst nodes Multi-tier : You split the processing amongst tiers In one case, the same processing is replicated over several nodes. In the other case, each tier has a distinct responsibility and the processing running on each

开发者注意:受欢迎的人工智能应用,应该具备这7个特质!

痴心易碎 提交于 2019-12-06 10:25:01
人工智能和语音识别正在迅速发展。 根据Gartner的报告,到2020年,人工智能将在无人管理的情况下管理85%的客户互动。 这很有可能,因为我们已经在教导我们的机器将数据解释为逻辑解决方案。 人工智能技术已经让用户的生活变得更加轻松,作为产品开发者或者说产品经理,如何构建自己的人工智能产品?为了进一步获得问题的答案,我们与一些成功的AI产品创始人进行了交谈,他们都在打造人工智能产品上有所建树。 1、为用户打造一种习惯,这非常有价值 Nathan Benaich,Playfair Capital科技公司的投资者 一个由AI驱动的真正出色的产品将带来令人赞叹的时刻,也即,开箱即用,能完成以前不可能完成的任务,这是一种神奇的感觉。 以Google相册为例,它可以检索与搜索查询匹配的图像。或SwiftKey,它可以预测您接下来要输入的单词。再比如特斯拉的自动驾驶仪,能够从驾驶员那里进行自动控制。这些产品都能带来令人惊喜的感觉,一种非同寻常的体验,因为它们对改变人类的生活非常有价值,因此很快就成为用户的一种习惯。 2、优秀的AI产品应该为帮助用户完成任务而生 x.ai首席执行官兼创始人Dennis R.Mortensen 优秀的AI产品应该是为了让用户的能力变得更强,帮助用户去完成任务,尽可能减少用户应该做的工作。这些才是真正的人工智能助理。 这些AI助理或虚拟助手

UIView shadow issue with orientation

纵然是瞬间 提交于 2019-12-06 10:04:08
I have UiTableView within UiView . I want to set corner radius & shadow to UIView . I am using this code to give shadow with corner and its working fine. myView.backgroundColor = [UIColor clearColor]; [myView.layer setCornerRadius:10.0f]; [myView.layer setBorderColor:[UIColor lightGrayColor].CGColor]; [myView.layer setBorderWidth:1.0f]; [myView.layer setShadowColor:[UIColor blackColor].CGColor]; [myView.layer setShadowOpacity:0.8]; [myView.layer setShadowRadius:3.0]; [myView.layer setShadowOffset:CGSizeMake(2.0, 2.0)]; // below line is for smooth scrolling [myView.layer setShadowPath:

CSS Margin Negative without Moving Parent Container

不想你离开。 提交于 2019-12-06 08:44:52
问题 I am trying to get on this page (http://musicaladvocacy.org/) the area where it says "Home" (The White Container in the grey gradient) to go ~60 px up, but as you can see it does that as well as moves the parent container up. I just want the white box to move up NOT the whole thing. So it should look like this: http://musicaladvocacy.org/index-margin.jpg Thanks for any ideas! 回答1: You can apply position:relative; top:-60px; on the element you need to shift up. #el { position:relative; top:

PHP convert psd to jpg, selecting image layers

巧了我就是萌 提交于 2019-12-06 08:42:36
问题 I want to be able to select which layers from a .PSD image are merged into the final .JPG output image. I can merge all of the layers in the image with: $im = new Imagick('test.psd'); $im->flattenImages(); $im->setImageFormat('jpg'); $im->writeImage('test.jpg'); However the .psd contains about 10 layers and I want to be able to specify which specific layers should be merged together, to produce the final image. For example I want to merge only layer numbers 3, 5 and 10 or the layers with

Remove layer of array that contains all zeros

喜夏-厌秋 提交于 2019-12-06 07:23:57
I'm trying to remove a layer of an array that contains all zeros. Here's an example: ii = c(25, 9, 0, 6, 19, 30, 13, 27, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 15, 7, 0, 18, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39, 0, 43, 33, 40, 34, 42) key = array(ii,dim=c(3,3,5)) The end result would be equivalent to key[,,-c(2,4)] or key[,,c(1,3,5)] . I saw this question but it can only do one row or column. Is there a way to do an entire layer? Thanks! One idea, making use of the fact that apply can work on any combination of rows ( MARGIN = 1 ), columns ( MARGIN = 2 ) strata ( MARGIN = 3 ) and higher

java applet: is there a simple way to draw and erase in a two-layered 2D scene?

久未见 提交于 2019-12-06 07:21:28
问题 I have an applet which displays some data using circles and lines. As the data continually changes, the display is updated, which means that sometimes the circles and lines must be erased, so I just draw them in white (my background color) to erase them. (There are a lot of them, so erasing everything and then recomputing and redrawing everything except the erased item would be a horribly slow way to erase a single item.) The logic of the situation is that there are two layers that need to be