Patent ID: 8635344

Claim:
A method for allocating ports among a plurality of cores of a multi-core device to handle multi-port protocols, the method comprising: (a) allocating, by a device comprising a plurality of cores and intermediary to a plurality of a clients and a plurality of servers, a predetermined range of port numbers of a port space to each core of the plurality of cores, the port space comprising a plurality of port numbers of the device; (b) receiving, by a core of the plurality of cores, a request from a client of the plurality of clients to establish a session with a server via a multiple port protocol; (c) selecting, by the core, two ports available from the core's allocated predetermined range of port numbers; (d) establishing, by the core, a first listening service on a first port of the two ports and a second listening service on a second port of the two ports; and (e) transmitting, by the core, to the client a response identifying the first port and the second port of the device, the response modified from a response of the server to replace port numbers in the response of the server with port numbers of the two ports selected by the core.