The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
The Raw Socket Transport feature provides a method for placing serial data into packets and transferring the data across an IP network, using TCP connections between Cisco Connected Grid Routers (Cisco CG-OS routers or CGRs).
This chapter describes how to configure Raw Socket Transport on the Cisco Series 1000 Connected Grid Router (CGR 1000). The feature is also supported on the Cisco 2010 Connected Grid Router (CGR 2010); for more information, see Configuring Raw Socket Protocol on the CGR 2010 Router.
This chapter includes the following sections:
•Information About Raw Socket Transport
•Configuring Raw Socket Transport
Raw Socket is a method for transporting serial data through an IP network. The feature can be used to transport Supervisory Control and Data Acquisition (SCADA) data from Remote Terminal Units (RTUs). This method is an alternative to the Block Serial Tunnel (BSTUN) protocol.
Figure 3-1 shows a sample Raw Socket configuration. In this example, serial data is transferred between RTUs and a utility management system across an IP network that includes a single CGR 2010 router and several CGR 1000 routers. The CGR 2010 router acts as a Raw Socket server, listening for TCP connection requests from the CGR 1000 routers, which are configured as Raw Socket clients.
A Raw Socket client receives streams of serial data from the RTUs and accumulates this data in its buffer, then places the data into packets, based on user-specified packetization criteria. The Raw Socket client initiates a TCP connection with the Raw Socket server and sends the packetized data across the IP network to the Raw Socket server, which retrieves the serial data from the packets and sends it to the serial interface, and on to the utility management system.
Figure 3-1 Raw Socket Transport
On the CGR 1000, an asynchronous serial line configured for Raw Socket Transport can operate in client mode, server mode, or both. In client mode, the CGR 1000 can initiate up to 32 TCP sessions to Raw Socket servers, which can be CGR 2010 routers, other CGR 1000 routers, or third-party devices.
The streams of serial data received by a Raw Socket client can be packetized based on the following criteria:
•Packet size-You can specify a packet size that triggers the CGR 1000 to transmit the serial data to the server. Once the CGR 1000 collects this much data in its buffer, it packetizes the accumulated data and forwards it to the Raw Socket server.
•Packet-timer value-The packet timer specifies the amount of time the CGR 1000 waits to receive the next character in a stream. If a character is not received by the time the packet timer expires, the data the CGR 1000 has accumulated in its buffer is packetized and forwarded to the Raw Socket server.
•Special character-You can specify a character that will trigger the CGR 1000 to packetize the data accumulated in its buffer and send it to the Raw Socket server. When the special character (for example, a CR/LF) is received, the CGR 1000 packetizes the accumulated data and sends it to the Raw Socket server.
Before you configure Raw Socket Transport for an asynchronous serial line, you must enable the feature using the encapsulation raw-tcp command (CGR 2010 routers) or encapsulation raw-socket command (CGR 1000 routers) for the serial port. Then, you can configure the asynchronous serial lines.
This section includes the following topics:
•Enabling the CGR 1000 Serial Port and Raw Socket Encapsulation
•Configuring an Asynchronous Serial Line for Raw Socket Transport
To enable the Raw Socket feature on the CGR 1000 router, you must first enable a serial port and enable Raw Socket encapsulation for that port.
Determine availability of the serial port on the CGR 1000 router.
This example shows how to enable serial port 1/1 and how to enable Raw Socket encapsulation on that port.
router# configure terminal
router(config)# interface serial 1/1
router(config-if)# no shutdown
router(config-if)# encapsulation raw-socket
router(config-if)# exit
router(config)#
After enabling Raw Socket encapsulation for a serial port, you specify Raw Socket settings for an asynchronous serial line.
Enable a serial port and Raw Socket encapsulation for that port, as described in the previous section.
Follow the steps below for each asynchronous serial line you are configuring to use Raw Socket Transport.
This example shows how to configure the Raw Socket Transport feature for an asynchronous serial line. The CGR 1000 is configured as a Raw Socket client that initiates TCP sessions with two Raw Socket servers and forwards packetized serial data to them. The CGR 1000 collects streams of serial data in its buffer; when it accumulates 827 bytes in its buffer, the CGR 1000 packetizes the data and forwards it to the Raw Socket servers. In the event that no data is exchanged between the CGR 1000 and one of the Raw Socket servers for 10 minutes, then the TCP session with the Raw Socket server is closed, and the CGR 1000 attempts to reestablish the session with the Raw Socket server.
router# configure terminal
router(config)# line tty 1
router(config-tty)# raw-socket tcp client 10.0.0.1 4000
router(config-tty)# raw-socket tcp client 20.0.0.1 4000
router(config-tty)# raw-socket packet-length 827
router(config-tty)# raw-socket tcp idle-timeout 10
router(config-tty)# exit
router(config)#
The following example shows a Raw Socket transport configuration in which a CGR 2010 router acts as the server, and a CGR 1000 router acts as the client.
Figure 3-2 Raw Socket Transport Configuration Example
The following are the configurations of the Raw Socket server and client CGRs shown in the example in Figure 3-2.
|
|
|
---|---|---|
Raw socket transport |
Cisco CG-OS Release CG3(1) |
Initial support of the feature on the CGR 1000 Series Routers. |