4. Responsabilidad civil derivada del delito
4.1. Diferencias normativas entre los dos regímenes
For configuring terminal services the following three steps need to be followed. They are
1. Define the Profiles associated with the different types of serial devices. Each serial device uses different baud rates, start-stop bits, flow control etc. These characteristics are defined with the profile of the serial devices.
2. Associate the serial port on the MNS-DX device with the profile defined.
3. Setup the TCP/IP parameters – this defines the IP address and socket numbers to use for each of the serial ports to send and receive the serial data over the TCP/IP network.
Step 1 - Profiles
Profiles determine the serial IO characteristics of a group of serial devices. All MNS-DX devices ship with a profile of “Default.” The profile menu is accessed using the Serial Ports
Profiles menu as shown below.
FIGURE 126 – Setting Profiles for the serial ports In the figure above:
Profile Name User defined name for the Profile. New Profiles are defined in the “Add New Profile” menu. Profiles which are defined are accessed in the “Existing Profiles” menu.
Once added, Profiles are available via a drop down menu item in the “Existing Profiles”
menu
Interface Standard The physical interface standard used by the port. This parameter may take one of three values:
• RS232 (RTS always asserted)
• RS232 Half (RTS asserted only when transmitting)
• RS485 2-wire (half duplex operation)
• RS485 4-wire (full duplex operation) Default value = RS232
Speed The baud rate of the port. This parameter may take one of the listed values: 300, 600, 1200, 2400, 4800, 9600, 19200, 28800, 33600, 38400, 57600, 115200, 230400
Default value = 9600
Data Bits The total number of bits in a character. This parameter may be 7 bits or 8 bits.
Default value = 8
Stop Bits The duration of the MARK condition on the line after character transmission is complete. This parameter may take one of the following values:
• 1
• 1.5
• 2
Default value = 1
• None
• Odd
• Even
Default value = None
Ignore DSS This parameter takes one of the following values:
• No – The Oper State of the port is UP if the DSR or DCD handshake signal is on and the Admin State is ENABLED.
• Yes – The Oper State of the port is UP if the Admin State is ENABLED.
Default value = No
Note – using terminal services to access console ports on the Magnum 6K switches or other switches, ensure that the value is changed to “Yes”
Flow Control The type of flow control implemented. This parameter may take one of the following values:
• None
• XON/XOFF – Software flow control. Unit will stop transmitting if an XOFF (19) character (CTL-S) is detected in the received stream and will start when an XON (17) character (CTL-Q) is detected.
• RTS/CTS – Hardware flow control. Unit will stop transmitting if CTS is de-asserted.
Default value = None
Packet Character (Pkt Char) This parameter defines a special character in the data stream that forces an end of packet event. This parameter may take any value from 0 to 255. If this parameter is set to the label “None” the end of packet event will not occur based on a received character.
Default value = None
Packet Time (Pkt Time) ms This parameter defines a timeout value in milliseconds. If an additional character is not received before the timer expires, an end of packet event occurs.
The value 0 disables the end of packet even timer.
Default value = 200 Valid range = 10 – 1000 ms
Maximum Packet Size (Max Pkt Size) bytes This parameter defines a maximum packet
Default value = 1024 Valid range = 32 - 1024.
(Note that this means no packet will hold more than 1024 serial characters. The actual packet size will be larger than this when network headers and encryption overhead are taken into account.)
Turnaround Time (T/A Time) ms This parameter defines a turnaround time for the serial port. The turnaround time is an enforced minimum delay between received network packets that are sent out the serial port. The purpose of the minimum delay is to give legacy RTUs a chance to recover from the previous packet reception.
Default value = 0 (off) Valid range = 0 - 1000 ms
Delete Checking the box in the delete column allows defined profiles to be deleted. Click on
“Apply Settings” after the box is selected to delete the profile.
Once the Profiles are defined, the next step is to associate the serial ports with the profiles.
Step 2 – Associate ports to profiles
Associating a profile with the serial port sets the baud rate and other serial parameters for the port. The same menu also allows the serial port to be enabled or disabled. The ports to profiles association can be done using the Serial Ports Settings menu as shown below.
FIGURE 127 – Associating Profiles with Serial Ports The menu options are:
Port Name Allows the user to associate a logical port name for the serial port.
Profile Associate the profile with the serial port.
Admin Status Defines whether the port is enabled or disabled.
After the ports are enabled and the necessary profiles associated with the ports, the next step is to associate the IP parameters to the serial port.
Step 3 – Setting TCP/IP parameters for Serial ports
Next step is to verify the Terminal Server screen settings are set properly. The Terminal Server screen associates the IP-Address and Port Number with the serial port, along with other parameters as shown below.
FIGURE 128 – Associate the IP address and port number, along with other parameters for terminal services to function properly
Port ID Defines the serial port number. S1 = Serial port 1, S2 = Serial port 2 etc.
Call Direction The direction in which the TCP connection will be established. This parameter takes one of the following values:
• In – The port acts like a passive TCP server, listening at the configured Local TCP port.
• Out – The port acts like an active TCP client and attempts to connect out to the server specified by the Remote IP and Remote TCP parameters.
You can add multiple "Out" channels to a single serial port; however, you can have only a
Default value = In
Session Type This parameter takes one of the following values:
• Raw – Provides a transparent pipe for serial data.
• Telnet – Enables basic Telnet negotiation and control character processing (ECHO and BINARY modes supported).
Default value = Raw
Priority (DiffServ) Each IP packet generated on this port will be assigned a DiffServ Code Point (DSCP) based on the priority set by the user. The priorities are:
• Default – Best Effort Service (DSCP 0). This is normal queuing.
• Expedited – Expedited Forwarding (DSCP 0x2E) (RFC 2598). This will also result in data from this port having a higher priority on WAN ports.
Local IP The local IP address upon which the server listens for connections when the direction is set to “In”. These addresses are set by defining the IP address to VLANs or to interfaces defined. The default value of “Any” provides the most flexible configuration i.e.
connection from any IP address defined for the router.
Default value = Any
Local TCP The TCP port number associated with the serial port upon which the server listens for connection requests on a TCP/IP network. This parameter may be set to any value between 1000 and 65535.
Note: No two rows in the table may have the same Local IP and Local TCP combination as the serial port is uniquely identified with the IP address + port combination. For “Out”
ports, there can be multiple Out ports defined, as mentioned earlier. Yet each port should have a unique IP address (can be any if needed) and port number association.
Default values start at 10201 and increment by one for each serial port
Remote IP The remote IP address that the client attempts to connect to when the direction is set to “Out”. This parameter may be set to any IP address or 0.0.0.0
Default value = 0.0.0.0 (Any)
Remote TCP The remote TCP port to which the client attempts to connect. This parameter may be set to any value between 0 and 65535.
Default value = 0 (any port)
Maximum Connections The maximum number of incoming TCP connections to accept for
Default value = 5
Retry Time The number of seconds the client waits for a connection to succeed before timing out and retrying.
Default value = 30
Delete Checking the box in the delete column deletes the profile when the settings are applied using the “Apply Settings” button
Thus in summary, to enable terminal services, follow the steps listed below:
• Define the Profile.
• Set the profile associated with the port.
• Set the TCP/IP parameters for the serial port.