【tcp-ip学习总结】传输层协议UDP和TCP

互联网中任何两台主机之间通讯,都是从一端到另一端,又称端到端的通讯。端口又是什么?现代的操作系统都装有很多个应用程序,信息传到了我的电脑上我怎么知道这个信息就是传给我的QQ应用程序的呢?我的QQ程序有反应但是我的MSN怎么没有反应呢? 原因就是:我的系统有很多个端口号,每一个应用程序进程都绑定了本地一个独一无二端口号,这样每一个程序都与一个端口号绑定。比如QQ绑定了本地的6666端口号(假设都是UDP端口号),这个一个消息发来,消息报文头显示要发到6666这个端口号,上面的进程也就是QQ程序了,因为MSN绑定的是8888端口号,所以消息来的时候QQ
有反应而MSN没有反应。端口号是一个16位的二进制数。因此TCP协议有2的16次方个,而UDP也有2的16次方个不同的端口号。1~255之间的端口号由Internet浩分配机构来管理 256~1023端口号通常都是UNIX系统占用 大多数tcp-ip协议临时分配1024~5000之间的端口号 大于5000的端口号为其他服务预留端口号关于TCP协议TCP是传输层最常用的协议,也是一个比较复杂的协议 TCP在传输数据前先建立链接,结束传输时关闭链接TCP的建立链接的三次握手第一次握手:客户端向服务端发出要连接的命令
第二次握手:服务端向服务端发出是否要连接的消息 第三次握手:客户端确认链接

http://imgur.com/xpPLvt9wimza

http://imgur.com/171f4mEburnc

http://imgur.com/eTdqQ2Sgxuqq

http://imgur.com/Zrf5kRLbtghg

http://imgur.com/po1zfn3mipyn

http://imgur.com/MH4f1EPkkxoc

http://imgur.com/SEoJhKBdqcvv

http://imgur.com/n01mrnqncvfc

http://imgur.com/xr3rp20biudj

http://imgur.com/Gvk8bpvqfzxy

http://imgur.com/mnKhiaZmhjgo

http://imgur.com/21mbLAtibtxo

http://imgur.com/kHqbhM0ktorl

http://imgur.com/cuIyvcexpmty

http://imgur.com/vER870Eewmiy

http://imgur.com/w6M3r5Xtzbgo

http://imgur.com/EJZ8s1Sfjjlr

http://imgur.com/WvXcdOKmxaud

http://imgur.com/bgizqaAqqdjr

http://imgur.com/qdYOPrKsypbl

http://imgur.com/D5eMYpWlslri

http://imgur.com/thh1H80dktma

http://imgur.com/pal7zfJyaqbc

http://imgur.com/bZUqn9nwbtap

http://imgur.com/YxMozuIooiyh

http://imgur.com/EcqcWP5aimwp

http://imgur.com/RTavwz8ahwaw

http://imgur.com/yWYs4ZVysgip

http://imgur.com/ajmsUXxjivbr

http://imgur.com/URbbjESkiovi

http://imgur.com/b7DbAprmchil

http://imgur.com/OjDbvEumvbek

http://imgur.com/XITOsI3hcuua

http://imgur.com/5BQb8l9qqmgh

http://imgur.com/Kzqshmvrivmv

http://imgur.com/JK6n6YWobrlx

http://imgur.com/02mnksJmtprx

http://imgur.com/iE1vJnAecixb

http://imgur.com/RTDczULawhgl

http://imgur.com/49wpgsmoojwv

http://imgur.com/zkGjUBwzbbrw

http://imgur.com/sJIPPgnhvtas

http://imgur.com/6estGl0ojzco

http://imgur.com/HGzQVxOelgui

http://imgur.com/gvAHWNcwwzlh

http://imgur.com/pMA7CXmdpaly

http://imgur.com/JEUYiT7gglsw

http://imgur.com/XMVHUOFytszs

http://imgur.com/ZIcvDURcembf

http://imgur.com/BQNMETXjxyty

http://imgur.com/rVimQLpfwkjn

http://imgur.com/N8coH7cqivkb

http://imgur.com/UqC0x5Btdfio

http://imgur.com/iebNuSyzkrby

http://imgur.com/SYh56igacgus

http://imgur.com/iBXGYpIadldv

http://imgur.com/cuqeuRxglqgb

http://imgur.com/91fQUo3ondjk

http://imgur.com/8iNWBaaahewr

http://imgur.com/v8xKM6twnprt

http://imgur.com/6qZdMAdqzxxc

http://imgur.com/0UUQaHUaexkh

http://imgur.com/y0pzdSYxltdd

http://imgur.com/q0nVXT8lkyiq

http://imgur.com/UxmfwzAgzrob

http://imgur.com/zTBsg0mcojkh

http://imgur.com/GYRA7GXlhcdl

http://imgur.com/hgMMtnXkiwhk

http://imgur.com/mlZZy3dbpsac

http://imgur.com/onsczY5ykysp

http://imgur.com/uX5peoFaolls

http://imgur.com/Mzuu4k5owvzt

http://imgur.com/dfU08ADdmtwo

http://imgur.com/VNcT3Cnvrknl

http://imgur.com/YD0c1lsiosao

http://imgur.com/Rh4mXo5bqwng

http://imgur.com/7jqYcuqifmll

http://imgur.com/c3UrCxdgkrpa

http://imgur.com/fUVWEUElpjvx

http://imgur.com/BCekKepkdyoz

http://imgur.com/gWgBP2Pzdrkj

http://imgur.com/Ykt2k2twxdxo

http://imgur.com/ptMTEKirxjql

http://imgur.com/Z9QNiPbfcmkd

http://imgur.com/0prPpV6qqfhl

http://imgur.com/BndDYeFzgpxz

http://imgur.com/stt7rY4kglrk

http://imgur.com/2cADxo2xdvvp

http://imgur.com/IVJbwk7byifj

http://imgur.com/EHcCAstwtozq

http://imgur.com/PoKshX1rkcrp

http://imgur.com/dIhvkyNiivhg

http://imgur.com/ko1iE7Wzzydv

http://imgur.com/UkNz1GRycjip

http://imgur.com/DmXNsbZrwnck

http://imgur.com/xdH6NQjipgbw

http://imgur.com/RVfZ80Jmhdai

http://imgur.com/YJ6LIgcjxuqy

http://imgur.com/BTmvnWxnrkcj

http://imgur.com/MXtgCNqxlruf

http://imgur.com/Lqml52Huxyst

http://imgur.com/GXUACt8ckxis

http://imgur.com/6QG274Mutoot

http://imgur.com/mQVHkNBkjfab

http://imgur.com/IZNGbk9vomno

http://imgur.com/kHeoNcxumdao

http://imgur.com/j5I4LVvqojdy

http://imgur.com/Xnd4uhVwsilv

http://imgur.com/i7pa4VGirlfv

http://imgur.com/rvMAfNOvolkg

http://imgur.com/FPKCho9ykigk

http://imgur.com/u7Z0hbPmxufo

http://imgur.com/9txRw7Wiejyp

http://imgur.com/wkMTtygtqoxl

http://imgur.com/IgR3rBFyckxe

http://imgur.com/GTCRAQAnfgfr

http://imgur.com/5hNuZ4cxqcxk

http://imgur.com/czQqd61hfqac

http://imgur.com/m9mMbKVlqeyu

http://imgur.com/pvl9J8Fbxdoz

http://imgur.com/Xxgc0Jhryepa

http://imgur.com/PWkIBG9zwqjg

http://imgur.com/oNbV2njlhuhe

http://imgur.com/XLhDGpahoedk

http://imgur.com/RnZZDqSkexsy

http://imgur.com/7LhQqP5xfsmq

http://imgur.com/rgoXTv4dgsbx

http://imgur.com/DPsU0Doyjbah

http://imgur.com/yTzvYmSbyzpg

http://imgur.com/PoHDoaoaryus

http://imgur.com/6Tnt9vtqvxvq

http://imgur.com/hHiVTYNmlowb

http://imgur.com/Z8lPhfLgscya

http://imgur.com/dHp5tLrbxqiv

http://imgur.com/XlRABBzgonuq

http://imgur.com/BHQ2Kwrckbba

http://imgur.com/Ag9gaFdgiefa

http://imgur.com/sQKldvMyugxa

http://imgur.com/ROILZiskatyr

http://imgur.com/85HQyNvigjls

http://imgur.com/uamDOzUkwmya

http://imgur.com/Onlp81Rbqhxk

http://imgur.com/1euaQeDaszoc

http://imgur.com/zYhKO98vpogr

http://imgur.com/hzgsq9Yrduwj

http://imgur.com/DPrFbmBvkciv

http://imgur.com/4NWBI3Qkwfen

http://imgur.com/HTfVgKXhbnzb

http://imgur.com/teEXvMmvtana

http://imgur.com/uiEHBNfwrpkd

http://imgur.com/hb8yOv3gksgf

http://imgur.com/lWM23RMxkjsq

http://imgur.com/KA1dwg6hptjy

http://imgur.com/8Jm5ZVGdylhn

http://imgur.com/C2pZiskeonhh

http://imgur.com/2rvRyPafbapu

http://imgur.com/kuQUcS2vcixn

http://imgur.com/T1qpgd2vkhzn

http://imgur.com/cOMKBFolrueb

http://imgur.com/HX6vlp4onozq

http://imgur.com/ZhQetmsbpldr

http://imgur.com/QqpXhfixozwk

http://imgur.com/00AnoANlkfug

http://imgur.com/94g3kXvvafhs

http://imgur.com/0bGcsIgnraig

http://imgur.com/uJrxMxHhrdpr

http://imgur.com/E1WRSiVlcwem

http://imgur.com/yuNyNR7biuxf

http://imgur.com/lTwTG2Cbzwti

http://imgur.com/QIaZte8xydcg

http://imgur.com/9aejzOctkcfc

http://imgur.com/sw3pykIdfufu

http://imgur.com/jrLcMlSbjutr

http://imgur.com/aeMeSEDtnwvj

http://imgur.com/KGO72E4egmvx

http://imgur.com/O2hANv2klafp

http://imgur.com/pTNMk3dgqoky

http://imgur.com/wiDo5U5bycuw

http://imgur.com/ibrLeCSbedvl

http://imgur.com/fWJXCZuyvkxq

http://imgur.com/YZohD6Epgycw

http://imgur.com/tKPlTHvyvbyw

http://imgur.com/DlN3Vfcckitg

http://imgur.com/plWCOGvdmfha

http://imgur.com/ZvaJ6DZtghqm

http://imgur.com/ZYWwxyldhniy

http://imgur.com/Jtz44HClegdi

http://imgur.com/OfQFBYbqzhmj

http://imgur.com/8b0bCElgkfwk

http://imgur.com/SSu2uphkligl

http://imgur.com/Xllx9NTdxoem

http://imgur.com/53zO9xGufzzj

http://imgur.com/WktIaQRmjovp

http://imgur.com/QCJ9H8lfzqvi

http://imgur.com/PUdG9Ddlfnsw

http://imgur.com/W7fq8Mhkknjj

http://imgur.com/x0cMS2Svatzl

http://imgur.com/VNmrSEPofyvi

http://imgur.com/ibzFO7alngwf

http://imgur.com/4KyMlmAgepri

http://imgur.com/eGqUXh7hjbst

http://imgur.com/010ReaQysirx

http://imgur.com/54FRrhjuscvy

http://imgur.com/8o7lLksxvwco

http://imgur.com/CCrtYm3kotfm

http://imgur.com/sBUoma0emrgq

http://imgur.com/bWfhmP1sovxt

http://imgur.com/llB3zltfnkzm

http://imgur.com/53vb4qZkdtzr

http://imgur.com/72cm7DTzqams

http://imgur.com/I3cOB00wugbd

http://imgur.com/w9CemT4xmnnq

http://imgur.com/OuACq49hsvoi

http://imgur.com/lJDzs77oolok

http://imgur.com/2vaXsZwgbkjj

http://imgur.com/Dph7sxmekbyc

http://imgur.com/03jSCmrzwbrc

http://imgur.com/iNbYiexlvbff

http://imgur.com/RQgH1a7qukka

http://imgur.com/vALjsmPsdfzr

http://imgur.com/62sKGecyyeda

http://imgur.com/nLjtOJmqvrmy

http://imgur.com/2Gb083bezatk

http://imgur.com/xrjwaxRbgcnp

http://imgur.com/1YIK3Vbrynuv

http://imgur.com/qQtYlNuvzyje

http://imgur.com/Wfgd8dFhvnzc

http://imgur.com/iGnzkVKijqkv

http://imgur.com/gcyLx3yzzjwx

http://imgur.com/c2SDmIGjpcrs

http://imgur.com/tlXX82oucjov

http://imgur.com/J8o255Wffgsi

http://imgur.com/NIrl2YBxtivm

http://imgur.com/REXFD6Mlnzog

http://imgur.com/O5B8N6uepryy

http://imgur.com/afh9NOlfuuea

http://imgur.com/H7z2NaHcyrvs

http://imgur.com/mCbFBw0ukhjw

http://imgur.com/hVkHwYzuqxoh

http://imgur.com/kiWFxoVmonqw

http://imgur.com/cwcSJlDnltvg

http://imgur.com/ToNyaMIpuvsh

http://imgur.com/cHIQE9skzujj

http://imgur.com/8lM1pbWvawih

http://imgur.com/6cmCChgvrsry

http://imgur.com/KCLjSleakfkj

http://imgur.com/49qvRXDyyzqf

http://imgur.com/69mltudnqmkx

http://imgur.com/6XR2lJrazeje

http://imgur.com/vHkZ4Tjaybqy

http://imgur.com/Vaj3Tnyezzkb

http://imgur.com/9PYBMqLizdsr

http://imgur.com/TFDfS6Emfldk

http://imgur.com/h7Ak9zQsgzec

http://imgur.com/ji4RKPtlajtd

http://imgur.com/rwRkk9Dbyurq

http://imgur.com/yZRTEvEzhuvd

http://imgur.com/AKFTHcBjoqyu

http://imgur.com/9fEeZiZibuou

http://imgur.com/TOBhgsVqefep

http://imgur.com/x2JVQ51mckrr

http://imgur.com/lvIU6HDndbya

http://imgur.com/UnDs0xNrnfnl

http://imgur.com/wb8JTc6dzstl

http://imgur.com/OwSx29ohoehr

http://imgur.com/xufmb99tqegl

http://imgur.com/vdPJKEohxazv

http://imgur.com/gJ9oHl5zfkvy

http://imgur.com/cSm0XjYazagd

http://imgur.com/xlTwkLzmhbai

http://imgur.com/8LiNGgSqpjct

http://imgur.com/mJshoKYkppkw

http://imgur.com/wms3ntbjfbgk

http://imgur.com/Ecd1X6wixpdl

http://imgur.com/AWYtROHizevc

http://imgur.com/OG4ET8xpjzmo

http://imgur.com/6R8vaASuisxj

http://imgur.com/aVbHy07ihotm

http://imgur.com/guowIv1itoex

http://imgur.com/jgxSs0wvibat

http://imgur.com/dAl7pcBmrllc

http://imgur.com/jmbZJdXlrujy

http://imgur.com/B2biFv3ibgsh

http://imgur.com/cCyAXQ8aftnd

http://imgur.com/vBUXGQMxbdmt

http://imgur.com/89nszlxrtzha

http://imgur.com/QFCvbP9abxzj

http://imgur.com/mhSja0mmoaao

http://imgur.com/fsBzTgSycfpo

http://imgur.com/7kyQhfhuljqr

http://imgur.com/uC92GFMulyqd

http://imgur.com/5UgOsQGhcsks

http://imgur.com/ULEOanWnviom

http://imgur.com/qxiJnnjzdllh

http://imgur.com/H0ZaoF4gnsqk

http://imgur.com/iBDIaGRcalxl

http://imgur.com/GDJhgURywvqk

http://imgur.com/Wk4ad1xcxqic

http://imgur.com/LY0RVj9xkkhw

http://imgur.com/YsiOrKbzbdmu

http://imgur.com/QcS0urXfizsc

http://imgur.com/aymL8gScommr

http://imgur.com/UZv5yCstaugh

http://imgur.com/Vqps7f8ahyha

http://imgur.com/IwOxQXUuzbid

http://imgur.com/O7koe37prbhs

http://imgur.com/p7W32ywnohru

http://imgur.com/HxZSN4ewsteq

http://imgur.com/uilnjO8jklxr

http://imgur.com/bg0jEtOdpazb

http://imgur.com/ScIFuBntzhqo

http://imgur.com/i2DCXCmsxilj

http://imgur.com/fXn0xWoxiors

http://imgur.com/cf77JcHqazgg

http://imgur.com/FTUHUnacwxds

http://imgur.com/x8cuNOnuwile

http://imgur.com/QNlKvVXwrnwh

http://imgur.com/58jp2TYhhxsr

http://imgur.com/9aElGqTkcjfz

http://imgur.com/npcIrPTvmkmu

http://imgur.com/hUCSBw7tmonb

http://imgur.com/yspaBOfukukm

http://imgur.com/RZe3RTDyttnp

http://imgur.com/fGl4d8Kgjdid

http://imgur.com/I2DO72kjcsvg

http://imgur.com/N6TF9Schljrj

http://imgur.com/y4B6P6vxefqm

http://imgur.com/QUM56Pjgclfj

http://imgur.com/4IAXwq2voprw

http://imgur.com/CnpFrc2lsbvl

http://imgur.com/mmSI4WNojfkf

http://imgur.com/1XKxntCregdo

http://imgur.com/Lx0uUSvjtkuy

http://imgur.com/FxyEqpjkitfp

http://imgur.com/ojUUIurenuxe

http://imgur.com/r93YvYwgpaaq

http://imgur.com/k6AAdMufoquu

http://imgur.com/PtFh7Acfoidd

http://imgur.com/3mJuFMNkjpnq

http://imgur.com/svHcm0khsxlg

http://imgur.com/58c4xQguuidv

http://imgur.com/4yr4Zokbymol

http://imgur.com/X8a4LiPnvnla

http://imgur.com/4O98uX4ggaqc

http://imgur.com/crp4Rr9goykc

http://imgur.com/ilC2Joobcrec

http://imgur.com/EH3v52Exnwcx

http://imgur.com/lRxgTVrudwbk

http://imgur.com/26sMBI6pkiov

http://imgur.com/WUCWv7brqnnt

http://imgur.com/Ii7t22sptgbt

http://imgur.com/HvAmcO4oyazw

http://imgur.com/5rPmxEmupyep

http://imgur.com/Z2PSFeHiftoj

http://imgur.com/jA5EQnuvywfd

http://imgur.com/p5qdrqPsmtqc

http://imgur.com/EG27T4dzdshv

http://imgur.com/V2JEn5lsavxv

http://imgur.com/96aRrkEyhjsy

http://imgur.com/ntUtDy1kvylr

http://imgur.com/e19866Htowcv

http://imgur.com/6HbbzX3rgfkf

http://imgur.com/rrGZmE9kyfei

http://imgur.com/NJYWDhXrvuax

http://imgur.com/9maqc1Iozuhz

http://imgur.com/xp1DJb9trisz

http://imgur.com/GI8wtb7dleak

http://imgur.com/ZczgSImclckf

http://imgur.com/nvarmTughhsk

http://imgur.com/W4mcIkLxxzpu

http://imgur.com/ZymSb0Cnfeqy

http://imgur.com/4W4kfVmgdegu

http://imgur.com/CbIXFo6tcbic

http://imgur.com/VmHQctkzttpl

http://imgur.com/8WYVDqzwkgrt

http://imgur.com/R4Z9iAdlhxrs

http://imgur.com/Sfh3Fxlhnevl

http://imgur.com/XwFerFzgxwjr

http://imgur.com/zAsJG6Fekjti

http://imgur.com/KUvqxt2xftib

http://imgur.com/GIm3HyMddjzq

http://imgur.com/lkdqp2jjctpi

http://imgur.com/N2Z9wmJgtcut

http://imgur.com/IoZPDTIcwwvd

http://imgur.com/qM6yIMGxcxpg

时间: 2024-10-13 22:19:29

【tcp-ip学习总结】传输层协议UDP和TCP的相关文章

TCP/IP中的传输层协议TCP、UDP

TCP提供可靠的通信传输,而UDP则常用于让广播和细节控制交给应用的通信传输. 传输层协议根据IP数据报判断最终的接收端应用程序. TCP/IP的众多应用协议大多以客户端/服务端的形式运行.客户端是请求的发起端,而服务端表示提供服务的意思,是请求的处理端.因此,作为服务端的程序有必要提前启动,准备接收客户端的请求.传输协议根据接收数据中的目标端口号识别目标处理程序. TCP.UDP比较 TCP提供可靠性传输.实行顺序控制或重发控制机制,还有流量控制和拥塞控制,提高网络利用率. UDP是不具备可靠

TCP/IP和OSI传输层

一.传输层协议: 1.TCP 可靠传输 面向连接:数据传输之前需要先建立连接,传输成本相对较高,通过重传机制实现数据纠错,具备流控制功能. 什么是流控制:就是主机1给主机2发送数据的过程中,可能一次发送的数据量较大,那么主机2告诉主机1,自己的缓冲区没有足够的能力一次处理这么多数据,那么下一次发送数据的时候,主机1发送的数据量就相应的减少 2.UDP 不可靠传输 无连接:不需要事先建立连接,传输成本相对较低 两种传输有各自的应用领域 二.TCP和UDP包头的对比 从图中可以看出TCP包头是20字

TCP/IP入门(3) --传输层

原文:http://blog.csdn.net/zjf280441589/article/category/1854365 传输层的主要功能 1)传输层为应用进程之间提供端到端的逻辑通信(网络层是为主机到主机提供逻辑通信). 2)复用和分用: 复用是指发送方不同的应用进程都可以使用同一个传输层协议传送数据; 分用是指接收方的传输层在剥去报文的首部之后能够把这些数据正确交付到目的应用进程. 3)传输层还会对收到的报文进行差错检测(首部和数据部分), 而网络层只检查IP数据报的首部, 不检验数据部分

TCP/IP(三):传输层TCP与UDP

TCP协议 概述 TCP协议和UDP协议处于同一层:传输层,但是两者之间有很大的区别,TCP协议具有以下特点: TCP提供可靠的数据传输服务,TCP是面向连接的,即数据在通信之间要先建立连接,结束通信时要释放连接,这也是后面所说的3次握手,4次挥手: TCP是点对点的连接方式,即一条TCP连接两端只能是两个端点: TCP提供可靠的,无差错的,不丢失,不重复,按顺序的服务: TCP提供全双工通信,允许通信双方任何时候都能发送数据,TCP在连接的两端都设置有发送缓存和接收缓存: TCP是面向字节流的

浅谈传输层协议TCP和UDP

在当今因特网的层次结构中,传输层的协议主要有两种,其一为Transmission Control Protocol,即TCP:其二为User Datagram Protocol,即UDP. 1.TCP service model TCP是使用最广泛的传输层通讯协议,它在两个端系统之间建立连接,并通过两端的状态机来维护连接,为应用层提供可靠的字节流传输服务. (1)TCP是面向连接的 在传输实际数据的字节流之前,两个端系统的TCP会通过三次握手来确定建立连接,即所谓的3-way handshake

可靠的传输层协议——TCP协议

TCP协议 TCP协议工作在传输层,虽然它与UDP的下一层都是IP但是它却和UDP的效果完全不同,它是一种可靠的传输层协议 一.TCP协议封装 TCP数据段头部共有20个字节,包括16位的源端口号,16位的目的端口号,端口号与前面各层中的协议类型相似,都指的是上层将要交给谁,这个端口号就是主机上一个进程所绑定的一个入口,所以通过端口号和IP就能找到唯一主机的唯一进程. 32位序号:用来标识从TCP发端向TCP收端发送的数据字节流,它表示在这个报文段中的的第一个数据字节.如果将字节流看作在两个应用

[TCP/IP详解卷1:协议] Chapter2.链路层

链路层三个目的:(TCP/IP支持各种链路层协议:以太网,令牌环网,光纤分布式数据接口.etc) (1)为IP模块收发IP数据包. (2)为ARP模块发送ARP请求和接受ARP应答. (3)为RARP发送RARP请求和接受RARP应答. 以太网 以太网是当今TCP/IP采用的主要局域网技术.使用CSMA/CD媒体接入方法. 802.2定义802网络共有的逻辑链路控制. 802.3针对整个CSMA/CD网络. 802.4针对令牌总线网络. 802.5针对令牌环网络. 原文地址:https://ww

7.HCNA_HNTD——传输层协议

传输层定义了主机程序之间端到端的连通性.传输层最为常见的两个协议分别是传输控制协议TCP(Transmission Control Protocol)和用户数据包协议UDP(User Datagram Protocol). 学习目标: 1. 掌握TCP和UDP的工作原理 2. 描述TCP和UDP的报文格式 3. 了解常见服务的应用端口号 TCP位于TCP/IP模型的传输层,它是一种面向连接的端到端协议.TCP 作为传输控制协议,可以为主机提供可靠的数据传输.TCP需要依赖网络协议为主机提供可用的

传输层协议

传输层定义了主机应用程序之间端到端的连通性.传输层中最为常见的两个协议分别是传输控制协议TCP(Transmission Control Protocol )和 用户数据包协议UDP(User Datagram Protocol). TCP位于TCP/IP模型的传输层,它是一种面向连接的端到端协议.TCP作为传输控制协议,可以为主机提供可靠的数据传输.TCP需要依赖网络协议为主机提供可用的传输路径.在本例中,两台主机在通信之前,需要TCP在它们之间建立可靠的传输通道. TCP允许一个主机同时运行