Ch. 23, 25 Q and A (NAT and UDP) Victor Norman IS333 Spring 2014.

Slides:



Advertisements
Similar presentations
Computer Networks TCP/IP Protocol Suite.
Advertisements

Ch 20. Internet Protocol (IP) Internetworking PHY and data link layers operate locally.
IPv4 to IPv6 Network Address Translation. Introduction 4 What is the current internet addressing scheme and what limitations does it face. 4 A new addressing.
1 Network Address Translation (NAT) Relates to Lab 7. Module about private networks and NAT.
Network Fundamentals – Chapter 4 Sandra Coleman, CCNA, CCAI
Q and A for Ch. 20 Victor Norman CS332, Last Friday’s scenario Q: In the scenario with the two rooms and the middle-man translator, you said that.
CS332 Victor Norman Spring 2014
CST Computer Networks NAT CST 415 4/10/2017 CST Computer Networks.
Transport Layer3-1 Transport Overview and UDP. Transport Layer3-2 Goals r Understand transport services m Multiplexing and Demultiplexing m Reliable data.
CS 457 – Lecture 16 Global Internet - BGP Spring 2012.
NETWORK LAYER (1) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
IS333, Ch. 26: TCP Victor Norman Calvin College 1.
TCP/IP Protocol Suite 1 Chapter 11 Upon completion you will be able to: User Datagram Protocol Be able to explain process-to-process communication Know.
Ch 23 1 Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007 Ameera Almasoud.
Q and A, Ch. 21 IS333, Spring 2015 Victor Norman.
Ch. 1, 2, 3 Q and A IS 333 Spring “Low-level” details Q: What is meant by “low-level” details in the box on page 4? A: The author means that there.
Process-to-Process Delivery:
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
University of Calgary – CPSC 441.  UDP stands for User Datagram Protocol.  A protocol for the Transport Layer in the protocol Stack.  Alternative to.
9/11/2015Home Networking1 Bob.test Have Road Runner Unhappy about reports of constant probes of machines Policy decision –I want to prevent unauthorized.
Internet Protocol Internetworking Lab 1. Why Internet?
CS332, Ch. 26: TCP Victor Norman Calvin College 1.
NATs and UDP Victor Norman CS322 Spring NAPT Suppose we have a router doing NAT: half is the “public side”, IP address ; other half is.
Chapter 22 Q and A Victor Norman CS 332 Spring 2014.
CSE 6590 Department of Computer Science & Engineering York University 111/9/ :26 AM.
Networking Fundamentals. Basics Network – collection of nodes and links that cooperate for communication Nodes – computer systems –Internal (routers,
IP addresses IPv4 and IPv6. IP addresses (IP=Internet Protocol) Each computer connected to the Internet must have a unique IP address.
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
Protocol Layering Chapter 11.
IT 210: Web-based IT Fall 2012 Lecture: Network Basics, OSI, & Internet Architecture.
1 Transport Layer: Basics Outline Intro to transport UDP Congestion control basics.
1 Network Address Translation. 2 Network Address Translation (NAT) Extension of original addressing scheme Motivated by exhaustion of IP address space.
4343 X2 – The Transport Layer Tanenbaum Ch.6.
1 Kyung Hee University Chapter 11 User Datagram Protocol.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
Network Layer Protocols COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Ch. 23, 25 Q and A (NAT and UDP) Victor Norman IS333 Spring 2015.
Ch 3. Transport Layer Myungchul Kim
Process-to-Process Delivery:
Ch 3. Transport Layer Myungchul Kim
1 28-Sep-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI network layer CCNA Exploration Semester 1 Chapter 5.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Chapter 11 User Datagram Protocol
Victor Norman IS333 Spring 2016
The Transport Layer Implementation Services Functions Protocols
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
A quick intro to networking
Forwarding and Routing IP Packets
TCP Transport layer Er. Vikram Dhiman LPU.
NET323 D: Network Protocols
Internet Control Message Protocol (ICMP)
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Chapter 14 User Datagram Protocol (UDP)
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
NET323 D: Network Protocols
Process-to-Process Delivery:
Transport Protocols An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Starting TCP Connection – A High Level View
TCP/IP Protocol Suite: Review
CPEG514 Advanced Computer Networkst
Net 323 D: Networks Protocols
Network Address Translation (NAT)
Process-to-Process Delivery: UDP, TCP
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Layer 9/22/2019.
Presentation transcript:

Ch. 23, 25 Q and A (NAT and UDP) Victor Norman IS333 Spring 2014

NAPT Suppose we have a router doing NAT: half is the “public side”, IP address ; other half is the “private side”, Host sends packet to , port 80. – Host chooses source port NAPT makes entry in its table when first packet is sent.

Multiple machines with same IP Q: Does NAPT mean that many hosts could actually have the exact same IP address, say , but they are connected to different NATs, which have different IP addresses? A: Yes. Most (all?) home routers do NAT, and your local home network is /24 or /24 or /8… So many many machines on the Internet have the same IP address but are hidden behind NATs.

NAT addressing Q: I’m confused about how addressing works with NATs. Do both the NAT and the hosts need global IP addresses? Do all the hosts connected to the NAT have to be on the same network? A: Only the public-facing side of the NAT device has a global IP address. You can do whatever networking you want inside your public space. You are supposed to use private address blocks, but I think it works with any addressing…

Private and global address? Q: What is the purpose of having a private & a global address that needs to be translated all the time? Why not just have one that does everything? A: You can have an entire network of private addresses “hidden” behind the one NAT with the global address.

NAT in lab? Q: In lab on Friday, were we dealing with NAT/NAPT and global & private addresses switching from 10.x.x.x and x? A: Nope. No NAT was being done. Just multiple networks connected to a multi-homed host, on which we configured IP forwarding.

UDP Q: Is UDP layer 4? A: Yes. Q: Since UDP deals with applications, does that mean it is layer 5? A: No. It is layer 4. It provides connection-less, unreliable delivery – same as IP. But, it is the layer that demultiplexes the received data to the multiple layer 5 protocols that use IP. This is done with the ports.

UDP Pseudo-header Q: Can you explain pseudo headers a little more? How are they different than regular headers? A: A pseudo-header is not actually sent over the network. It is built in the software when a UDP packet is sent/received. The software just reads the fields it needs from the IP header and uses those fields when calculating its checksum.

UDP Checksum Q: How does the UDP checksum work exactly? A: It uses 16-bit, 1s-complement checksum: you take all 16-bit values and add them up. When you get an overflow, you add 1. Then, at the end you invert all bits. Q: Does it make the header longer? A: Yes: 16 bits longer. It is a field in the header.

UDP Messages Q: I was surprised that when UDP sends a block of data it is placed into a single message and not broken up and fragment like what we have learned in the past. Is this really the best idea? What about spacing and if a message is too large? A: This is how it works. When your code does a write() on a UDP socket, the bytes you provide are sent, without delay. A message can be up to 64K in size, and will be fragmented if needed (by IP).

Unreliability Q: In modern systems and networks, how often is it that a packet, like a UDP packet, doesn't reach its destination or is corrupted, or something like that? Is it common, uncommon, or what? And what sort of things contribute to this problem? A: Packets definitely do get dropped. Routers get overloaded and packets get dropped. Also, radiation, etc., does corrupt packets.

UDP end-to-end or connectionless? Q: I thought parts of the stack were either 'end to end' or connectionless. The text seems to indicate that UDP is both. Please explain. A: A protocol is either connectionless or connection-oriented. UDP is connectionless, and end-to-end. End-to-end means that the endpoints (hosts) communicate and the middle machines (routers) don’t do anything (routers operate at layer 3 and don’t route based on layer 4).

UDP control messages? Q: Do applications need to exchange UDP control messages before exchanging data? A: No! That’s what makes UDP connectionless. An client that is going to send a UDP message to a server just sends it. The server does not know it is coming until it arrives. When a server receives a UDP message it gets the source address/port and the data. The next message could be from a different machine.

UDP vs. TCP Q: Are there any advantages to using UDP over TCP or another layer 4 protocol? A: UDP is low overhead and efficient. But, unreliable.

UDP port 80? Q: The book gave examples that UDP uses port 7 and 37. Is port 80 one of those too or is that something completely different? A: Port 80 would work. Anything from 0 to Theoretically, UDP port 80 identifies the layer 5 data as being http protocol. I’m not sure any one uses http over udp, though.