TCP/IP协议网络模型

1.tcp/ip分层模型

tcp/ip把网络结构分为四层,从上到下依次为:应用层、传输层、互联网层、网络接口层。每层担任不同的职责,下层服务于上层,最终上层就是用户使用的层。分层结构如图1所示。

图1 tcp/ip分层模型

(1)应用层

向用户提供的应用程序,如http协议。

(2)传输层

负责端到端的通信。

(3)互联网层

负责数据的包装、寻址和路由。

(4)网络接口层

通常包括操作系统中的设备驱动程序和计算机中对应的网络接口卡。它们一起处理与电缆(或其他任何传输媒介)的物理接口细节。

 

2.http协议通信

当通过http发送数据时,数据从上到下依次封装,最后当作一串比特流送入网络。当接收http数据时,数据从下到上解开封装,最后在应用层接收到原始数据。如图2所示,

图2 http协议通信

转载于:https://www.cnblogs.com/fe-huahai/p/5658900.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/542950.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

c++中函数atan_atan()函数以及C ++中的示例

c中函数atanC atan()函数 (C atan() function) atan() function is a library function of cmath header, it is used to find the principal value of the arc tangent of the given number, it accepts a number (x) and returns the principal value of the arc tangent of…

我想成为计算机专业第一,我对计算机专业学生的忠告。

计算机专业的学生在面临毕业的时候有些同学应该会有这样的想法,我对计算机没有兴趣,毕业不打算从事计算机专业的对口工作;或者我当时选择学计算机专业是因为那时候对计算机有比较大的兴趣,而现在,越来越觉得没有意思了…

job每分钟执行 oracle_Oracle Job 每个时间点执行示例

1:每分钟执行Interval > TRUNC(sysdate,mi) 1/ (24*60)或Interval > sysdate1/14402:每天定时执行例如:每天的凌晨1点执行Interval > TRUNC(sysdate) 1 1/ (24)3:每周定时执行例如:每周一凌晨1点执行Interval >TRUNC(next_day(sysdate,星期…

c#打印程序原码_C#程序打印新行

c#打印程序原码C#打印新行 (C# printing a new line) To print a new line within the message while printing it on the console, we can use following methods, 要在控制台上打印消息时在消息中打印新行,我们可以使用以下方法, Using \n…

TMCache

TMCache设计的目的是用于存储临时持久化对象的开源iOS/OS key/value缓存类库,减少重复创建像下载数据、缓慢的处理结果这样的昂贵性能花销。TMCache由两个本身相似的存储组成,一个是TMMemoryCache,存在于内存中,另外一个是TMDisk…

oracle 增量_【干货分享】DMETL中的增量抽取初识

DMETL实现了增量数据的同步。在源表上进行的增删改操作,可以通过增量数据抽取,同步到目的表中。在第一次将源表数据全量抽取到目的表中后,可以通过重复地执行增量数据抽取,将源表上的增删改操作产生的变化数据,无遗漏地…

python中ord函数_ord()函数以及Python中的示例

python中ord函数Python ord()函数 (Python ord() function) ord() function is a library function in Python, it is used to get number value from given character value, it accepts a character and returns an integer i.e. it is used to convert a character to an in…

364. Nested List Weight SumII

题目:Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list -- whose elements may also be integers or other lists. Different from the previous question wh…

计算机英语论文摘要,求英语高手翻译论文摘要,非常感谢!

彭洁回答:Thispaperdescribesacomputerlinecuttingtechnologyandcomputeranimationtechnology.Computertechnologyiscuttingwillbedesignatedasagraphicswindowborder,fromalargescreentoextracttherequiredspecificinformation,toshowapartialpictureorView.Comput…

python 示例_在Python中带有示例的while关键字

python 示例关键字的Python (Python for keyword) while is a keyword (case-sensitive) in python, it is used to create a while loop. while是python中的一个关键字(区分大小写),用于创建while循环。 Syntax of while keyword while关键字的语法 while condit…

向量表示 运动抛物线_初学讲义之高中物理(四)常见运动类型

本章主要介绍几种较为常见的运动模型以及处理思路一、抛物运动抛物运动是一种较为简单的运动模型,在现实生活中非常常见,比如向空中抛球、向河里丢石子,等等。根据抛出方向的不同,抛物运动可以分为竖抛运动、平抛运动和斜抛运动。…

[Array]Majority Element

Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empty and the majority element always exist in the array. 方法:充分利用主元素出…

python true_True关键字,带Python示例

python truePython True关键字 (Python True keyword) True is a keyword (case-sensitive) in python, it is a Boolean value (a value of class type bool). True is the result of a comparison operation. True是python中的关键字(区分大小写),它是一个布尔值(…

zeros什么意思_ma=zeros(n);是什么意思'

x[1 zeros(1,N-1)];这句matlab语句的意思是x[1zeros(1,N-1)];表示第一个位置是1,另N-1个0的行向量.y[a,b]如果a,b为行向量,那么y就是把a,b行向量拼接成另一个新的行向量u [zeros(1,10) 1 zeros(1,生成一个矩阵,其实是一个长度为31的行向量,里面的元素是10个0,一个1,后面还有20…

湖南工业大学在线计算机作业答案,湖南工业大学《计算机组成原理》试题集,共7份,有部分答案...

内容简介:湖南工业大学《计算机组成原理》试题集,共7份,有部分答案一、填空题(每空1分,共25分)1、码值80H:若表示真值0,则为------码;若表示-128,则为------码;若表示-127,则为------码&#xf…

python字母变成数字怎么办_在Python中将字母转换为数字

14 个答案:答案 0 :(得分:71)这样的事情:print [ord(char) - 96 for char in raw_input(Write Text: ).lower()]修改强>既然你让我解释我会...虽然已经在[?]的评论中得到了很好的解释。让我们在更多的一行开始。input raw_input(Write Te…

生产领料、退料频繁_领料号码

生产领料、退料频繁Problem statement: 问题陈述: Given an array of integers, find and print the maximum number of integers you can select from the array such that the absolute difference between any two of the chosen integers is less than or equa…

iOS设备、Icon、LaunchImage、图片分辨率

iOS设备 iOS设备的屏幕的大小、分辨率以及比例因数(Scale Factor)[1]。 iPhone 设备宽(inch)高(inch)对角线(inch)逻辑分辨率(point)Scale Factor设备分辨率(pixel)PPI3GS2.44.53.5320X4801x320X4801634/4s2.314.53.5320X4802x640X9603265c2.334.904320X…

计算机应用基础2010版知识点,2010计算机应用基础选择题(含答案版)重点.doc

2010计算机应用基础选择题(含答案版)重点第1部分1、C根据计算机使用的电信号来分类,电子计算机分为数字计算机和模拟计算机,其中,数字计算机是以( )为处理对象。A.字符数字量 B.物理量 &#…

mysql如何植入到oracle_分享MSSQL、MySql、Oracle的大数据批量导入方法及编程手法细节...

1:MSSQLSQL语法篇:BULK INSERT[ database_name . [ schema_name ] . | schema_name . ] [ table_name | view_name ]FROM data_file[ WITH([ [ , ] BATCHSIZE batch_size ][ [ , ] CHECK_CONSTRAINTS ][ [ , ] CODEPAGE { ACP | OEM | RAW | code_page…