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

Slides:



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

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.
Discussion Monday ( ). ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier header checksum time to live.
Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Q and A for Ch. 1, 2, 3 CS 332 Spring Structure of the class Q: Comer describes five aspects of networking around which he has structured his text.
CCNA – Network Fundamentals
IS333, Ch. 26: TCP Victor Norman Calvin College 1.
Chapter 7 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain the need for the transport layer.  Identify.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
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.
Chapter 23: ARP, ICMP, DHCP IS333 Spring 2015.
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
Chapter 27 Q and A Victor Norman IS333 Spring 2015.
Ch 20 Q and A IS333, Spring 2015 Victor Norman. Universal Service Means every computer can talk “directly” with every other one. A message is not addressed.
Q and A, Ch. 21 IS333, Spring 2015 Victor Norman.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals – Chapter 5 Sandra Coleman, CCNA, CCAI.
Process-to-Process Delivery:
Support Protocols and Technologies. Topics Filling in the gaps we need to make for IP forwarding work in practice – Getting IP addresses (DHCP) – Mapping.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
University of Calgary – CPSC 441.  UDP stands for User Datagram Protocol.  A protocol for the Transport Layer in the protocol Stack.  Alternative to.
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.
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
© MMII JW RyderCS 428 Computer Networking1 Private Network Interconnection  VPN - Virtual Private Networks  NAT - Network Address Translation  Describe.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
CS332, Ch. 26: TCP Victor Norman Calvin College 1.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
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.
1 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 22 Q and A Victor Norman CS 332 Spring 2014.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
Chapter 81 Internet Protocol (IP) Our greatest glory is not in never failing, but in rising up every time we fail. - Ralph Waldo Emerson.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Marwan Al-Namari Week 5. Responsible for delivering packets between endpoints over multiple links Physical Link Network Transport Application.
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,
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
1 OSI and TCP/IP Models. 2 TCP/IP Encapsulation (Packet) (Frame)
1 Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
IP addresses IPv4 and IPv6. IP addresses (IP=Internet Protocol) Each computer connected to the Internet must have a unique IP address.
Protocol Layering Chapter 11.
Firewalls A brief introduction to firewalls. What does a Firewall do? Firewalls are essential tools in managing and controlling network traffic Firewalls.
4343 X2 – The Transport Layer Tanenbaum Ch.6.
UDP : User Datagram Protocol 백 일 우
1 Kyung Hee University Chapter 11 User Datagram Protocol.
Bjorn Landfeldt, The University of Sydney 1 ELEC 3504 UDP.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
Q and A, Ch. 21 IS333, Spring 2016 Victor Norman.
Ch. 25, 26 UDP, TCP CS332, Spring 2016 Victor Norman, Professor Extraordinaire.
Process-to-Process Delivery:
Ch 3. Transport Layer Myungchul Kim
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
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Scaling the Network: The Internet Protocol
Forwarding and Routing IP Packets
NET323 D: Network Protocols
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:
Net 323 D: Networks Protocols
Scaling the Network: The Internet Protocol
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.
Presentation transcript:

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

What fields change for NAT? Q: Can you show us on the board what fields NAPT changes as it forwards packets? A: Sure! NOTE: for me, NAT as Comer describes it, is unused. Everyone calls NAPT “NAT”. So will I.

Why do you need to change the port in NAT? Q: Why is the src IP address changed in NAT? A: Because the src IP is a private, non-routable IP address, and used by many machines in private networks all over the known universe. Q: Why do you need to change the port in NAT? A: It is used as the key to distinguish return packets – to figure out which machine to forward to (because multiple machines behind the NAT can send to the same destination IP address).

Why was NAT created? Q: Why was NAT created? A: So that one IP address can be given to a company/entity and yet, many machines can access the Internet. I.e., to preserve IP addresses.

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.

Message-oriented interface Q: What does it mean that UDP has a message- oriented interface? A: It means when a program (at layer 5) tells UDP (at layer 4) to send data, the data is sent in one message to the destination. (We’ll see that TCP uses a different paradigm.)

Fragmenting UDP? Q: Multiple people asked about UDP fragmentation. Is it done or not?! A: UDP does not do fragmentation. You can send a 64KB UDP message. It will be handed to IP below it, and IP will fragment it to fit into the MTU of the network it will be sent out on. The receiving IP layer will reassemble the 64KB packet before handing it back up to the receiving UDP layer.

UDP used? Q: Is UDP used today? A: Yes, it is. It is used by DNS (domain name resolution). It is used for games etc. Q: Why is it used? A: 1) Efficiency. It adds almost no functionality/overhead on top of IP. 2) You can broadcast a UDP message (because UDP is connectionless).

Bad checksums Q: What happens when a UDP packet is received with a bad checksum? A: The packet is dropped. End of story.

Pseudo-headers Q: We all have lots of questions about pseudo- headers! Answer them! A: No. They are not part of the learning objectives.

Old Slides

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 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.