PORT CONNECTION STATUS CT1406 - Lab#4. TCP packet UDP packet Ports Background.

Slides:



Advertisements
Similar presentations
Interconnecting Networks with TCP/IP
Advertisements

Cisco 2 - Routers Perrine. J Page 14/30/2015 Chapter 10 TCP/IP Protocol Suite The function of the TCP/IP protocol stack is to transfer information from.
CCNA – Network Fundamentals
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
CISCO NETWORKING ACADEMY PROGRAM (CNAP)
Lecture 7 Transport Layer
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
Chapter 7 – Transport Layer Protocols
CCNA 1 v3.1 Module 11 Review.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 10 Intermediate TCP/IP.
Introduction to Management Information Systems Chapter 5 Data Communications and Internet Technology HTM 304 Fall 07.
1 CCNA 2 v3.1 Module Intermediate TCP/IP CCNA 2 Module 10.
Communication Protocols III Tenth Meeting. Connections in TCP A wants to send to B. What is the packet next move? A travels through hub and bridge to.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
Chapter 4 OSI Transport Layer
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
Process-to-Process Delivery:
OSI Model Routing Connection-oriented/Connectionless Network Services.
Hands-On Microsoft Windows Server 2003 Networking Chapter Three TCP/IP Architecture.
Networking Basics TCP/IP TRANSPORT and APPLICATION LAYER Version 3.0 Cisco Regional Networking Academy.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
1 ELEN602 Lecture 2 Review of Last Lecture Layering.
Computer Networks.  The OSI model is a framework containing seven layers that defines the protocols and devices used at each stage of the process when.
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
1 © 2004, Cisco Systems, Inc. All rights reserved. Chapter 4 Routing Fundamentals and Subnets/ TCP/IP Transport and Application Layers.
Examining TCP/IP.
Chapter 5 Transport layer With special emphasis on Transmission Control Protocol (TCP)
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
Transmission Control Protocol TCP. Transport layer function.
Routers and Routing Basics CCNA 2 Chapter 10.
1 © 2004, Cisco Systems, Inc. All rights reserved. Chapter 9 Intermediate TCP/IP/ Access Control Lists (ACLs)
Transmission Control Protocol
11 TRANSPORT LAYER PROTOCOLS Chapter 6 TCP and UDP SPX and NCP.
Chapter 6-2 the TCP/IP Layers. The four layers of the TCP/IP model are listed in Table 6-2. The layers are The four layers of the TCP/IP model are listed.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Protocol Headers 0x0800 Internet Protocol, Version 4 (IPv4) 0x0806 Address Resolution Protocol (ARP) 0x8100 IEEE 802.1Q-tagged frame 0x86DD Internet Protocol,
Networking Basics CCNA 1 Chapter 11.
IP addresses IPv4 and IPv6. IP addresses (IP=Internet Protocol) Each computer connected to the Internet must have a unique IP address.
Networking Material taken mainly from HowStuffWorks.com.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
Linux Operations and Administration Chapter Eight Network Communications.
1. Layered Architecture of Communication Networks: TCP/IP Model
Telecommunications Essentials John R. Durrett July 5, 2005.
17 Establishing Dial-up Connection to the Internet Using Windows 9x 1.Install and configure the modem 2.Configure Dial-Up Adapter 3.Configure Dial-Up Networking.
SWICHING & ROUTING.
Introduction to TCP/IP networking. TCP/IP protocol family IP : Internet Protocol UDP : User Datagram Protocol TCP : Transmission Control Protocol.
Page 12/9/2016 Chapter 10 Intermediate TCP : TCP and UDP segments, Transport Layer Ports CCNA2 Chapter 10.
Computer Network Architecture Lecture 6: OSI Model Layers Examples 1 20/12/2012.
© 2002, Cisco Systems, Inc. All rights reserved..
Data Communications and Networks Chapter 6 – IP, UDP and TCP ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Cisco I Introduction to Networks Semester 1 Chapter 7 JEOPADY.
Communication Networks NETW 501 Tutorial 2
1 14-Jun-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI transport layer CCNA Exploration Semester 1 – Chapter 4.
Application Layer Functionality and Protocols Abdul Hadi Alaidi
Introduction To TCP/IP Networking Mr. Zeeshan Ali, Asst. Professor
Introduction to TCP/IP networking
Port Connection Status
TCP Transport layer Er. Vikram Dhiman LPU.
Process-to-Process Delivery:
Lecture 4 Communication Network Protocols
Process-to-Process Delivery: UDP, TCP
16EC Computer networks unit II Mr.M.Jagadesh
Presentation transcript:

PORT CONNECTION STATUS CT Lab#4

TCP packet UDP packet Ports Background

TCP packet

TCP Packet  Sequence number (32 bits)  has a dual role:  If the SYN flag is set (1), then this is the initial sequence number. The sequence number of the actual first data byte and the acknowledged number in the corresponding ACK are then this sequence number plus 1.  If the SYN flag is clear (0), then this is the accumulated sequence number of the first data byte of this segment for the current session.  When a host initiates a TCP session, its initial sequence number is effectively random; it may be any value between 0 and 4,294,967,295,  Acknowledgment number (32 bits)  if the ACK flag is set then the value of this field is the next sequence number that the receiver is expecting.

TCP example  For example, the initial relative sequence number shown in packet #1 is 0 (naturally), while the ASCII decode in the third pane shows that the actual sequence number is 0xf61c6cbe, or decimal.

TCP example (cont.)

 Statistics > Flow Graph..., select TCP flow and click OK

TCP STATES- Create connection

TCP STATES – close connection

UDP Packet

Port definition  Port: There are two types of ports relating to computers  1) Connections to peripherals such as USB devices, serial cables, or mouse's etc  2) Virtual ports found in TCP/IP communications

Expanded definition  For information relating to network security we are more concerned with virtual ports  Ports are like channels that carry information into, out of, and internal to a computer  There are 65,536 standard ports on a computer  Each port is assigned to a certain type of communication “traffic”

Example of port assignments

netstat Port connection status

Netstat  Netstat is an important utility for network administrators.  It is used to display active TCP connections and UDP connections, Ethernet statistics, and the IP routing table.  A port can be in any one of a number of states.  When a TCP port is in a listening state, it is waiting for initiation and completion of a three-way handshake.  This results in the port transforming to an established state.

Netstat (windows)  - a : Displays all active TCP connections and the TCP and UDP ports on which the computer is listening.  -e : Displays Ethernet statistics.  -n : Displays active TCP connections, however, addresses and port numbers are expressed numerically and no attempt is made to determine names.  -o : Displays active TCP connections and includes the process ID (PID) for each connection.  -p Protocol : Shows connections for the protocol specified by Protocol.  -s : Displays statistics by protocol.  -r : Displays the contents of the IP routing table. This is equivalent to the route print command.  Interval : Redisplays the selected information every Interval seconds  /? : Displays help at the command prompt.

Netstat (windows) - examples Examples  To display both the Ethernet statistics and the statistics for all protocols, type the following command:  netstat -e -s  To display the statistics for only the TCP and UDP protocols, type the following command:  netstat -s -p tcp udp  To display active TCP connections and the process IDs every 5 seconds, type the following command:  netstat -o 5  To display active TCP connections and the process IDs using numerical form, type the following command:  netstat -n -o

Netstat ( linux) Commanddiscription netstat -a | more all the listening and non-listening ports netstat -tCurrent TCP sessions on the system netstat -uCurrent UDP sessions on the system Netstat –l Netstat –lt – netstat -lu It shows all the sockets which are in listening state. netstat –rCurrent routing table netstat -nDisplays addresses and port numbers in numerical form. Netstat -rn netstat –iCurrent interfaces Netstat -xused to dispaly the statistic of each protocol

How to read Netstat result - example  Example (netstat –an)

How to read Netstat result IP  *.* = All IPv4 addresses (it's listening, so accept connections from any IPv4)  [::] = All IPv6 addresses (it's listening, so accept connections from any IPv6)  If it says on the Local Address column, it means that port is listening on all 'network interfaces' (i.e. your computer, your modem(s) and your network card(s)).  on the Local Address column, it means that port is ONLY listening for connections from your PC itself, not from the Internet or network. No danger there.  If it displays your online IP on the Local Address column, it means that port is ONLY listening for connections from the Internet.  If it displays your local network IP on the Local Address column, it means that port is ONLY listening for connections from the local network.  Foreign Address - The IP address and port number of the remote computer to which the socket is connected. The names that corresponds to the IP address and the port are shown unless the -n parameter is specified. If the port is not yet established, the port number is shown as an asterisk (*).

How to read Netstat result  Consider the following example :  RX-OK : Correct packets received on this interface. RX-ERR : Incorrect packets received on this interface RX-DRP : Packets that were dropped at this interface. RX-OVR : Packets that this interface was unable to receive.

FTP Command  FTP stands for file transfer protocol. It is an application layer protocol as well as an application.  The FTP command is used in the command prompt to connect to FTP servers.

Lab Exercise  Objectives  Name the command used to display protocol statistics and current TCP/IP network connections (netsat).  Understand how a computer can manage multiple communications through the use of ports.  List the switches that can be added to the netstat command to increase its functionality.