Documente Academic
Documente Profesional
Documente Cultură
Prepared by Taylor M. Wells: College of Business Administration, California State University, Sacramento 5-1 5-2
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
5-3 5-4
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
1
31/07/2018
• Transmission Control Protocol (TCP) • PDU contains layer-specific information necessary for a
– Most common transport layer protocol message to be transmitted through a network
– PDU called a segment – Each layer adds a PDU
– Used for reliable transmission of data – PDUs act like nested envelopes
– 160 - 192 bits (20 -24 bytes) of overhead – Encapsulation occurs when a higher level PDU is
• Options field is not required placed inside of a lower level PDU
5-5 5-6
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
5-7 5-8
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
2
31/07/2018
• 128-bit addresses (2128 or ~3.4 × 1038 possible) (4 bits) (4 bits) (8 bits) (16 bits) (16 bits) (3 bits) (13 bits)
Hop Limit
(8 bits) (8 bits) (16 bits) (32 bits) (32 bits) (32 bits) (varies)
5-9 5-10
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
3
31/07/2018
2. Segmenting
– Breaking up large files into smaller segments (and
putting them back together)
– Segments may be passed individually to application
layer or after reassembly
– How large are the segments?
• Size depends on the network and data link layer protocols
• Maximum Segment Size (MSS) is negotiated during TCP handshake
• e.g., if the maximum size of the data in an Ethernet frame is 1,500
bytes and TCP and IP use 20 byte headers, the maximum segment size
is 1460 bytes
IPv4 header
Ethernet
Frame Data
Size 1500 – 20 – 20 = 1460 bytes
TCP header
5-13 5-14
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
5-15 5-16
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
4
31/07/2018
5-17 5-18
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. ICANN – Internet
CopyrightCorporation
© 2015 Johnfor Assigned
Wiley Names
& Sons, and
Inc. All Numbers
rights reserved.
5-19 5-20
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
5
31/07/2018
5-23 5-24
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
6
31/07/2018
10.10.51.x 10.10.52.x
What are the possible
Routing paths from A to G?
1
2
4
1
2
4 3
• ABCG 3
• ABEFCG 10.10.53.x
• ADEFCG BN 10.10.250.x 1
2
INTERNET
• ADEBCG
Simplified Routing 2
Simplified Routing Table
Table for A
1
Dest. Next Destination Interface
10.10.34.x 2
B B 10.10.70.x 1
C B 0.0.0.0 2
Note: This is just for illustration. Switches 1 10.10.70.x
exists in a LAN and therefore required also D D
in this decision process. E D
F D
G B
5-25 5-26
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
10.10.51.x 10.10.52.x
1
2
4
1
2
Routing
4 3
3
• Centralized Routing
10.10.53.x
BN 10.10.250.x
2
1 – Routing decisions made by one computer
INTERNET
– Not common anymore
• Decentralized Routing
2
Simplified Routing Table – Decisions made by each node independently of one
Destination Interface 1 another
10.10.51.x 1 10.10.34.x 2
10.10.52.x 2
– Information needs to be exchanged to prepare routing
10.10.34.x 3 tables
10.10.53.x 2 1 10.10.70.x
10.10.70.x 2
• Devices share and update their routing tables
10.10.250.34 3 – Used by the Internet
10.10.250.x 2
0.0.0.0 4
5-27 5-28
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
7
31/07/2018
Routing Routing
5-29 5-30
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
5-31 5-32
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
8
31/07/2018
• Enhanced Interior Gateway Routing Protocol • If each network uses a different protocol internally, how
(EIGRP) are they able to communicate?
– A dynamic link state protocol (developed by Cisco)
– Records transmission capacity, delay time, reliability and load for
all paths • Border Gateway Protocol (BGP)
– Keeps the routing tables for its neighbors and uses this – Dynamic distance vector protocol used for exterior
information in its routing decisions as well routing
– Far more complex than interior routing protocols
– Provide routing info only on selected routes (e.g.,
preferred or best route)
5-33 5-34
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
Multicasting
• Unicast - one computer to another computer
• Broadcast - one computer to all computers in the network
• Multicast - one computer to a group of computers (e.g.,
videoconference)
– Same data needs to reach multiple receivers and avoid
transmitting it once for each receiver
• Particularly useful if access link has bandwidth
limitations
• Many implementations at different layers
• In IP multicast, hosts dynamically join and leave
multicast groups using Internet Group Management
Protocol (IGMP)
5-35 5-36
Copyright © 2015 John Wiley & Sons, Inc. All rights reserved. Copyright © 2015 John Wiley & Sons, Inc. All rights reserved.
9
31/07/2018
TCP/IP Example
Known Addresses, Same Subnet
10
31/07/2018
11