Port Connection Status

Slides:



Advertisements
Similar presentations
Interconnecting Networks with TCP/IP
Advertisements

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)
UDP & TCP Where would we be without them!. UDP User Datagram Protocol.
Chapter 7 – Transport Layer Protocols
Introduction to Management Information Systems Chapter 5 Data Communications and Internet Technology HTM 304 Fall 07.
COS 338 Day DAY 16 Agenda Capstone Proposals Overdue 3 accepted, 3 in mediation Capstone progress reports still overdue I forgot to mark in calendar.
1 CCNA 2 v3.1 Module Intermediate TCP/IP CCNA 2 Module 10.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
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.
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 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
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
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.
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.
SWICHING & ROUTING.
Introduction to TCP/IP networking. TCP/IP protocol family IP : Internet Protocol UDP : User Datagram Protocol TCP : Transmission Control Protocol.
© 2002, Cisco Systems, Inc. All rights reserved..
PORT CONNECTION STATUS CT Lab#4. TCP packet UDP packet Ports Background.
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
Chapter 9: Transport Layer
Introduction to TCP/IP networking
Multiplexing.
Instructor Materials Chapter 9: Transport Layer
Lab 2: Packet Capture & Traffic Analysis with Wireshark
TCP/IP Utilities Richard Goldman May 29, 2003.
COMP2322 Lab 6 TCP Steven Lee Mar 29, 2017.
Process-to-Process Delivery
Understand the OSI Model Part 2
Net 221D : Computer Networks Fundamentals
Lecture 6: TCP/IP Networking By: Adal Alashban
TCP Transport layer Er. Vikram Dhiman LPU.
Chapter 6: Network Layer
Mr C Johnston ICT Teacher
CCNA 2 v3.1 Module 10 Intermediate TCP/IP
The Internet and HTTP and DNS Examples
Network Fundamentals – Chapter 4
Process-to-Process Delivery:
TCP/IP Protocol Suite: Review
Lecture 4 Communication Network Protocols
TCP/IP Protocol Suite: Review
TCP and UDP Layer 3 of the TCP/IP protocol stack. Transport layer
Delivering the Data.
ITECH1102 Networking and Security
Process-to-Process Delivery: UDP, TCP
16EC Computer networks unit II Mr.M.Jagadesh
Transport Layer 9/22/2019.
Network programming Lecture 1 Prepared by: Dr. Osama Mokhtar.
Presentation transcript:

Port Connection Status NET332 - Lab#6

Background TCP packet UDP packet Ports

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

TCP example (cont.)

Statistics > Flow Graph..., select TCP flow and click OK Each row represents a single TCP packet. The left column indicates the direction of the packet, TCP ports, segment length, and the flag(s) set. The column at right lists the relative sequence and acknowledgement numbers in decimal. Selecting a row in this column also highlights the corresponding packet in the main window.

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

Port connection status netstat

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) -e : Displays Ethernet statistics . -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 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) Command discription netstat -a | more  all the listening and non-listening ports  netstat -t Current TCP sessions on the system netstat -u Current UDP sessions on the system Netstat –l Netstat –lt – netstat -lu It shows all the sockets which are in listening state . netstat –r Current routing table netstat -n Displays addresses and port numbers in numerical form. Netstat -rn netstat –i Current interfaces Netstat -x used 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 0.0.0.0 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)).  127.0.0.1 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.