现代通信网络课件4_第1页
现代通信网络课件4_第2页
现代通信网络课件4_第3页
现代通信网络课件4_第4页
现代通信网络课件4_第5页
已阅读5页,还剩135页未读, 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、现代通信网络Modern Telecommunication Network,Lecture 4 PS分组交换与IP 互联网 C 电话Communication Networks 【通信网络的分类】,Communication Network,SwitchedCommunication Network,Virtual Circuit Network: MPLS,BroadcastCommunication Network 广播,电视,卫星,Packet Switch (PS) - 分组交换,Datagram Network: Internet,Circuit-Swit

2、ched (CS) - 电话,PS:Packet Switch分组交换网原理,Simple Switched Network,Packet Switching (PS) Principles,Circuit switching designed for voice Resources dedicated to a particular call Much of the time a data connection is idle Data rate is fixed Both ends must operate at the same rate,PS:Basic Operation【基本操作原

3、理】,Data transmitted in small packets Typically 1000 octets Longer messages split into series of packets Each packet contains a portion of user data plus some control info Control info 【控制信息】 Routing (addressing) info Packets are received, stored briefly (buffered) and past on to the next node Store

4、and forward,PS:Using Packets,PS:Advantages 【优点】,Line efficiency Single node to node link can be shared by many packets over time Packets queued and transmitted as fast as possible Data rate conversion Each station connects to the local node at its own speed Nodes buffer data if required to equalize

5、rates Packets are accepted even when network is busy Delivery may slow down Priorities can be used,PS:Switching Technique 【交换技术】,Station breaks long message into packets Packets sent one at a time to the network Packets handled in two ways Datagram 【数据报】 Virtual Circuit 【虚电路】 PVC: Permanent Virtual

6、Circuit 【永久虚电路】 SVC: Switch Virtual Circuit 【交换虚电路】,PS:Datagram 【数据报】,Each packet treated independently Packets can take any practical route Packets may arrive out of order Packets may go missing Up to receiver to re-order packets and recover from missing packets,PS:Datagram Approach,PS:Virtual Circ

7、uit 【虚电路】,Preplanned route established before any packets sent Call request and call accept packets establish connection (handshake) Each packet contains a virtual circuit identifier instead of destination address No routing decisions required for each packet Clear request to drop circuit Not a dedi

8、cated path,SVC:Switch Virtual Circuit 连接建立 【可交换的虚电路】,SVC:Switched Virtual Circuit 数据传输 【可交换的虚电路】,SVC:Switched Virtual Circuit 连接释放 【可交换的虚电路】,Virtual Circuits v Datagram,Virtual circuits Network can provide sequencing and error control Packets are forwarded more quickly No routing decisions to make L

9、ess reliable Loss of a node looses all circuits through that node Datagram No call setup phase Better if few packets More flexible Routing can be used to avoid congested parts of the network,虚电路举例:Frame Relay 【帧中继】,DLCI (Data Link Connection Identifier) - identification of a virtual circuit 【虚电路】 DL

10、CI - of local (for a given port) meaning there can be max. 976 VCs on an interface user-network DLCI values: 0 - LMI channel, 1-15 - reserved, 16-991 - available for VCs, 992-1007 - layer 2 management of FR service, 1008-1022 - reserved, 1023 - in channel layer management,A,B,C,To A: DLCI 121 To B:

11、DLCI 243,To A: DLCI 182 To C: DLCI 121,Timing of Datagram Packet Switching,Packet 3,Packet 3,Packet 1,Packet 2,Packet 1,Packet 2,Packet 1,Packet 2,Packet 3,processing delay of Packet 1 at Node 2,Host 1,Host 2,Node 1,Node 2,propagation delay between Host 1 and Node 2,transmission time of Packet 1 at

12、Host 1,三种交换的比较,A B C D,A B C D,A B C D,报文交换,电路交换,分组交换,t,数据传送 的特点,比特流直达终点,报文,报文,报文,分组,分组,分组,存储 转发,存储 转发,存储 转发,存储 转发,【独享】 【共享】虚电路概念在TD-SCDMA网络:空间接口的应用,3GPP - HSDPA 概述,为了更好地发展数据业务,3GPP 对空中接口作了改进,在R5版本中引入高速下行分组接入(HSDPA)技术; HSDPA(高速下行分组接入,High Speed Downlink Packages Access)技术,是3GPP在R5协议中为了满足上下行数据业务不对称的需

13、求提出来的,它可以在不改变已经建设的系统网络结构的基础上,大大提高用户下行数据业务速率(理论上单载波最大值可达2.8Mbps),基站侧物理资源有限,HSDPA资源不可以同时分配给R4业务使用,比如,当系统为3个上行时隙与3个下行时隙的比例配置时,其中2个下行时隙分配给HSDPA使用,则下行业务时隙就剩下1个时隙,此时如果大量用户的业务需求是普通R4业务,则系统会受限于资源而决绝新用户的接入 所以当业务小区内普通R4业务较多时,可以减少或者取消HSDPA资源配置,将大部分时隙资源分配给普通R4业务使用; 当业务小区内大部分用户需要使用高速下载的数据业务,则可以将大部分业务时隙分配给HSDPA使用

14、 灵活的载波配置可以满足运营商网络规划中的不同的需求,HSDPA 载波配置,TD-SCDMA 无线帧结构,物理层复用与调度算法,用户被调度是HSDPA业务区别于普通R4业务的一个主要特征 普通R4用户会【“独享”】一部分物理资源,直到其业务被释放掉,即使此时并没有在进行数据传输,资源也是被占用的,形成了一种浪费 (类似:电路交换中的实电路) 而HSDPA业务,可以让多用户【共享】整个HSDPA资源,采取的方式是分时分码复用,也就是在每一个TTI内部分或者全部资源为一个用户而用,下一个TTI,资源又给另一个用户使用,这样数据需求量大的用户就可以获得较高的被调用的几率,从而获得较高速率,节省了资源

15、。 灵活的调度算法也可以满足运营商不同的需求。,PS应用:IP-Internet分组交换网 - IP因特网,7.1 IP互联网结构,Internetworking Terms (1),Communications Network Facility that provides data transfer service The Internet 【因特网】- note upper case I The global collection of thousands of individual machines and networks Intranet 【内联网 】 Corporate inter

16、net operating within the organization Uses Internet (TCP/IP and http)technology to deliver documents and resources,Telecommuter,Residential,Cable,Internet Backbone,xDSL, FTTH, Dial,Enterprise,Enterprise,IP - Internet Architecture,Transport Control Protocol (TCP) Internet Protocol (IP),Internetworkin

17、g Terms - 2,End System (ES) Device attached to one of the networks of an internet Supports end-user applications or services Intermediate System (IS) Device used to connect two networks Permits communication between end systems attached to different networks,Internetworking Terms - 3,Bridge IS used

18、to connect two LANs using similar LAN protocols Address filter passing on packets to the required network only OSI layer 2 (Data Link) Router Connects two (possibly dissimilar) networks Uses internet protocol present in each router and end system OSI Layer 3 (Network),USA - Internet Infrastructure,I

19、nternet Infrastructure,The infrastructure of the Internet consists of a federation of connected networks that are each independently managed (“autonomous system”) Note: Each “autonomous system may consist of multiple IP networks Autonomous systems have a number (AS number) Hierarchy of network servi

20、ce providers (NSPs) Tier-1: nation or worldwide network (US: less than 20) Tier-2: regional networks (in US: less than 100) Tier-3: local Internet service provider (in US: several thousand),Internet Infrastructure - 2,Location where a network (ISP, corporate network, or regional network) gets access

21、 to the Internet is called a Point-of-Presence (POP). Locations (Tier-1 or Tier-2) networks are connected for the purpose of exchanging traffic are called peering points. Public peering: Traffic is swapped in a specific location, called Internet exchange points (IXPs) Private peering: Two networks e

22、stablish a direct link to each other.,Internet structure:,roughly hierarchical at center: “tier-1” ISPs (e.g., UUNet, BBN/Genuity, Sprint, AT&T), national/international coverage treat each other as equals,Tier 1 ISP,Tier 1 ISP,Tier 1 ISP,Interconnect 互联互通(不同公司,不同国家,等),【美国】Tier-1 ISP: e.g., Sprint,Sp

23、rint US backbone network,CERNET 【中国教育网 - AS:4538】,IP:国家骨干网 - 城域网:网络结构,7.2 IP 网协议的体系结构和协议地址 7.2.1 IP 网协议的体系结构,IP网络: 地址结构,TCP/IP Concepts,TCP/IP 地址系统,IPv4 Packet Format:地址格式,Header Fields (20 Bytes),Version Currently 4:【IPv6:6】 IP v6 - see later Internet header length In 32 bit words Including options

24、 Total length Of datagram, in octets Protocol Next higher layer to receive data field at destination,Internet Address:地址概念层次,Internet:地址结构,Internet,IP地址,网络号,主机号,2.编址方式 IP address = (netid + hostid) 3.表示方法: 二进制表示、点分十进制,IP address = 10000000 00000010 00000111 00001001 The network number part

25、【netid】 of the IP address is centrally administered by the Internet Network Information Center (the InterNIC) and is unique throughout the Internet.,Classes of Internet Addresses: 【分类IP地址】,7.2.2. 互联网的协议地址,地址类型 A类: 0 - 8位网络号 首字节1 126 B类: 10 - 16位网络号 首字节128 191 C类: 110 - 24位网络号 首字节192 223 D类: 1110 - 组

26、播地址 首字节224 239 E类: 11110 -(保留未用)首字节240 - 247 特殊IP地址 广播地址:主机号全1 有限广播地址:32位全1; 回送地址:127.*.*.*,网络软件测试及本机进程间的通信。 IP地址的实质: IP地址标识的不一定是一台主机,实质上标识的是到一个网络的一条连接。,Broadcast address,Limited Broadcast Address,All 0 Address,IP Address Space 【IP地址空间问题】,Originally, 3 Classes A, B, C Problem 【问题所在】 Classes too rigi

27、d (刚性的)(C too small, A too big) Class A was overkill with more than 16 million hosts Class C had too few hosts per network Class B is a fair balance between the number of networks and the number of hosts Solution 【解决方案】 Subnetting 【子网】 Classless Interdomain Routing (CIDR) :【无分类IP地址】,3. 子网的划分 Subnet

28、classification,Allow arbitrary complexity of internetworked LANs within organization Host portion of address partitioned into subnet number and host number 【IP地址的主机地址部分划分为:子网码:主机码】,Subnets and Subnet Masks【子网掩码】,Insulate 【隔离】overall internet from growth of network numbers and routing complexity Site

29、 looks to rest of internet like single network Each LAN assigned subnet number 【子网号码】 Local routers route within subnetted network Subnet mask 【子网掩码】indicates which bits are subnet number and which are host number,IP 地址的各字段和子网掩码,145 . 13 .,3 . 10,两级 IP 地址,子网号为 3 的网络的网络号,三级 IP 地址,主机号,子网掩码,net-id,host

30、-id,子网的 网络地址,0,net-id,subnet-id,host-id,145 . 13 .,145 . 13 . 3,3 . 10,,0,3,H1,子网1: 网络地址 子网掩码 28,30,1,R2,子网2:网络地址 28 子网掩码 28,H2,38,0,1,29,H3,,子网3:网络地址 子网掩码 ,128

31、.30.36.12,【例】已知互联网和路由器 R1 中的路由表。主机 H1 向 H2 发送分组。试讨论 R1 收到 H1 向 H2 发送的分组后查找路由表的过程。,,0,H1,子网1: 网络地址 子网掩码 28,30,R1,1,R2,子网2:网络地址 28 子网掩码 28,H2,3,38,0,1,29,H3,,子网3:网络地址 子网掩码 255

32、.255.255.0,2,主机 H1 首先将本子网的子网掩码 28与【to H2】分组的 IP 地址 38 逐比特相“与”(AND 操作),28 AND 38 的计算,255 就是二进制的全 1,因此 255 AND xyz = xyz, 这里只需计算最后的 128 AND 138 即可。,128 10000000 138 10001010,逐比特 AND 操作后:10000000 128, H1 的网络地址,路由器 R1 再用路由表中第 2 个项目的子网掩码和 128.30.

33、33.138 逐比特 AND 操作,,0,R1 的路由表(未给出默认路由器),3,H1,子网1: 网络地址 子网掩码 28,30,R1,1,R2,子网2:网络地址 28 子网掩码 28,H2,38,0,1,29,H3,,子网3:网络地址 子网掩码 ,2,28 AND 12

34、38 = 28 匹配! 这表明子网 2 就是收到的分组所要寻找的目的网络,R1 收到的分组的目的 IP 地址:38,CIDP- Classless Inter-Domain Routing 【无分类IP地址】,CIDR is introduced to overcome the following problems exhausting of class B network explosion of internet routing table 【路由表爆炸增长】 CIDR allows any length of subRoute

35、rs summarized net mask e.g. China Telecom. can assign 2 class C networks(subnet mask length = 23) to a company if he has only 300 hosts= efficient for IP address allocation Router can aggregate several routes to a big route with less mask length= reduce core routers routing table size,Lookups Must b

36、e Fast【路由表搜索必须快】,125,40Gb/s,2003,31.25,10Gb/s,2001,7.81,2.5Gb/s,1999,1.94,622Mb/s,1997,40B packets (Mpkt/s),Line Rate,Year,Route Aggregation by CIDR,CIDR permits route aggregation reduce the Internet routing table,IP Address Lookup:【IP地址搜索】CIDR and Longest Prefix Matching,routing tables contain (pre

37、fix, next hop) pairs address in packet compared to stored prefixes, starting at left prefix that matches largest number of address bits is desired match packet forwarded to specified next hop,01*,5,110*,3,1011*,5,0001*,0,10*,7,0001 0*,1,0011 00*,2,1011 001*,3,1011 010*,5,0101 1*,7,0100 1100*,4,1011

38、0011*,8,1001 1000*,10,0101 1001*,9,0100 110*,6,prefix,nexthop,routing table,address: 1011 0010 1000,Problem - large router may have100,000 prefixes in its list,NAT/PATNAT Network Address TranslationPAT Port Address Translation,IP Private Addresses,No two machines that connect to a public network can

39、 have the same IP address because public IP addresses are global and standardized Private IP addresses are a solution to the problem of the exhaustion of public IP addresses. Addresses that fall within these ranges are not routed on the Internet backbone:,Connecting a network using private addresses

40、 to the Internet requires the usage of NAT,2. IP 地址与物理地址 ARP - The Address Resolution Protocol is responsible for converting the higher-level protocol addresses (IP addresses) to physical network addresses. Such as Ethernet Address (MAC),ARP 协议,ARP 的协议过程,X,Y,A,B,IP= PA= XXX,IP= PA

41、=YYY,IP= PA=AAA,IP= PA=BBB,C:arp -a Interface: 06 - 0 x2 Internet Address Physical Address Type 29 00-01-30-bd-e9-a0 dynamic 32 00-04-96-05-47-0a dynamic 33 00-04-96-05-47-15 dynamic 34 00-04-96-05-34-f7 dynamic 35 0

42、0-04-96-05-47-0e dynamic 36 00-04-96-05-35-11 dynamic 37 00-04-96-05-47-d6 dynamic 38 00-04-96-05-34-ec dynamic 39 00-04-96-05-48-96 dynamic 40 00-04-96-05-34-70 dynamic C:,IP(internet)网络工作原理,Router and the OSI Model,IP Network: Design Issues【设计

43、因素】,Routing 【IP 路由选择】 Datagram lifetime 【生命周期】 Fragmentation and re-assembly Error control Flow control,IP Routing 【IP选路原理】,End systems and routers maintain routing tables路由表 Indicate next router to which datagram should be sent Static 【静态:路由表】 May contain alternative routes Dynamic 【动态:路由表】 Flexibl

44、e response to congestion and errors Source routing 【发端路由器选路】 Source specifies route as sequential list of routers to be followed Security Priority Route recording,IP路由表设计原理,路径:H1-R1-R2-R4-H2 设计需要考虑到问题 (4个): 路由器(Routers)的路由表如何获取? 为什么选择这条路径? 假设R2与R4的连接断掉,如何通知R1? 在Internet中,是否每个路由器都必须了解其它路由器的情况?,IP网络:路

45、由器(Routers)的路由表如何获取?,IP路由表的建立和维护 - 静态配置,静态配置:管理员手工配置和更新路由表 适用环境:拓扑相对稳定,路由器个数较少 优点:节省路由器的处理时间、存储空间以及网络带宽 缺陷:对于链路故障及拓扑结构变化的响应速度慢,IP路由表的建立和维护 动态配置,动态配置:利用路由协议交换路由信息,并根据拓扑结构的变化动态更新路由表 适用环境:路由器较多的大规模网络 优点:自动适应链路故障及拓扑结构的变化 缺陷:耗费路由器的处理时间、存储空间以及网络带宽,7.3 IP路由表:选路原理,1、选路方式: 表驱动:每个主机和路由器都有一张路由表,指明去往某信宿应该走哪条路径。

46、选路时,查询路由表。,2、路由表格式 【IP Destination: 信宿】,不是主机地址,而是网络地址,不是完整路径,而是(next hop)下一跳地址,网 1 ,网 4 ,网 3 ,网 2 ,,,,,,目的主机所在的网络,下一跳地址,,,,,,,直接交付,接口 1,直接交付,接口 0,路由器 R2 的路由表,,,40.0

47、.0.4,,,,,链路 4,链路 3,链路 2,链路 1,R2,R3,R1,0,1,R2,R3,R1,在路由表中,对每一条路由,最主要的是 (目的网络地址,下一跳地址),IP网络结构:AS系统设置AS - Autonomous Systems 自治系统,What is Autonomous Systems (AS),Group of routers Exchange information Common routing protocol Set of routers and networks managed by single o

48、rganization A connected network There is at least one route between any pair of nodes,Interior Router Protocol (IRP),Passes routing information between routers within AS May be more than one AS in internet Routing algorithms and tables may differ between different AS IRP needs detailed model,Exterio

49、r Routing Protocol (ERP),Routers need some info about networks outside their AS Used exterior router protocol (ERP) ERP supports summary information on reachability (网络可达性),Application of IRP and ERP,CERNET 【中国教育网 - AS:4538】,IP Routing Algorithms 【路由算法】,Routing algorithms are used to build and maint

50、ain the IP routing table on a device. There are two primary methods used to build the routing table: Static routing: Static routing use preprogrammed definitions representing paths through the network. Dynamic routing: Dynamic routing algorithms allow routers to automatically discover (learn) and ma

51、intain awareness of the paths through the network. This automatic discovery can use a number of currently available dynamic routing protocols.,IP路由表原理Dynamic routing:【动态路由】,Dynamic Routing 【算法原理】,Distance vector routing 矢量-距离算法:以跳数(hop)作为度量值,通过交换路由表,计算出所有已知的最短路由,更新路由表。 Link state routing 【链路状态算法】 通过

52、交换链路状态,让AS中的每个路由器都有一张该AS的网络拓扑结构图。 使用Dijkstra算法求最短路径,计算该路由器到其它目的站的最短路径,然后更新路由表。,Distance Vector Routing矢量-距离算法,What is 【Distance Vector Routing】,The principle behind distance vector routing is simple. Each router in the internetwork maintains the distance or cost from itself to every known destinatio

53、n. This value represents the overall desirability of the path. Paths associated with a smaller cost value are more attractive to use than paths associated with a larger value. The path represented by the smallest cost becomes the preferred path to reach the destination.,What is Distance Vector Routi

54、ng,This information is maintained in a distance vector table. The table is periodically advertised to each neighboring router. Each router processes these advertisements to determine the best paths through the network. RIP and BGP are two popular examples of distance vector routing protocols.,Distan

55、ce Vector Routing 【矢量-距离算法】,Each router periodically shares its knowledge about the entire network with its neighbors. Knowledge about the whole network. Routing only to neighbors. Information sharing at regular intervals. Based on hop count,Example of an Internet,Concept of Distance Vector Routing,

56、Distance Vector Routing Table,路由表,A router can discover to which networks it is connected by examining its own logical addresses,Original Routing Table Distribution,Updating Routing Table for Router A,Updating Routing Table for Router C,Updated Routing Tables,Updating Routing Table for Router F,1 -

57、1 - 4 B 78 1 -,+,ONE HOP,=,2 A 2 A 5 A 78 2 A,2 A 2 A 5 A 1 - 92 1 -,55 5 A,New Updated Routing Tables,Final Routing Tables,Link state routing 【链路状态算法】使用Dijkstra算法求最短路径,What is 【Link state routing】,The algorithms are used in the principle of a link state is to determine network topology. A link stat

58、e is the description of an interface on a router (for example, IP address, subnet mask, type of network) and its relationship to neighboring routers. The collection of these link states forms a link state database. Each router identifies all other routing devices on the directly connected networks. Each router advertises a list of all directly connected network links and the associated cost of each link. This is performed through the exchange of link state advertisements (LSAs) with other routers in the network.

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论