计算机网络自定向下设计课件第11章
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
– no network-level concept of “connection”
• packets typically routed using destination host ID
– packets between same source-dest pair may take different paths
Datagram or VC network: why?
Internet
• data exchange among computers – “elastic” service, no strict timing req. • “smart” end systems (computers) – can adapt, perform control, error recovery – simple inside network, complexity at “edge” • easier to connect many link types – different characteristics – uniform service difficult
Routing
Routing protocol
Goal: determine “good” path (sequence of routers) thru network from source to dest. A
5 2 1
B
2
3 3 1
C
1
5
F
2
Graph abstraction for routing algorithms: • graph nodes are routers • graph edges are physical links
Network Architecture Internet ATM Service Model
Congestion Bandwidth Loss Order Timing feedback no
yes yes no no no yes no yes no (inferred via loss) no congestion no congestion yes no
– (in contrast, transport-layer connection only involved two end systems)
• link, router resources (bandwidth, buffers) may be allocated to VC
– to get circuit-like performance
three important functions: • path determination: route taken by packets from source to dest. Routing algorithms • switching: move packets from router‟s input to appropriate router output • call setup: some network architectures require router call setup along path before data flows
Network Layer
Goals:
• understand principles behind network layer services:
– – – – routing (path selection) dealing with scale how a router works advanced topics: IPv6, multicast
– performance-wise – network actions along source-to-dest path • call setup, teardown for each call before data can flow • each packet carries VC identifier (not destination host ID) • every router on source-dest path maintains “state” for each passing connection
abstraction provided by network layer:
The most important
? ? ?
virtual circuit or datagram?
Virtual circuits
“source-to-dest path behaves much like telephone circuit”
• instantiation and implementation in the Internet
• what‟s inside a router? • IPv6 • multicast routing
Network layer functions
• transport packet from sending to receiving hosts • network layer protocols in every host, router
application transport network data link physical
network data link physical
network data link physical network data link physical
network data link physical
6. Receive data application 3. Accept call transport 2. incoming call network
data link physical
Datagram networks: the Internet model
• no call setup at network layer • routers: no state about end-to-end connections
network data link physical
network data link physical
network data link physical network data link physical application transport network data link physical
百度文库
Notation: • c(i,j): link cost from node
i to j. cost infinite if not direct neighbors
• D(v): current value of
cost of path from source to dest. V
Network service model
Q: What service model for “channel” transporting packets from sender to receiver?
• guaranteed bandwidth? • preservation of inter-packet timing (no jitter)? • loss-free delivery? • in-order delivery? • congestion feedback to sender?
– link cost: delay, $ cost, or congestion level
D
E
• “good” path:
– typically means minimum cost path – other definitions possible
Routing Algorithm classification
Overview:
• network layer services • routing principle: path selection • hierarchical routing • IP • Internet routing protocols reliable transfer
– intra-domain – inter-domain
A Link-State Routing Algorithm
Dijkstra‟s algorithm
• net topology, link costs known to all nodes – accomplished via “link state broadcast” – all nodes have same info • computes least cost paths from one node („source”) to all other nodes – gives routing table for that node • iterative: after k iterations, know least cost path to k destinations
Guarantees ?
best effort none CBR constant rate guaranteed rate guaranteed minimum none
ATM
ATM
VBR
ABR
yes
yes
yes
no
ATM
UBR
yes
no
• Internet model being extended: Intserv, Diffserv – Chapter 6
ATM
• evolved from telephony • human conversation: – strict timing, reliability requirements – need for guaranteed service • “dumb” end systems – telephones – complexity inside network
Virtual circuits: signaling protocols
• used to set up, maintain, and tear down VC • used in ATM, frame-relay, X.25 • not used in today‟s Internet
application transport 5. Data flow begins network 4. Call connected data link 1. Initiate call physical
Global or decentralized information?
Global: • all routers have complete topology, link cost info • “link state” algorithms Decentralized: • router knows physicallyconnected neighbors, link costs to neighbors • iterative process of computation, exchange of info with neighbors • “distance vector” algorithms
application transport network data link 1. Send data physical application transport 2. Receive data network data link physical
Network layer service models:
Static or dynamic?
Static: • routes change slowly over time (usually by humans) Dynamic: • routes change more quickly/automatically – periodic update – in response to link cost changes
• packets typically routed using destination host ID
– packets between same source-dest pair may take different paths
Datagram or VC network: why?
Internet
• data exchange among computers – “elastic” service, no strict timing req. • “smart” end systems (computers) – can adapt, perform control, error recovery – simple inside network, complexity at “edge” • easier to connect many link types – different characteristics – uniform service difficult
Routing
Routing protocol
Goal: determine “good” path (sequence of routers) thru network from source to dest. A
5 2 1
B
2
3 3 1
C
1
5
F
2
Graph abstraction for routing algorithms: • graph nodes are routers • graph edges are physical links
Network Architecture Internet ATM Service Model
Congestion Bandwidth Loss Order Timing feedback no
yes yes no no no yes no yes no (inferred via loss) no congestion no congestion yes no
– (in contrast, transport-layer connection only involved two end systems)
• link, router resources (bandwidth, buffers) may be allocated to VC
– to get circuit-like performance
three important functions: • path determination: route taken by packets from source to dest. Routing algorithms • switching: move packets from router‟s input to appropriate router output • call setup: some network architectures require router call setup along path before data flows
Network Layer
Goals:
• understand principles behind network layer services:
– – – – routing (path selection) dealing with scale how a router works advanced topics: IPv6, multicast
– performance-wise – network actions along source-to-dest path • call setup, teardown for each call before data can flow • each packet carries VC identifier (not destination host ID) • every router on source-dest path maintains “state” for each passing connection
abstraction provided by network layer:
The most important
? ? ?
virtual circuit or datagram?
Virtual circuits
“source-to-dest path behaves much like telephone circuit”
• instantiation and implementation in the Internet
• what‟s inside a router? • IPv6 • multicast routing
Network layer functions
• transport packet from sending to receiving hosts • network layer protocols in every host, router
application transport network data link physical
network data link physical
network data link physical network data link physical
network data link physical
6. Receive data application 3. Accept call transport 2. incoming call network
data link physical
Datagram networks: the Internet model
• no call setup at network layer • routers: no state about end-to-end connections
network data link physical
network data link physical
network data link physical network data link physical application transport network data link physical
百度文库
Notation: • c(i,j): link cost from node
i to j. cost infinite if not direct neighbors
• D(v): current value of
cost of path from source to dest. V
Network service model
Q: What service model for “channel” transporting packets from sender to receiver?
• guaranteed bandwidth? • preservation of inter-packet timing (no jitter)? • loss-free delivery? • in-order delivery? • congestion feedback to sender?
– link cost: delay, $ cost, or congestion level
D
E
• “good” path:
– typically means minimum cost path – other definitions possible
Routing Algorithm classification
Overview:
• network layer services • routing principle: path selection • hierarchical routing • IP • Internet routing protocols reliable transfer
– intra-domain – inter-domain
A Link-State Routing Algorithm
Dijkstra‟s algorithm
• net topology, link costs known to all nodes – accomplished via “link state broadcast” – all nodes have same info • computes least cost paths from one node („source”) to all other nodes – gives routing table for that node • iterative: after k iterations, know least cost path to k destinations
Guarantees ?
best effort none CBR constant rate guaranteed rate guaranteed minimum none
ATM
ATM
VBR
ABR
yes
yes
yes
no
ATM
UBR
yes
no
• Internet model being extended: Intserv, Diffserv – Chapter 6
ATM
• evolved from telephony • human conversation: – strict timing, reliability requirements – need for guaranteed service • “dumb” end systems – telephones – complexity inside network
Virtual circuits: signaling protocols
• used to set up, maintain, and tear down VC • used in ATM, frame-relay, X.25 • not used in today‟s Internet
application transport 5. Data flow begins network 4. Call connected data link 1. Initiate call physical
Global or decentralized information?
Global: • all routers have complete topology, link cost info • “link state” algorithms Decentralized: • router knows physicallyconnected neighbors, link costs to neighbors • iterative process of computation, exchange of info with neighbors • “distance vector” algorithms
application transport network data link 1. Send data physical application transport 2. Receive data network data link physical
Network layer service models:
Static or dynamic?
Static: • routes change slowly over time (usually by humans) Dynamic: • routes change more quickly/automatically – periodic update – in response to link cost changes