A simulated network
Acquirers and processors connect to a card network, not to each issuer. A simulated host can be that network: a network node that forwards each request to an issuer by card range, and answers for an issuer that can’t. Put one between your system and simulated issuers to test what your system actually talks to.
1. Make a network node
Section titled “1. Make a network node”Create a host and tick Network node in the host form:
- Institution id: the node’s own institution. It sends this to issuers in field 33.
- Stand-in floor limit: when an issuer can’t answer, the node approves authorizations and purchases up to this amount, and declines above it.
- Routes: for each card range, the issuer that takes it. A range is a prefix (
4,411111) or two prefixes of the same length (51..55). The most specific match wins. The issuer is a simulated host on this Platform, or an address with its own framing and layout. Give each route a timeout, and tick Sign on first if the issuer requires it.
A host is a network node or a stateful issuer, not both. Its rules still come first, so you can make the network itself slow, drop requests or answer malformed, as with any host.
2. What the node does
Section titled “2. What the node does”- Forwards each authorization, financial request and reversal to its route’s issuer, under the node’s own trace number (STAN) and with field 33 set. It answers with the issuer’s response under your STAN. A reversal’s field 90 names the original as the issuer received it.
- Answers network management itself: sign-on, echo and cutover, as any host does.
- Answers 15 (no such issuer) for a card no route takes.
- Stands in when an issuer doesn’t answer within its route’s timeout, or can’t be reached:
- it approves up to the floor limit, with an approval code that starts with S;
- it declines anything above with 91;
- it acknowledges a reversal with 00, so your system doesn’t keep repeating it.
- Doesn’t pass on late answers: an issuer’s answer that arrives after the node stood in is counted, not passed on.
- Tells issuers afterwards, when you tick Advices: an advice (0120, 0220) of each approval it made for an issuer, and a reversal (0420, with 68) of each request it declined because the issuer answered too late, in case the issuer approved it. It sends each once the issuer answers again, oldest first, and repeats it (0121, 0221, 0421) until the issuer acknowledges. What’s owed is kept on the Platform’s bus, so a restart loses nothing; a node with advices runs on one simulator instance at a time.
- Translates between formats: each side keeps its own framing, dialect and message header. A request the issuer’s format can’t carry is answered 30.
3. Watch it
Section titled “3. Watch it”The host page’s Network panel shows, for each route:
- how many requests it forwarded;
- how often the node stood in, because the issuer timed out or couldn’t be reached;
- how many late answers it counted;
- with advices, how many it still owes the issuer and how many it has sent;
- whether it has signed on.
Each exchange is in the message log under the node, named with its route, and the issuer’s own log shows the request as the issuer received it.
4. Break an issuer behind it
Section titled “4. Break an issuer behind it”Stop an issuer, or run an issuer outage experiment on it (see the chaos experiments walkthrough). The node stands in for that issuer while the others carry on, and the Network panel counts it. When the issuer is back, the node forwards to it again.
5. On the public demo
Section titled “5. On the public demo”The Simulated network host routes Visa cards to the Issuer, Mastercard cards to the Mainframe issuer (EBCDIC, a 4-byte header) and Discover cards to the Stateful issuer. Run Through the simulated network to see the routing, and Issuer outage behind the simulated network to see it stand in while the Issuer is silent. The same scenario is in examples/scenarios/simulated-network.yaml.
What’s not there yet
Section titled “What’s not there yet”- PIN translation between the node’s zone and each issuer’s.
- Key changes with issuers.
- Routing on anything but the card number.