Presentation is loading. Please wait.

Presentation is loading. Please wait.

Service time evaluation (transfer) for a message sent over a LAN through TCP protocol Network Routers service time.

Similar presentations


Presentation on theme: "Service time evaluation (transfer) for a message sent over a LAN through TCP protocol Network Routers service time."— Presentation transcript:

1 Service time evaluation (transfer) for a message sent over a LAN through TCP protocol Network Routers service time

2 PROTOCOL TCP/IP STRATIFICATION IP UDP TELNETHTTPFTP TCP NFS DNSSNMP data link layer network layer transport layer RPC

3 DATAGRAM IP FORWARDING The router holds a routing table, used to find the following router or host which forward the datagram Host AHost B TCP IP Network layer TCP IP Network layer IP Data layer router

4 Layer n Layer n -1 Layer n Layer n -1 network PROTOCOLS Communication protocol design is based on a layer architecture. Every layer n entity communicates, exchanging Physical Data Unit (PDU), only with layer n remote entities, using the services provided by layer n-1 and offers services to layer n+1. When data are transferred an header is added by each layer Data layer nHeader layer n Data layer n -1 Header layer n -1

5 NETWORK PROTOCOLS

6 TCP TCP provides a service: connection oriented, reliable, end-to-end, with flow control. It assures the data delivery in the same sending order, without losses. TCP implements a connection reliable mechanism called Three way handshake 3 segments are required to establish a connection 4 segments are required to end it in both directions Host A Host B syn ack data fin ack data fin ack

7 IP IP defines the format of the packets sent in Internet The service is unreliable, isn’t end-to-end like, and the datagrams can be lost

8 FRAGMENTATION Protocol entities at each layer communicate with each other by exchanging PDUs composed of a header and a data area. PDUs have a maximum dimension for the data area (named, for the network layer, Maximum Transmission Unit ((MTU)) Being MTUs lengths variable for different protocols, router has to be able to fragment datagrams, that will be reassembled at the IP level by the destination host.

9 Fragmentation disadvantages The router has to be able to divide PDU Destination node must reassemblate the fragments WARNING: IP standard tells to fragment from source node, in anticipation of the path to make.

10 Service times Service Time of a message Time to transmit the message over the network = = # of bytes (including protocol header-trailer, and fragmentation if there is) bandwidth =

11 Example WITHOUT fragmentation 300 byte message sent from a Client to a Server TCP IP Network layer client TCP IP Network layer Server ethernet T.R. FDDI 300 20 30020 30020 18 30020 28 30020 28 300 20 30020 router1 router2

12 LAN service time 440420 28 Service Time Eth = 10.000.000 == 358 x 8 10.000.000 0.000286 sec. Service Time FDDI = 100.000.000 == 368 x 8 100.000.000 0.00002944 sec. Service Time TR = 16.000.000 == 368 x 8 16.000.000 0.000184 sec. 30020 28 30020 28 300 byte message sent from a Client to a Server

13 Example WITH fragmentation TCP IP Network layer client TCP IP Network layer Server ethernet T.R. FDDI 10000 44042044241172 440420 442420 117220 440420 442420 117220 28 440420 442420 117220 28 - + TR FDDI 28 + - + - 440420 442420 117220 28 - FDDI 28 - - = 4424 = = 1192 14802018 14802018 14642018 dataIPET 119218 dataET The Server sends a 10.000 byte reply to Client Hypothesis: TCP does not know the local network MTU 20

14 LAN Service Time Service Time = 16.000.000 The Server sends a 10.000 byte reply to Client Hypothesis: TCP does not know the local network MTU Case of Token Ring 440420 44242011722028 ++ Service Time = 16.000.000 (4472+4472+1220) x 8 = 0.005082 sec. () x 8

15 TCP IP Network layer client TCP IP Network layer Server ethernet T.R. FDDI 10000 44042044041192 440420 440420 119220 440420 440420 119220 28 440420 440420 119220 28 - + TR FDDI 28 + - + - 440420 440420 119220 28 - FDDI 28 - - = 4424 = = 1232 14602018 14802018 14642018 dataIPET 123218 dataET 20 TCP Example WITH fragmentation The Server sends a 10.000 byte reply to Client Hypothesis: TCP knows the local network MTU

16 Service Time = 16.000.000 440420 44042011922028 ++ Service Time = 16.000.000 (4472+4472+1260) x 8 = 0.005102 sec. () x 8 20 0.005082 sec. 0.005102 sec. 20  sec different LAN Service Time The Server sends a 10.000 byte reply to Client Hypothesis: TCP knows the local network MTU Case of Token Ring

17 Average service time Evaluation without fragmentation Let’s specify: MTU n : network n MTU (byte) XOvhd: X protocol overhead (byte) FrameOvhd n : network n overhead (byte) Overhead n : network n total overhead (TCP+IP+frame) (byte) Bandwidth n : network n bandwidth (Mbps) Ndatagrams: number of IP datagrams required Nsegments: number of TCP segments required (< or = Ndatagrams) N: number of networks

18 Average service time Without fragmentation NDatagrams = ServiceTime n = MessageSize + NSegments x TCPOvhd min n MTU n - IPOvhd Overhead n = NSegments x TCPOvhd + Ndatagrams x (IPOvhd + FrameOvhd n ) 8 x (MessageSize + Overhead n ) 10 6 x Bandwidth NSegments = MessageSize 65495 NSegments = NDatagrams TCP knows LAN MTU TCP does not know LAN MTU (rough estimate)

19 Exercise - text T.R. FDDI 100 Mbps MTU: 4472 bytes The client sends 3 transactions per minute (0.05 tps), whose messages average lenght is 400 bytes. The 80% of replies are 8092 bytes lenght and the 20% are 100.000 bytes Assuming that no fragmentation exists and the TCP layer does not know the netwotk MTU, evaluate the average service time for requests and replies for each network. router1router2 ClientDB server Ethernet 10 Mbps MTU: 1518 bytes Token RingI 16 Mbps MTU: 4444 bytes

20 Exercise - solution Using NDatagrams = MessageSize + Nsegment x TCPOvhd min n MTU n - IPOvhd We can evaluate the numbers of Datagrams required in each case (request, short reply and long reply) (400+20)/(1500-20) = 1 request (8092+20)/(1500-20) = 6 short reply (100000+40)/(1500-20) = 68 long reply

21 Exercise - solution Using We can evaluate the network overhead (ethernet) Overhead Eth = 20 + 1 (20 + 18) = 58 request Overhead Eth = 20 + 6 (20 + 18) = 248 short reply Overhead Eth = 20 + 68 (20 + 18) = 2604 long reply Overhead n = TCPOvhd+Ndatagrams x (IPOvhd + FrameOvhd n ) Using We can evaluate the Service Time (ethernet) Overhead Eth = 8 x (400 + 58) / 10.000.000 = 0.366 msec request Overhead Eth = 8 x (8092 + 248) / 10.000.000 = 6.67 msec short reply Overhead Eth = 8 x (100.000 + 2604) / 10.000.000 = 82.1 msec long reply ServiceTime n = 8 x (MessageSize + Overhead n ) 10 6 x Bandwidth

22 Service times evaluation

23 Network Router Router queues

24 Service times at Routers Router latency (  sec per packet): time spent by the router to process a datagram, given by manufacturer. RouterServiceTime: Ndatagrams * RouterLatency Where NDatagrams = MessageSize + TCPOvhd min n MTU n - IPOvhd

25 Exercise Router 1 and 2 process 400,000 packets/sec  Service time: 2.5  sec (=1/400,000)  Service demand at router T.R. FDDI 100 Mbps MTU: 4472 bytes router1router2 ClientDB server Ethernet 10 Mbps MTU: 1518 bytes Token Ring 16 Mbps MTU: 4444 bytes Client RequestShort ReplyLong Request 1 x 2.5 = 2.5  sec6 x 2.5 = 15  sec 68 x 2.5 = 170  sec


Download ppt "Service time evaluation (transfer) for a message sent over a LAN through TCP protocol Network Routers service time."

Similar presentations


Ads by Google