Do-more Technical Training

Slides:



Advertisements
Similar presentations
Categories of I/O Devices
Advertisements

TCP-IP Primer David Cozens. Targets Have a basic understanding of Ethernet network technology Be aware of how this technology is applied on the 5000 series.
1 Topic 2 – Lesson 4 Packet Filtering Part I. 2 Basic Questions What is packet filtering? What is packet filtering? What elements are inside an IP header?
CISCO NETWORKING ACADEMY PROGRAM (CNAP)
Communication Protocols II Ninth Meeting. TCP/IP family.
Csc333 Data communication & Networking Credit: 2.
UDP - User Datagram Protocol UDP – User Datagram Protocol Author : Nir Shafrir Reference The TCP/IP Guide - ( Version Version.
1 Java Networking – Part I CS , Spring 2008/9.
STFTP (Simplified Trivial File Transfer Protocol) MODULE #1.
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.
Input/Output and Communication
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
TCP/IP protocols Communication over Internet is mostly TCP/IP (Transmission Control Protocol over Internet Protocol) TCP/IP "stack" is software which allows.
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
Jaringan Komputer Dasar OSI Transport Layer Aurelio Rahmadian.
TCP/IP: Basics1 User Datagram Protocol (UDP) Another protocol at transport layer is UDP. It is Connectionless protocol i.e. no need to establish & terminate.
Huda AL_Omairl - Network 71 Protocols and Network Software.
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.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 26.
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.
Chapter 2 Applications and Layered Architectures Sockets.
GPRS functionality overview in Horner OCS. GPRS functionality – Peer to Peer communication over GPRS – CSCAPE connectivity over GPRS – Data exchange using.
© 2002, Cisco Systems, Inc. All rights reserved..
Socket programming in C. Socket programming Socket API introduced in BSD4.1 UNIX, 1981 explicitly created, used, released by apps client/server paradigm.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
1 Network Communications A Brief Introduction. 2 Network Communications.
Do-more Technical Training Communications (Modbus TCP)
1 14-Jun-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
Ch 3. Transport Layer Myungchul Kim
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI transport layer CCNA Exploration Semester 1 – Chapter 4.
Chapter 9 The Transport Layer The Internet Protocol has three main protocols that run on top of IP: two are for data, one for control.
SOCKET PROGRAMMING Presented By : Divya Sharma.
Do-more Technical Training Handouts. Point #1: Device-centric Hardware or System Resource Device MemoryInstruction Server.
Do-more Technical Training
Do-more Technical Training
Do-more Technical Training
Do-more Technical Training
Do-more Technical Training
Do-more Technical Training
Chapter 9: Transport Layer
BRX Technical Training
Do-more Technical Training
Do-more Technical Training
Instructor Materials Chapter 9: Transport Layer
Port Connection Status
COMP2322 Lab 6 TCP Steven Lee Mar 29, 2017.
Do-more Technical Training
Do-more Technical Training
Input/Output and Communication
Chapter 17 and 18: TCP is connection oriented
Net 221D : Computer Networks Fundamentals
TCP Transport layer Er. Vikram Dhiman LPU.
Welcome! Thank you for joining us. We’ll get started in a few minutes.
Process-to-Process Delivery:
Do-more Technical Training
Sarah Diesburg Operating Systems COP 4610
CS4470 Computer Networking Protocols
Andy Wang Operating Systems COP 4610 / CGS 5765
TCP and UDP Layer 3 of the TCP/IP protocol stack. Transport layer
CPEG514 Advanced Computer Networkst
Do-more Technical Training
46 to 1500 bytes TYPE CODE CHECKSUM IDENTIFIER SEQUENCE NUMBER OPTIONAL DATA ICMP Echo message.
Transport Protocols: TCP Segments, Flow control and Connection Setup
Transport Protocols: TCP Segments, Flow control and Connection Setup
Process-to-Process Delivery: UDP, TCP
Transport Layer 9/22/2019.
Network programming Lecture 1 Prepared by: Dr. Osama Mokhtar.
Presentation transcript:

Do-more Technical Training Communications (Custom TCP)

Communications – Custom TCP Do-more built-in Ethernet

Communications – Custom TCP Serial & TCP Protocols are streams of data Serial medium is usually a private conversation Bye Stream of weather data… I’m only going to give you 5 data points. I need to give you the latest data on the weather. I’ll say ‘bye’. OK. I will talk at this rate and only to you. How will I know when the conversation is complete? OK, but don’t talk too slow; I’ve got other things to do. OK, I’m listening… Thanks. IMPLIMENTATION: Partner listens. IMPLIMENTATION: Transfer complete IMPLIMENTATION: (Processes data) ENGINEERING: How will the data end? ENGINEERING: What type of data will be sent? ENGINEERING: How is the data transmitted?

Communications – Custom TCP TCP Protocol medium is a network TCP is connection-based protocol Dial Ring Can we talk? OK. I’ll call you later. I’m sorry, but I’m pretty busy at the moment. Hello? Dial Ring A “connection” must be established before a conversation can take place. The client (man) must call the server (woman). One is initiating and the other is listening. <starts conversation> Can we talk? Sure. What’s up? Hello? The conversation is delimited because both parties will agree on when it is over and say, “Bye”, just like serial comms.

Communications – Custom TCP UDP Protocol medium is also a network UDP is connectionless protocol Since no connection is needed, no resources (i.e. cellphone) are monopolized A “connection” is not necessary. The client (man) simply sends a message to the server (woman).

Communications – Custom TCP TCP Client (Master/Initiator) Do-more CPU with built-in Ethernet port Must create a TCP Client Device Use Device Configuration & <New Device> button  “TCP Client”, press <OK> button Give it a Device Name Use the OPENTCP instruction to establish connection to partner (Server/Slave) Use STREAMOUT/STREAMIN instructions to send/receive data to/from partner (Server/Slave)

Communications – Custom TCP TCP Server (Slave/Listener) Do-more CPU with built-in Ethernet port Must create a TCP Server Device Use Device Configuration & <New Device> button  “TCP Server”, press <OK> button Give it a Device Name & TCP Port number Use the TCPLISTEN instruction to listen for connection request from partner (Client/Master) Use STREAMIN/STREAMOUT instructions to send/receive data to/from partner (Client/Master)

Communications – Custom TCP Custom Protocol Type Data Size Client Instruction Server Instruction Server Member Serial Stream Unlimited STREAMOUT STREAMIN InQueue (# of bytes) TCP OPENTCP TCPLISTEN UDP Packet 1 packet PACKETOUT PACKETIN PacketAvailable (bit)

Communications – Custom TCP @MyTCPClient (Master) TCP/IP @MyTCPServer (Slave) SYN TCP Connection Established TCP Connection Established Establish TCP Connection SYN, ACK ACK If Server does not respond in 15 seconds (not configurable) the OPENTCP instruction errors out Output Buffer “TIME”<CR><LF> Input Buffer “TIME”<CR><LF> The logic for the STREAMIN can be set to monitor the InQueue value & when it is executed, will read the data out of the Input Buffer “TIME” <CR><LF> InQueue = 0 InQueue = 6 TCPLISTEN must be enabled in order for the Server (Slave) to listen for the connection request OPENTCP must be enabled in order for the connection request to be sent to the Server/Slave The data goes into the @MyTCPServer Device’s Input Buffer where it will stay until a STREAMIN is executed to get the data out STREAMOUT “TIME”<CR><LF> When the @MyTCPClient Device “gets around to it”, it sends the data in its Output Buffer out on the wire STREAMIN @MyTCPServer Device’s structure member, InQueue, is set to indicate how many bytes are currently in the Input Buffer STREAMOUT does not send data out on the wire; it merely writes the data to the @MyTCPClient Device’s Output Buffer “TIME”<CR><LF> Memory OPENTCP TCPLISTEN

Communications – Custom TCP OPENTCP “Open TCP Connection” Opens TCP Client Device & attempts to establish a TCP connection to a TCP server device Structure member Open comes ON when the TCP Client is opened Structure member Connected comes ON when the TCP Server responds with a connection acknowledgement Fully asynchronous instruction (red triangle) Parameters: TCP Device – TCP client Device To IP Address: TCP server’s IP address Variable Address or Fixed Address TCP Port Number On Success: Set bit, JMP to Stage On Error: Set bit, JMP to Stage

Communications – Custom TCP TCPLISTEN “Start Listening on TCP Port” Listens for a TCP Client connection request & then runs a Program Structure member Connected comes ON when a connection request is acknowledged Fully asynchronous instruction (red triangle) Parameters: Device – TCP Server Device On connect, run Program: name of the Program that will run whenever a TCP connection from a TCP Client has been made successfully

Communications – Custom TCP STREAMOUT “Stream Out Data to Device” Writes data from to stream-capable device Fully asynchronous instruction (red triangle) Parameters: Device – stream-capable Device Data Source: String Structure – string to send Numeric Data Block Buffer Start – location of start of data buffer to send Number of Bytes to Output Endian Settings: Swap Byte Swap Word Flush INPUT device first On Success: Set bit, JMP to Stage On Error: Set bit, JMP to Stage

Communications – Custom TCP STREAMIN “Stream in Data from Device” Reads data from a stream-capable device Fully asynchronous instruction (red triangle) Parameters: Device – stream-capable Device Complete when… Length is x bytes OR Delimeter(s) received OR Number of delimiters Delimiter characters Exact sequence Any one delimiter(s) Trim Delimiter(s) from Output String Network Timeout <Advanced…> button Data Destination String Structure Numeric Data Block Start Address Buffer Size in Bytes Number of Bytes Read Endian Settings: Swap Byte, Swap Word On Success/On Error: Set bit, JMP to Stage When attempting to get a STREAMIN to work the first time, the importance of Network Timeout cannot be overstressed because without it the STREAMIN has potential to lock the streaming Device

Communications – Custom TCP TCP Client (Initiator) TCP Server (Listener) Do-more CPU Do-more CPU Memory Memory OPENTCP TCPLISTEN STREAMOUT @TCPClnt TCP/IP @TCPSrv STREAMIN

Communications – Custom TCP Communications Test IP Address: 10.1.1.200 TCP/IP Port #: 5678 Commands delimited by <CR><LF>: TIME Response: “Current PLC Time is: 04:02:14 PM” DATE Response: “Current PLC Date is: 3/11/2016” SCANTIME Response: “Current PLC Scan Time is: 561us” FIRMWARE Response: “Current PLC Firmware is: 176201” IPADDRESS Response: “Current PLC IP Address is: 10.1.1.200”