MANAGING PORT CONFLICTS BETWEEN CLIENT DEVICES
A terminal device that manages port conflicts between client devices is disclosed. One of the client devices may provide a connectivity request that may be associated with one or more ports to the terminal device, to communicate with a network. On receiving the connectivity request, the terminal device may record an entry indicating utilization of the ports by the client device to communicate with the network. In an event that the terminal device may receive, from a different client device, a connectivity request associated with the same ports to communicate with the network, the terminal device may detect port conflict associated with the ports between the two client devices based on the recorded entry.
The present disclosure relates generally to electronic systems, and, more particularly, to managing port conflicts between client devices.
Description of Related ArtAn electronic device may include multiple client devices to execute various applications or services. The applications or services may be associated with web browsing, downloading software updates, gaming, or the like. The client devices may connect to a communication network (e.g., Internet) via a modem associated with the electronic device, to execute the applications or services. The connection to the network may occur via port numbers assigned to the service or the application. In one example, to execute an application for one of the client devices, the modem may transmit a query based on one or more port numbers assigned to the application, to a server associated with the network. In response to the query, data packets may be received by the modem from the server via the network. Further, the modem may route the received data packets to the processing device associated with the application, via the port number assigned to the application. As applications or services may be executed simultaneously on multiple client devices, a seamless network connectivity may be desired to minimize disruption in the execution of the applications or services.
SUMMARYAspects of the disclosure provide a terminal device. The terminal device may comprise one or more memories and one or more processors. The one or more processors may be configured to receive, from a first client device, a first connectivity request associated with one or more ports to communicate with a network. The one or more processors may be configured to record, in the one or more memories, a connection entry that indicates utilization of the one or more ports by the first client device to communicate with the network. The one or more processors may be further configured to receive, from a second client device, a second connectivity request associated with the one or more ports to communicate with the network. The one or more processors may be further configured to detect port conflict associated with the one or more ports between the first client device and the second client device, based on the connection entry.
In certain aspects of the disclosure, a first client device is disclosed. The first client device may comprise one or more processors. The one or more processors are configured to allocate one or more ports from a port list to communicate with a network, provide to a terminal device, a first connectivity request associated with the one or more ports, and receive an updated port list from the terminal device based on port conflict associated with the one or more ports with a second client device.
In certain aspects, a method executed at a terminal device is disclosed. The method may comprise receiving a first connectivity request associated with one or more ports from a first client device to communicate with a network, and recording a connection entry that indicates utilization of the one or more ports by the first client device to communicate with the network. The method may further comprise receiving a second connectivity request associated with the one or more ports from a second client device to communicate with the network and detecting port conflict associated with the one or more ports between the first client device and the second client device, based on the connection entry.
Various aspects of the present disclosure are illustrated by way of example, and not limited by the appended figures, in which like references indicate similar elements:
The detailed description set forth below in connection with the appended drawings is intended as a description of various configurations and is not intended to represent the only configurations in which the concepts described herein may be practiced. The detailed description includes specific details for the purpose of providing a thorough understanding of various concepts. However, it will be apparent to those skilled in the art that these concepts may be practiced without these specific details. In some instances, well-known structures and components are shown in block diagram form in order to avoid obscuring such concepts.
Several aspects of the disclosure will now be presented with reference to an apparatus and method. Such apparatus and method will be described in the following detailed description and illustrated in the accompanying drawings by various blocks, modules, components, circuits, steps, processes, or the like (collectively referred to as “elements”).
Accordingly, in one or more aspects, the functions described by elements of the disclosure may be implemented in hardware, software, or any combination thereof depending upon the particular application and design constraints imposed on the overall apparatus. If implemented in software, the functions may be stored on or encoded as one or more instructions or code on a computer-readable medium. Computer-readable media includes computer storage media. Storage media may be any available media that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise a random-access memory (RAM), a read-only memory (ROM), an electrically erasable programmable ROM (EEPROM), optical disk storage, magnetic disk storage, other magnetic storage devices, combinations of the aforementioned types of computer-readable media, or any other medium that can be used to store computer executable code in the form of instructions or data structures that can be accessed by a computer.
At least one of a host processor, a processing core, an input/output controller, or any portion of any of such components, or any combination of such components may be implemented as a “processing system” that may include one or more processors. Examples of processors include microprocessors, microcontrollers, graphics processing units, central processing units, application processors, digital signal processors, reduced instruction set computing processors, systems on a chip, baseband processors, field programmable gate arrays, programmable logic devices, state machines, gated logic, discrete hardware circuits, and other suitable hardware configured to perform the various functionality described throughout this disclosure. One or more processors in the processing system may execute software. Software shall be construed broadly to mean instructions, instruction sets, code, code segments, program code, programs, subprograms, software components, applications, software applications, software packages, routines, subroutines, objects, executables, threads of execution, procedures, functions, etc., whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise.
Multiple client devices or end points of an electronic device latch on to the same packet data network (PDN) or Packet Data Unit (PDU) connection to communicate with a network via a modem of the electronic device. In one example, the client devices may include at least an application processor and a host processor. As the same PDN or PDU connection may be utilized for communication with the network, the client devices may further utilize the same Internet Protocol (IP) address to transfer and receive data in uplink and downlink directions, respectively.
To coordinate between client devices to connect with the network, the modem may allocate a port range to the application processor to communicate with the network. The application processor may reserve the ports and allocate a port from the reserved port range to execute one or more applications associated with the application processor. The modem may further notify the reserved port range to the host processor. The host processor may thus block the reserved port range, indicating the unavailability of the ports for different client devices.
In scenarios where there may be a delay in providing the reserved port ranges to the host processor and the application processor has not utilized the reserved ports, the reserved ports may remain unblocked and be utilized by different client devices. In an event that the application processor intends to utilize the ports that may be utilized by different client devices, a denial of service may occur during the utilization of the reserved ports by the application processor. In further scenarios, one of the client devices may generate communication requests for the network via the port numbers. In response to the requests, the modem may receive the data packets from the network. However, the received data packets intended for the client device may be routed to the application processor based on the reserved port numbers for the application processor, thereby causing a race condition or a data stall condition on the client device.
Certain aspects disclosed herein provide methods, circuits, and systems that are adapted to manage port conflicts between client devices. For example, a node may include a modem and various client devices. Any one of the client devices may utilize one or more ports to communicate with a network via a connectivity request. The modem may thus create a connection entry associating the one or more ports with one of the client devices. A communication may further be established between the network and the client device based on the one or more ports. A different connectivity request may be received by the modem from a different client device. The modem may thus detect port conflict associated with the one or more ports based on the created connection entry.
A priority level of each client device may be determined to allocate the one or more ports to one of the client devices in an event of the port conflict associated with the one or more ports. The present disclosure may thus provide a solution to seamlessly integrate various client devices of the node to concurrently communicate with the network.
The network 104 may facilitate communication between the node 102 and one or more servers or communication devices associated with the network 104. Examples of the network 104 include, but may not limited to, a Wireless-Fidelity (Wi-Fi) network, a light fidelity (Li-Fi) network, a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), a satellite network, the Internet, a fiber optic network, a coaxial cable network, an infrared (IR) network, a radio frequency (RF) network, and combinations thereof. Various entities in the communication environment 100 may connect to the network 104 in accordance with various wired and wireless communication protocols, such as Transmission Control Protocol and Internet Protocol (TCP/IP), User Datagram Protocol (UDP), Long Term Evolution (LTE), New Radio (NR5G) communication protocols, or any combination thereof.
The node 102 may include a first client device 106, a second client device 108, and a terminal device 110. The first client device 106 and the second client device 108 may refer to any devices, processors, circuitry, or components that may be configured to execute one or more operations associated with the node 102. In one example, the execution of one or more operations may refer to execution of applications or services associated with the corresponding client device. The first client device 106 and the second client device 108 may be coupled to the terminal device 110 to communicate with the network 104. Though
The first client device 106 may correspond to an application processor. Further stated, the first client device 106 may manage user-interfacing applications in the node 102. Examples of the user-interfacing applications may include video streaming applications, social media services, location-based applications, payments-based applications, gaming applications, or the like. In further examples, the first client device 106 may execute operations that consume low power as compared to the second client device 108. The structure of the first client device 106 has been explained in further detail in
The second client device 108 may be a host processor or a Central Processing Unit (CPU) of the node 102. Further stated, the second client device 108 may manage operations associated with peripherals, interfaces, circuitries of the node 102, or the like. In one example, the second client device 108 may execute applications associated with updating of firmware, downloading system updates, communication of telemetry data, security keys communication, or the like. In one aspect, the applications executed by the host processor may have a higher criticality than the applications executed by the application processor. The second client device 108 has been explained in further detail in
In various aspects, the first client device 106 may correspond to the host processor and the second client device 108 may correspond to the application processor.
The terminal device 110 may be a modem or a baseband processor. The terminal device 110 may use various communication protocols to communicate with the network 104. Thus, the communication protocols may be based on various operating standards (e.g., Long Term Evolution (LTE), New Radio (NR5G) or High-Speed Packet Access (HSPA)). The terminal device 110 may handle communication of data packets between at least one of the first client device 106 or the second client device 108 with the network 104. Further stated, the terminal device 110 may manage the uplink and downlink communication between the first client device 106 or the second client device 108 and the network 104. The terminal device 110 may be coupled to the second client device 108 via a cellular interface such as Universal Asynchronous Receiver/Transmitter (UART) or Serial Peripheral Interface (SPI). Further, the terminal device 110 may be coupled to the first client device 106 via a high-speed bus such as a Peripheral Component Interconnect Express (PCIe) interface.
Each of the first client device 106 and the second client device 108 may allocate a port number (e.g., a source port number) to various services or applications on each of the first client device 106 and the second client device 108, respectively, to communicate with the network 104. A port number may be utilized to identify a service or an application on the first client device 106 or the second client device 108. In one example, the first client device 106 may execute a first application. To execute the first application, the first client device 106 may allocate a first port number to the first application and communicate with the network 104 via the first port number. In further examples, the second client device 108 may execute a second application. Thus, to execute the second application, the second client device 108 may allocate a second port number to the second application and communicate with the network 104 via the second port number. Further, the second client device 108 may communicate with the network 104 via a third port number to execute a third application.
A port number may be an unsigned 16-bit integer in a port range of 0-65535. In one example, the port range between 0-1023 may be utilized for standard services such as browsing websites, email communication, or the like. The port range between 1024-49151 may be utilized for applications and services, and the port range between 49152-65535 may be utilized for dynamic connections that may last for a short time period.
Based on the allocation of one or more port numbers, at least one of the first client device 106 and the second client device 108 may generate a connectivity request (e.g., one of a first connectivity request (denoted as “FC” in
Each of the first connectivity request and the second connectivity request may further include corresponding data packets associated with a query or request to execute one or more applications or services. Thus, the data packets may correspond to control information associated with the applications or services. The first connectivity request and the second connectivity request may be used interchangeably throughout the disclosure.
In one aspect, the terminal device 110 may be configured to receive, from the first client device 106, the first connectivity request associated with one or more ports to communicate with the network 104. The terminal device 110 may be further configured to record a connection entry that indicates utilization of the one or more ports by the first client device 106 to communicate with the network 104. The connection entry may be indicative of the first tuple information associated with the first connectivity request. Further, the terminal device 110 may be configured to receive, from the second client device 108, the second connectivity request associated with the one or more ports to communicate with the network 104. Based on the connection entry, the terminal device 110 may be configured to detect port conflict between the first client device 106 and the second client device 108. The port conflict may be associated with the one or more ports. The one or more ports may be allocated to one of the first client device 106 or the second client device 108 based on a priority level of the first client device 106 with respect to the second client device 108. The priority level may be based on the criticality of the applications.
It will be assumed throughout the disclosure that the host processor has a higher priority than the application processor. The structure of the terminal device 110 is further explained in
In further aspects, the first client device 106 may be configured to allocate one or more ports from a port list to communicate with the network 104. The first client device 106 may be configured to provide to the terminal device 110, the first connectivity request associated with the one or more ports. Based on the port conflict associated with the one or more ports with the second client device 108, the first client device 106 may be configured to receive an updated port list from the terminal device 110 based on the port conflict associated with the one or more ports with the second client device 108.
The terminal device 110 may include accelerator circuitry 202, a data module 204, and a physical (PHY) layer, e.g., PHY circuitry 208. The accelerator circuitry 202 may include suitable components to at least one of process or route the requests between the first client device 106 and the second client device 108 and the network 104. The accelerator circuitry 202 may execute one or more operations including data compression, data integrity, or the like, associated with the first or second connectivity request, via Packet Data Convergence Protocol (PDCP) of the protocol stack (denoted as “PS” in
For the sake of simplicity of explaining
For further simplicity of explaining
It is further assumed that the type of communication protocol may be TCP. Thus, the first connectivity request and the second connectivity request may be associated with a first TCP synchronization (SYN) packet and a second TCP SYN packet, respectively. Each of the first TCP SYN packet and the second TCP SYN packet may include a SYN flag. The SYN flag may be set to indicate initiation of a connection or establishing a communication with the network 104 by the first client device 106 and the second client device 108, respectively. Each of the first TCP SYN packet and the second TCP SYN packet may further include a first identifier of the first client device 106 and a second identifier of the second client device 108, respectively.
In one aspect, the second client device 108 (e.g., the host processor) may generate the second connectivity request prior to the generation of the first connectivity request. In one example, a SYN packet (e.g., the second TCP SYN packet) may be provided via the second connectivity request to the terminal device 110 (e.g., the accelerator circuitry 202) to synchronize the communication between the second client device 108 and the network 104. The second connectivity request may further include the second tuple information.
The accelerator circuitry 202 may determine whether the second connectivity request may include one or more ports (e.g., a port number of a source port) from the list of ports reserved for the first client device 106. If the accelerator circuitry 202 determines that the source port of the second connectivity request matches one of the ports from the list of reserved ports, the accelerator circuitry 202 may extract the second tuple information (denoted as “ST” in
The accelerator circuitry 202 may thus provide the second connectivity request from the second client device 108 to a Layer 2 (L2) Component (e.g., PHY circuitry 208) of the terminal device 110. The PHY circuitry 208 may be configured to manage high speed communication between the second client device 108 and the network 104. The PHY circuitry 208 may include transmitter and receiver components, or the like. Further, the PHY circuitry 208 may transmit the second connectivity request to the network 104 via a next generation node B (gNB). In response to the second connectivity request, data packets (e.g., downlink data packets) may be received from the network 104. The downlink data packets may be routed to the second client device 108 via installed filters in the accelerator circuitry 202.
The accelerator circuitry 202 may further receive the first connectivity request (e.g., the first TCP SYN) packet from the first client device 106. The accelerator circuitry 202 may determine from the data module 204 whether the one or more ports in the first connectivity request match the list of reserved ports for the first client device 106. On determining the match, the accelerator circuitry 202 may fetch (e.g., extract) the first tuple information (denoted as “FT” in
In further scenarios, the accelerator circuitry 202 may determine a match between the first tuple information and the second tuple information based on the one or more ports (e.g., an identical source port number) in the first tuple information and the second tuple information. In one example, the source IP may be 1.1.1.1, the destination IP may be 2.2.2.2, the source port number may be 30001, the destination port number may be 6000, and the communication protocol may be TCP in the first tuple information. Further, the second tuple information may include 1.1.1.1 as the source IP, 2.2.2.2 as the destination IP, 30001 as the source port number, 6000 as the destination port number, and TCP as the communication protocol in the first tuple information.
The accelerator circuitry 202 may thus generate a reset request (denoted as “RT1” in
In further aspects, the first connectivity request (e.g., the first TCP SYN packet) may be received by the terminal device 110 (e.g., the accelerator circuitry 202) from the first client device 106. The accelerator circuitry 202 may determine that the one or more ports in the first connectivity request may match at least one port from the port range reserved for the first client device 106. The accelerator circuitry 202 may further determine whether the current tuple information stored in the data module 204 matches the first tuple information of the first connectivity request. As the first tuple information may be determined to be absent in the data module 204, the connection entry (denoted as “CE” in
The second connectivity request may be received from the second client device 108. The accelerator circuitry 202 may determine if the source port of the second connectivity request (e.g., the second TCP SYN packet) may be the same as one of the ports reserved for the first client device 106. Based on the match between the source port number in the second connectivity request and a port number from the list of reserved ports (e.g., the reserved port range), the accelerator circuitry 202 may fetch the second tuple information from the second connectivity request to match with any existing entries (e.g., the current tuple information or the first tuple information) in the data module 204. In some scenarios, if the second tuple information does not match the first tuple information or the current tuple information, or the source port number is not included in the reserved port range, the accelerator circuitry 202 may forward the second connectivity request to the network 104 to allow the connection between the second client device 108 and the network 104.
In some scenarios, the second tuple information may match the connection entry in the data module 204. Thus, the reset request (e.g., the second TCP RST) may be generated via the protocol stack layer for the first client device 106 and the network 104.
Upon the generation of the reset request, the reset request may be provided to the first client device 106. Further, the reset request (denoted as “RT2” in
In further aspects, when the type of communication protocol may be UDP, an updated reserved port list that excludes the one or more ports may be provided to the first client device 106, without providing the reset request.
The first client device 106 is shown to include one or more first memories 302 and one or more first processors 304. The one or more first processors 304 may be configured to execute one or more operations associated with the first client device 106 as explained at least in
The one or more first processors 304 may be configured to receive the port list reserved for the first client device 106, from the terminal device 110 based on the default connection established between the terminal device 110 and the network 104. The one or more first processors 304 may be further configured to store the reserved port list (denoted as “LP” in
The one or more first processors 304 may be further configured to provide to the terminal device 110, the first connectivity request associated with the one or more first ports. In one scenario, the terminal device 110 may receive the second connectivity request associated with the one or more first ports from the second client device 108. As the second client device 108 may have a higher priority than the first client device 106, the one or more first ports may be allocated to the second client device 108 to establish the connection with the network 104. Thus, the reset request may be generated for the first client device 106.
The one or more first processors 304 may be further configured to receive from the terminal device 110, the reset request indicative of the invalidity of the one or more first ports to connect to the network 104. The reset request may be received based on port conflict associated with the one or more first ports with the second client device 108. The one or more first processors 304 may be further configured to receive an updated port list (denoted as “UP” in
The one or more first processors 304 may be further configured to store the updated port list in the one or more first memories 302. The one or more first processors 304 may be further configured to update the first connectivity request based on the second source port number to communicate with the network 104.
For the sake of simplicity of explaining
At 402, a client profile may be configured. The profile of the first client device 106 may be configured in the terminal device 110. Configuring the client profile may include exchange of communication protocol supported between the first client device 106 and the terminal device 110, security information, or the like.
At 404, the first client device 106 may be notified regarding a successful configuration of the client profile. The terminal device 110 may configure the client profile and upon successfully configuring the client profile may provide a notification to the first client device 106 indicating the successful configuration.
At 406, a data call request may be provided to the terminal device 110. The first client device 106 may provide the data call request to access (e.g., connect to or establish a default connection with) the network 104.
At 408, a default connectivity request may be transmitted to the network 104. The terminal device 110 may generate a packet data network (PDN) connectivity request as the default connectivity request to access the network 104 based on the reception of the data call request. The default connectivity request may trigger exchange of multiple requests and responses that may include security information, identifiers of the node 102 and the server associated with the network 104, or the like, between the node 102 and the network 104 to authenticate the node 102.
At 410, a default connection successful notification may be transmitted to the terminal device 110. A default bearer may be set between the node 102 and the network 104 based on the default connectivity request. The terminal device 110 may be notified with the default connection being successful. Thus, a default connection may be set between the node 102 and the network 104.
At 412, a call success notification may be provided. The terminal device 110 may provide to the first client device 106, a notification indicating that the default connection has been established with the network 104 via the call success notification.
At 414, a list of reserved ports may be provided. The terminal device 110 may reserve a list of ports for the first client device 106 to connect to the network 104. The reserved list of ports may be provided to the first client device 106.
At 416, one or more ports from the reserved port list may be allocated. The first client device 106 may allocate the one or more ports to communicate with the network 104. In one example, the one or more ports may be allocated to one or more first applications associated with the first client device 106.
At 418, second connectivity request may be provided to the terminal device 110. The second client device 108 may generate the second connectivity request associated with the one or more ports, to communicate with the network 104. The second client device 108 may utilize a port that may fall between the reserved port range (e.g., the list of reserved ports) and generate the second connectivity request to communicate with the network 104. The second connectivity request may include the second TCP SYN packet, the second tuple information, or the like. In one example, the second client device 108 may allocate the one or more ports to one or more second applications associated with the second client device 108.
At 420, second tuple information may be extracted. The terminal device 110 may extract the second tuple information from the second connectivity request based on a match between the one or more ports in the second connectivity request and the list of reserved ports.
At 422, a connection entry associated with the second tuple information may be recorded. The terminal device 110 may further determine that the second tuple information does not match any current tuple information stored in the terminal device 110. Further stated, the terminal device 110 may determine that the second tuple information is unique. Thus, the terminal device 110 may create (e.g., record) the connection entry associated with the second tuple information for the second client device 108 in the one or more memories associated with the terminal device 110.
At 424, the second connectivity request may be transmitted. The terminal device 110 may allow the setup of the connection between the second client device 108 and the network 104 by transmitting the second connectivity request to the network 104.
At 426, a first connectivity request may be received. The first client device 106 may generate the first connectivity request to communicate with the network 104. The first client device 106 may utilize a port that may fall between the reserved port range (e.g., the list of reserved ports) and generate the first connectivity request to connect to the network 104. The first connectivity request may include the first TCP SYN packet, the first tuple information, or the like.
At 428, first tuple information may be extracted based on a match between a source port of the second connectivity request and the list of reserved ports. The terminal device 110 may determine whether the first connectivity request includes the one or more ports from the reserved list of ports. The terminal device 110 may extract the first tuple information based on a match between at least one source port number associated with the one or more ports in the first tuple information and the list of reserved ports. In further scenarios, if the terminal device 110 may determine a mismatch between the source port number and one of the ports from the list of reserved ports, the first connectivity request may be transmitted to the network 104.
At 430, a match between the first tuple information and the second tuple information may be determined to detect port conflict. The terminal device 110 may determine whether the second tuple information matches the first tuple information stored in the one or more memories of the terminal device 110. In one example, the terminal device 110 may determine whether the second tuple information associated with the execution of the second application matches the first tuple information associated with the execution of the first application.
At 432, the first connectivity request may be transmitted to the network 104, based on a mismatch between the first tuple information and the second tuple information. In one scenario, if the terminal device 110 may determine a mismatch between the first tuple information and the second tuple information, the first connectivity request may be provided to the network 104.
At 434, a reset request may be generated based on a match between the first tuple information and the second tuple information. If the terminal device 110 may determine that the first tuple information matches the second tuple information, the terminal device 110 may generate the reset request (e.g., a TCP RST) thereby detecting the port conflict associated with the one or more ports. In such a scenario, a TCP RST is not provided the network 104 to retain the connection between the network 104 and the second client device 108. In one example, the terminal device 110 may determine that the one or more ports allocated to the first application matches the one or more ports allocated to the second application. Further, the source IP, destination IP, destination port number, and the type of communication protocol in the first tuple information and the second tuple information match with each other.
At 436, the reset request may be provided to the first client device 106 based on a higher priority of the second client device 108. As the first client device 106 may be a low priority client than the second client device 108, the terminal device 110 may provide the reset request to the first client device 106. The reset request may be indicative of the invalidity of the one or more ports to connect to the network 104.
At 438, the updated port list may be provided to the first client device 106. The terminal device 110 may update the reserved port list for the first client device 106 and provide the updated reserved port list to the first client device 106. The updated port list may exclude the one or more ports (e.g., a second source port number) associated with the second connectivity request.
At 440, the one or more ports may be flagged as invalid. Upon receiving the reset request (e.g., the TCP RST), the first client device 106 may mark (e.g., flag or set) the one or more ports from the allocated ports as invalid to avoid any allocation of the one or more ports for communication with the network 104.
At 442, the updated first connectivity request may be transmitted. The first client device 106 may update the first connectivity request to include ports different than the excluded one or more ports to further communicate with the network 104. It will be understood by a person skilled in the art that the terminal device 110 further matches tuple information associated with the updated first connectivity request with the tuple information stored in the one or more memories of the terminal device 110 to either allow or deny the connection between the first client device 106 and the network 104 based on the ports included in the updated first connectivity request. In further aspects, if a TCP RST may be received from the second client device 108, the terminal device 110 may remove the connection entry associated with the second tuple information from the one or more memories of the terminal device 110 based on the TCP RST from the second
Client Device 108.At 502, first connectivity request may be provided to the terminal device 110. The first client device 106 may utilize a port that may fall between the reserved port range (e.g., the list of reserved ports) and generate the first connectivity request to communicate with the network 104. The first connectivity request may include the first tuple information, the first TCP SYN packet, or the like. The first tuple information may further include the first source port number, the first destination port number, the first source IP, the first destination IP, and the type of communication protocol.
At 504, the first tuple information may be extracted. The terminal device 110 may retrieve the first TCP SYN packet from the first connectivity request to identify whether the first tuple information matches any current tuple information in the one or more memories of the terminal device 110. In one scenario, the terminal device 110 may identify the mismatch between the first tuple information and the current tuple information. Further stated, the terminal device 110 may identify that the first source port number in the first tuple information is not included in the list of reserved ports. In an event of mismatch between the first tuple information and the current tuple information, the terminal device 110 may not record the entry associated with the first tuple information in the one or more memories of the terminal device 110.
At 506, a connection entry associated with the first tuple information may be recorded. In further scenarios, the terminal device 110 may identify the match between the first tuple information and the current tuple information. Further stated, the terminal device 110 may identify that the first source port number in the first tuple information is included in the list of reserved ports. Upon identifying that the first source port number is not unique, the terminal device 110 may record the connection entry associated with the first tuple information from the first client device 106 in the one or more memories of the terminal device 110.
At 508, the first connectivity request may be transmitted to the network 104. In one scenario, upon identifying that the first tuple information may be unique, the terminal device 110 may transmit the first connectivity request to the network 104 to allow the setup of the connection between the first client device 106 and the network 104. In further scenarios, upon recording the connection entry, the terminal device 110 may transmit the first connectivity request to the network 104 to connect the first client device 106 to the network 104.
At 510, one or more ports may be allocated by the second client device 108. The second client device 108 may allocate the one or more ports (e.g., a second source port) to communicate with the network 104.
At 512, second connectivity request may be provided to the terminal device 110. The second client device 108 may provide the second connectivity request to the terminal device 110. The second connectivity request may include the second tuple information, the second TCP SYN packet, or the like. The second tuple information may include the second source port number, the second destination port number, the second source IP, the second destination IP, and the type of communication protocol.
At 514, the second tuple information may be extracted based on a match between a source port of the second connectivity request and the list of reserved ports. The terminal device 110 may identify if the second source port number may be included in the list of reserved ports. Upon identifying that the second source port number may be included in the list of reserved ports, the terminal device 110 may extract the second tuple information from the second connectivity request. Further, the terminal device 110 may retrieve the second TCP SYN packet from the second connectivity request to identify whether the second tuple information matches the first tuple information. In one scenario, if the terminal device 110 may identify that the second source port number is not included in the list of reserved ports, the terminal device 110 may transmit the second connectivity request to the network 104 to connect the second client device 108 to the network 104.
At 516, a match between the first tuple information and the second tuple information may be determined to detect port conflict. The terminal device 110 may determine whether the first tuple information matches the second tuple information.
At 518, the second connectivity request associated with the one or more ports may be transmitted to the network 104. The second connectivity request may be transmitted based on a mismatch between the first tuple information and the second tuple information. In one scenario, the terminal device 110 may identify that the first tuple information and the second tuple information do not match. Further, the terminal device 110 may transmit the second connectivity request to the network 104. The terminal device 110 may remove the connection entry in the one or more memories of the terminal device 110. Further, the terminal device 110 may update the connection entry in the one or more memories, to associate the updated connection entry with the second client device 108.
At 520, a reset request may be generated based on a match between the first tuple information and the second tuple information. If the terminal device 110 may determine a match between the first tuple information and the second tuple information, the terminal device 110 may generate a reset request (e.g., a TCP RST) for the first client device 106.
At 522a, the reset request may be provided to the first client device 106. As the first client device 106 may be a low priority client as compared to the second client device 108, the terminal device 110 may provide the reset request to the first client device 106.
At 522b, the reset request may be transmitted to the network 104. The reset request may be transmitted to the network 104 to disconnect the connection associated with the one or more ports established between the network 104 and the first client device 106.
After 522, 438, 440, and 442 may be executed. 438, 440, and 442 have been explained in detail in
At 602, a first connectivity request associated with one or more ports may be received from a first client device 106 to communicate with a network 104. The first client device 106 may provide the first connectivity request to the terminal device 110 to one of initiate a communication or establish the connection with the network 104. The first connectivity request may include the one or more ports (e.g., at least one source port) from the list reserved ports.
At 604, a connection entry that indicates utilization of the one or more ports by the first client device 106 to communicate with the network 104 may be recorded. The terminal device 110 may extract the first tuple information from the first connectivity request and record the first tuple information as the connection entry for the first client device 106.
At 606, a second connectivity request associated with the one or more ports to communicate with the network 104 may be received from a second client device 108. The second client device 108 may provide the second connectivity request to the terminal device 110 to one of initiate a communication or establish the connection with the network 104. The second connectivity request may include the one or more ports (e.g., at least one source port) from the list of reserved ports. In one aspect, the second connectivity request may be received prior to the first connectivity request. Accordingly, the connection entry may be associated with the second connectivity request. In further aspects, the first connectivity request may be received prior to the second connectivity request.
At 608, port conflict associated with the one or more ports between the first client device 106 and the second client device 108 may be detected based on the connection entry. The terminal device 110 may extract the second tuple information from the second connectivity request. The second tuple information and the first tuple information may include the same source IP and the same source port number. The terminal device 110 may thus detect the port conflict associated with the one or more ports and resolve the port conflict between the first client device 106 and the second client device 108 based on the priority level of the first client device 106 with respect to the second client device 108.
At 702, one or more ports from a port list may be allocated to communicate with a network 104. The first client device 106 may select the one or more ports from the reserved port list to establish a connection with the network 104.
At 704, a first connectivity request associated with the one or more ports may be provided to a terminal device 110. The first client device 106 may generate the first connectivity request based on the one or more ports and provide the first connectivity request to the network 104. In one aspect, based on the first connectivity request, a connection may be established between the first client device 106 and the network 104. In further aspects, a connection associated with the one or more ports may be established between the second client device 108 and the network 104 prior to the provision of the first connectivity request.
At 706, an updated port list based on port conflict associated with the one or more ports may be received from the terminal device 110. The terminal device 110 may allocate the one or more ports to the second client device 108 and connect the second client device 108 to the network 104. In one aspect, a reset request may be received by the first client device 106 based on the port conflict associated with the one or more ports with the second client device 108. In further aspects, the terminal device 110 may further provide the reset request to the network 104 based on the reception of the second connectivity request, to disconnect the connection between the first client device 106 and the network 104 associated with the one or more ports. Further, the first client device 106 may receive the updated port list from the terminal device 110 based on the reset request. The updated port list may exclude the one or more ports.
At 802, a default connectivity request may be transmitted to a network 104 to establish communication with a network 104. The terminal device 110 may transmit, prior to the reception of the first connectivity request, a default connectivity request to the network 104 to establish communication (e.g., a default connection) with the network 104. The default connectivity request may be indicative of a PDN connection.
At 804, a list of ports including one or more ports may be reserved based on a successful establishment of the communication with the network 104. Based on the successful establishment of the communication with the network 104, the terminal device 110 may reserve the list of ports for one of the first client device 106 or the second client device 108. In one aspect, the first client device 106 may be the application processor. Thus, the reserved list of ports may be provided to the first client device 106 based on the first client device 106 having a low priority than the second client device 108. In further aspects, the first client device 106 may be the host processor. Thus, the reserved list of ports may be provided to the second client device 108 based on the second client device 108 having a low priority than the first client device 106.
At 806, a first connectivity request associated with the one or more ports may be received from the first client device 106, to communicate with the network 104. The first client device 106 may allocate the one or more ports from the list of ports to generate the first connectivity request. The first connectivity request may be received from the first client device 106 to connect the first client device 106 to the network 104.
At 808, a match between port information associated with the one or more ports from the first connectivity request and the list of ports may be identified. The terminal device 110 may identify a match between the port information associated with the one or more ports (e.g., at least one source port) from the first connectivity request and the list of reserved ports.
At 810, first tuple information from the first connectivity request may be extracted. Based on the match between the port information associated with the one or more ports (e.g., a source port) from the first connectivity request and the list of reserved ports, the terminal device 110 may extract the first tuple information (e.g., the source port number, the destination port number, the source IP, the destination IP, and the type of communication protocol) from the first connectivity request.
At 812, a mismatch between the first tuple information with current tuple information stored in one or more memories may be identified. The terminal device 110 may determine a mismatch between the extracted first tuple information and current tuple information stored in the one or more memories of the terminal device 110. Further stated, the first tuple information may not match any of the stored tuple information in the one or more memories.
At 814, a connection entry that indicates utilization of the one or more ports by the first client device 106 to communicate with the network 104 may be recorded. The terminal device 110 may record the connection entry associated with the extracted first tuple information. Further stated, the extracted first tuple information associated with the first client device 106 may be stored as the connection entry in the one or more memories of the terminal device 110. Further, the connection entry may indicate utilization of the one or more ports to connect the first client device 106 to the network 104 or establish the communication with the network 104.
At 816, the first connectivity request associated with the one or more ports may be transmitted to the network 104. Based on the recorded connection entry, the terminal device 110 may transmit the first connectivity request associated with the one or more ports to the network 104. Based on the first connectivity request, the communication may be established between the first client device 106 and the network 104. In one aspect, the connection may be established between the host processor as the first client device 106 and the network 104. In further aspects, the connection may be established between the application processor as the first client device 106 and the network 104.
At 818, a second connectivity request associated with the one or more ports may be received from a second client device 108, to communicate with the network 104. The terminal device 110 may receive, from the second client device 108, the second connectivity request associated with the one or more ports to connect the second client device 108 to the network 104. In one aspect, if the first client device 106 may be the host processor, the second connectivity request may be received from the application processor (e.g., the second client device 108). In further aspects, if the first client device 106 may be the application processor, the second connectivity request may be received from the host processor (e.g., the second client device 108).
At 820, it may be determined whether a source port associated with the second connectivity request matches a port from a list of reserved ports. The terminal device 110 may determine whether a source port from the one or more ports associated with the second connectivity request matches a port from a list of reserved ports. Further stated, the terminal device 110 may determine whether a match exists between the source port number associated with the second connectivity request and one of the port numbers from the list of ports reserved for the application processor (e.g., the first client device 106 or the second client device 108). If it is determined that the source port matches one of the list of reserved ports, 822 and 824 may be executed. However, if it is determined that the source port does not match any port from the list of reserved ports, 826 may be executed.
At 822, second tuple information associated with the second connectivity request may be extracted. The terminal device 110 may extract the second tuple information (e.g., the source port number, the destination port number, the source IP, the destination IP, and the type of communication protocol) based on a match between the source port number associated with the second connectivity request and a port number from the list of reserved ports.
At 824, it may be determined whether the second tuple information matches the first tuple information. The terminal device 110 may determine whether the second tuple information matches the first tuple information based on the connection entry to detect the port conflict associated with the one or more ports between the first client device 106 and the second client device 108. The determination of the match between the second tuple information and the first tuple information may indicate the port conflict. If it is determined that the second tuple information does not match the first tuple information, 826 may be executed. However, if it is determined that the second tuple information matches the first tuple information, port conflict may be detected and 828 may be executed.
At 826, the second connectivity request may be transmitted to the network 104. 826 may be executed after 820 and 824. The terminal device 110 may transmit the second connectivity request to the network 104 to establish the communication between the second client device 108 and the network 104.
At 828, a reset request may be generated. In one aspect, the terminal device 110 may generate the reset request for the first client device 106. In further aspects, the terminal device 110 may generate the reset request for the first client device 106 and the network 104. The terminal device 110 may generate the reset request for the first client device 106 based on the detection of the port conflict, to indicate the invalidity of the one or more ports to communicate with the network 104. When the first client device 106 may be the application processor, the reset request may be generated for the first client device 106. The reset request for the network 104 may be generated based on the connection associated with the first connectivity request, established between the application processor (e.g., the first client device 106) and the network 104 prior to the reception of the second connectivity request from the second client device 108.
At 830, a reset request may be provided to the first client device 106 to disconnect the connection between the first client device 106 and the network 104 associated with the one or more ports. In one aspect, the first client device 106 may be the application processor, and may have a low priority than the second client device 108. Further, the first connectivity request may be received prior to the second connectivity request. The reset request may thus be provided to the first client device 106 indicating the invalidity of the one or more ports to communicate with the network 104.
At 832, the connection entry may be updated in the one or more memories associated with the one or more ports from the first client device 106 to the second client device 108. In one aspect, the second client device 108 may be the host processor. Thus, the terminal device 110 may update the connection entry to associate the connection entry with the second client device 108. The updated connection entry may thus include the source port number, the destination port number, the source IP, the destination IP, and the type of communication protocol associated with the second tuple information.
At 834, the second connectivity request associated with the one or more ports may be transmitted to the network 104 based on the updated connection entry. The terminal device 110 may transmit based on the detection of the port conflict, the second connectivity request associated with the one or more ports to the network 104. Based on the second connectivity request, the communication associated with the one or more ports may be established between the second client device 108 and the network 104.
At 836, a list of updated ports that excludes the one or more ports, may be provided to the first client device 106. The terminal device 110 may provide based on the detection of the port conflict, the list of updated ports that excludes the one or more ports, to the first client device 106 for establishing the connection with the network 104.
At 838, the reset request may be transmitted to the network 104. In further aspects, 838 may be executed concurrently with 830. After 838, 832 may be executed. In further aspects, 838 may be executed after 830. The reset request may be transmitted to the network 104 to disconnect the established connection between the first client device 106 and the network 104 associated with the one or more ports.
At 902, a port list from a terminal device 110 based on a communication established between the terminal device 110 and a network 104 may be received. The first client device 106 may receive the port list from the terminal device 110 based on a communication established between the terminal device 110 and the network 104. The port list may be a list of ports reserved for the first client device 106 to communicate with the network 104.
At 904, one or more ports from a port list may be allocated to communicate with the network 104. The first client device 106 may allocate the one or more ports from the port list to communicate with the network 104.
At 906, a first connectivity request associated with the one or more ports may be provided to the terminal device 110. The first client device 106 may generate the first connectivity request based on the allocated one or more ports to communicate with the network 104.
At 908, a communication may be established with the network 104 based on the one or more ports. In one aspect, the first connectivity request may be provided to the network 104 to establish the communication between the network 104 and the first client device 106. The connection entry may be created based on the first connectivity request. Further, the first connectivity request may be provided to the network 104 based on a mismatch between the first tuple information associated with the first connectivity request and the current tuple information stored in the one or more memories associated with the terminal device 110.
At 910, a reset request may be received based on port conflict associated with the one or more ports with a second client device 108. The reset request may be received from the terminal device 110 indicating a port conflict associated with the one or more ports. The terminal device 110 may receive the second connectivity request from the second client device 108. The second client device 108 may have a higher priority than the first client device 106. Thus, the reset request may indicate an invalidity of the one or more ports to communicate with the network 104, to the first client device 106.
At 912, an updated port list may be received. Based on the reset request, the first client device 106 may further receive the updated port list from the terminal device 110. The updated port list may exclude the one or more ports.
At 914, the one or more ports may be flagged as invalid based on the reception of the updated port list. The first client device 106 may flag the one or more ports as invalid based on the reception of the reset request. Further, the first client device 106 may update the first connectivity request to indicate ports that are different than the one or more ports to recommunicate with the network 104. If the tuple information associated with the updated first connectivity request may mismatch with any entry in the one or more memories of the terminal device 110, the terminal device 110 may transmit the updated first connectivity request to the network 104.
The one or more terminal memories 1015 may store data that may be utilized by the one or more terminal processors 1016 during the execution of the software. The one or more terminal memories 1015 may correspond to the data module 204 shown in
The terminal device 110 may further include one or more terminal processors 1016, transmission circuitry 1018, reception circuitry 1022, or the like. The one or more terminal processors 1016 may correspond to the accelerator circuitry 202 of
The extraction component 1026 may be configured to extract the first tuple information and the second tuple information from the first connectivity request and the second connectivity request, respectively. The recording component 1028 may be configured to record the connection entry associated with the first tuple information or the second tuple information. The detection component 1030 may be configured to detect the port conflict associated with the one or more ports, generate the reset request, and transmit at least one of the first connectivity request or the second connectivity request to the network 104.
The reception circuitry 1022 may be configured to receive, from the first client device 106 and the second client device 108, the first or second connectivity request, and data packets in response to each of the first or second connectivity request from the network 104. The transmission circuitry 1018 may be configured to transmit the first or second connectivity request to the network 104 and provide to the first client device 106 and the second client device 108, the data packets received from the network 104. The one or more terminal processors 1016 may correspond to the accelerator circuitry 202 of
The screen 1004 may be a mobile screen or a laptop screen configured to display data requested or input by a user of the node 102. The power source 1008 may power ON the node 102. The clock circuitry 1006 may be configured to generate clock signals to synchronize operations of at least one of the first client device 106, the second client device 108, and the terminal device 110. The interrupt circuitry 1010 may be configured to generate one or more interrupts for any of the first client device 106, the second client device 108, or the terminal device 110.
The one or more first processors 304 may be responsible for general processing, including the execution of software stored on the one or more first memories 302. The software, when executed by the one or more first processors 304, causes the first client device 106 to perform the various functions described in
The allocation component 1032 may be configured to receive the port list from the terminal device 110 based on a communication established between the terminal device 110 and the network 104. The allocation component 1032 may allocate one or more first ports from the port list to connect the first client device 106 to the network 104, generate the first connectivity request associated with the one or more first ports, and flag the one or more first ports as invalid based on the reception of the reset request.
The updating component 1036 may be configured to receive an updated port list from the terminal device 110 based on port conflict associated with the one or more first ports with the second client device 108. The updating component 1036 may be further configured to update the first connectivity request to indicate the one or more second ports from the updated port list to connect to the network 104.
The second client device 108 may include one or more second memories 1013 and one or more second processors 1014. The one or more second processors 1014 may be responsible for general processing, including the execution of software stored on the one or more second memories 1013. The software, when executed by the one or more second processors 1014, causes the second client device 108 to perform the various functions described in
The communication bus 1012 may include any number of interconnecting buses and bridges that may enable communication between various circuitries of the node 102. In one example, the communication bus 1012 may include routers, interfaces, or links that may enable routing of data packets or signals between the various circuitries.
Aspects in the present disclosure provide the communication environment 100 and a method for managing port conflicts. The present disclosure may offer a solution to eliminate reservation of ports for the host processor (e.g., the second client device 108). In addition, the source port numbers that may be reserved for the application processor (e.g., the first client device 106) and may not be utilized by the application processor, may be utilized for different client devices of the node 102. Further, the present disclosure prioritizes the critical applications executed on the host processor, and may offer a solution to disconnect any communication established between the network 104 and the application processor via the same port numbers.
As the terminal device 110 handles the port conflict, a communication between the first client device 106 and the second client device 108 to coordinate and resolve the port conflict may be avoided. Further, as different source port numbers are utilized by both the first client device 106 and the second client device 108 to execute the applications, a race condition or a data stall condition may be avoided as the data packets received from the network 104 may be routed to the desired client device of the node 102. In addition, to implement the current solution, structural modifications to the host processor may be negligible.
Some implementation examples are described in the following numbered aspects:
Aspect 1: A method executed at a terminal device, comprising: receiving, from a first client device, a first connectivity request associated with one or more ports to communicate with a network, and recording, in one or more memories associated with the terminal device, a connection entry that indicates utilization of the one or more ports by the first client device to communicate with the network. The method further comprising receiving, from a second client device, a second connectivity request associated with the one or more ports to communicate with the network, and detecting port conflict associated with the one or more ports between the first client device and the second client device, based on the connection entry.
Aspect 2: The method of aspect 1, further comprising detecting the port conflict further based on a priority level of the first client device with respect to the second client device.
Aspect 3: The method of aspect 2, further comprising updating, based on the detection of the port conflict, the connection entry associated with the one or more ports from the first client device to the second client device in the one or more memories based on the second client device having a higher priority than the first client device.
Aspect 4: The method of aspect 1, further comprising generating based on the detection of the port conflict and a communication established between the first client device and the network associated with the one or more ports, a reset request indicative of an invalidity of the one or more ports to communicate with the network, for one of: the network and the first client device, or the first client device.
Aspect 5: The method of aspect 1, further comprising generating the reset request for the first client device based on a replacement of a source port of the one or more ports with a destination port of the one or more ports and a replacement of a source internet protocol (IP) with a destination IP further associated with the first connectivity request.
Aspect 6: The method of aspect 1, further comprising providing based on the detection of the port conflict, a list of updated ports that excludes the one or more ports, to one of the first client device based on the second client device having a higher priority level than the first client device, and the second client device based on the first client device having a higher priority level than the second client device.
Aspect 7: The method of aspect 1, further comprising extracting first tuple information from the first connectivity request based on the reception of the first connectivity request, and recording the connection entry to store the extracted first tuple information in the one or more memories.
Aspect 8: The method of aspect 1, further comprising determining, a mismatch between the extracted first tuple information and current tuple information stored in the one or more memories, to record the connection entry associated with the extracted first tuple information.
Aspect 9: The method of any of aspects 1 to 8, wherein the connection entry includes first tuple information associated with the first client device.
Aspect 10: The method of aspect 9, further comprising: extracting second tuple information associated with the second connectivity request based on the reception of the second connectivity request; determining whether the second tuple information matches the first tuple information; and detecting the port conflict based on the determination that the second tuple information matches the first tuple information.
Aspect 11: The method of aspect 9, further comprising extracting the second tuple information based on a match between a source port of the one or more ports associated with the second connectivity request and a list of ports reserved for the first client device.
Aspect 12: The method of aspect 11, wherein each of the first tuple information and the second tuple information includes a source port number, a destination port number, a source internet protocol (IP), a destination IP, and a type of communication protocol.
Aspect 13: The method of aspect 1, further comprising transmitting, prior to the reception of the first connectivity request, a default connectivity request to the network to establish communication with the network.
Aspect 14: The method of aspect 13, further comprising providing, based on a successful establishment of the communication with the network, a list of ports reserved for the first client device, wherein the list of ports comprises the one or more ports.
Aspect 15: The method of aspect 1, further comprising transmitting to the network based on the recorded connection entry, the first connectivity request associated with the one or more ports, wherein based on the first connectivity request, the first client device communicates with the network.
Aspect 16: The method of aspect 1, further comprising transmitting based on the detection of the port conflict, the second connectivity request associated with the one or more ports to the network, and wherein based on the second connectivity request, the second client device communicates with the network.
Aspect 17: A method executed at a first client device, comprising: allocating one or more ports from a port list to communicate with a network; providing to a terminal device, a first connectivity request associated with the one or more ports; and receiving an updated port list from the terminal device based on port conflict associated with the one or more ports with a second client device.
Aspect 18: The method of aspect 17, further comprising receiving the port list from the terminal device based on a communication established between the terminal device and the network; and allocating the one or more ports based on the reception of the port list.
Aspect 19: The method of any of aspects 17 or 18, further comprising receiving a reset request from the terminal device indicative of an invalidity of the one or more ports to communicate with the network prior to the reception of the updated port list, wherein the reset request is received based on the port conflict associated with the one or more ports with the second client device.
Aspect 20: The method of any of aspects 17 to 19, further comprising flagging the one or more ports as invalid based on the reception of the reset request.
Aspect 21: An apparatus comprising: a processor; a memory coupled with the processor; and instructions stored in the memory and executable by the processor to cause the apparatus to perform a method of any of aspects 1 through 16.
Aspect 22: An apparatus, comprising at least one means for performing a method of any of aspects 1 through 16.
Aspect 23: A non-transitory computer-readable medium storing code, the code comprising instructions executable by a processor to perform a method of any of aspects 1 through 16.
Aspect 24: An apparatus comprising: a processor; a memory coupled with the processor; and instructions stored in the memory and executable by the processor to cause the apparatus to perform a method of any of aspects 17 through 20.
Aspect 25: An apparatus comprising at least one means for performing a method of any of aspects 17 through 20.
Aspect 26: A non-transitory computer-readable medium storing code, the code comprising instructions executable by a processor to perform a method of any of aspects 17 through 20.
The aforementioned description is provided to enable any person skilled in the art to practice the various aspects described herein. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to further aspects. Thus, the claims are not intended to be limited to the aspects shown herein, but is to be accorded the full scope consistent with the language claims, wherein reference to an element in the singular is not intended to mean “one and only one” unless specifically so stated, but rather “one or more”. As used herein, including in the claims, “or” as used in a list of items (e.g., a list of items prefaced by a phrase such as “at least one of” or “one or more of”) indicates an inclusive list such that, for example, a list of at least one of A, B, or C means A or B or C or AB or AC or BC or ABC (i.e., A and B and C).
It is understood that the specific order or hierarchy of steps in the processes disclosed is an illustration of exemplary approaches. Based on design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged. Further, some steps may be combined or omitted. The accompanying method claims present elements of the various steps in a sample order, and are not meant to be limited to the specific order or hierarchy presented.
The aforementioned description is provided to enable any person skilled in the art to practice the various aspects described herein. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to further aspects. All structural and functional equivalents to the elements of the various aspects described throughout this disclosure that are known or later come to be known to those of ordinary skill in the art are expressly incorporated herein by reference and are intended to be encompassed by the claims. No claim element is to be construed as a means plus function unless the element is expressly recited using the phrase “means for.” Further, unless stated otherwise, terms such as “first” and “second” are used to arbitrarily distinguish between the elements such terms describe. Thus, these terms are not necessarily intended to indicate temporal or other prioritization of such elements. The term “coupled” may refer to at least one of direct or indirect coupling that may not necessarily be by way of mechanical or any physical means. Further, a system or method that “comprises”, “has”, or “includes” one or more elements possesses those one or more elements but is not limited to possessing only those one or more elements.
Claims
1. A terminal device comprising:
- one or more memories; and
- one or more processors configured to: receive, from a first client device, a first connectivity request associated with one or more ports to communicate with a network; record, in the one or more memories, a connection entry that indicates utilization of the one or more ports by the first client device to communicate with the network; receive, from a second client device, a second connectivity request associated with the one or more ports to communicate with the network; and detect port conflict associated with the one or more ports between the first client device and the second client device, based on the connection entry.
2. The terminal device of claim 1, wherein the one or more processors are configured to detect the port conflict further based on a priority level of the first client device with respect to the second client device.
3. The terminal device of claim 2, wherein based on the second client device having a higher priority than the first client device, the one or more processors are further configured to update, based on the detection of the port conflict, the connection entry associated with the one or more ports from the first client device to the second client device in the one or more memories.
4. The terminal device of claim 1, wherein the one or more processors are further configured to generate based on the detection of the port conflict and a communication established between the first client device and the network associated with the one or more ports, a reset request indicative of an invalidity of the one or more ports to communicate with the network, for one of:
- the network and the first client device, or
- the first client device.
5. The terminal device of claim 4, wherein the one or more processors are further configured to generate the reset request for the first client device based on a replacement of a source port of the one or more ports with a destination port of the one or more ports and a replacement of a source internet protocol (IP) with a destination IP further associated with the first connectivity request.
6. The terminal device of claim 1, wherein the one or more processors are further configured to provide based on the detection of the port conflict, a list of updated ports that excludes the one or more ports, to one of the first client device or the second client device.
7. The terminal device of claim 1, wherein the one or more processors are further configured to:
- extract first tuple information from the first connectivity request based on the reception of the first connectivity request; and
- record the connection entry to store the extracted first tuple information in the one or more memories.
8. The terminal device of claim 7, wherein the one or more processors are further configured to determine, a mismatch between the extracted first tuple information and current tuple information stored in the one or more memories, to record the connection entry associated with the extracted first tuple information.
9. The terminal device of claim 1, wherein the connection entry includes first tuple information associated with the first client device, and wherein the one or more processors are further configured to:
- extract second tuple information associated with the second connectivity request based on the reception of the second connectivity request;
- determine whether the second tuple information matches the first tuple information; and
- detect the port conflict based on the determination that the second tuple information matches the first tuple information.
10. The terminal device of claim 9, wherein the one or more processors are further configured to extract the second tuple information based on a match between a source port of the one or more ports associated with the second connectivity request and a list of ports reserved for the first client device.
11. The terminal device of claim 9, wherein each of the first tuple information and the second tuple information includes a source port number, a destination port number, a source internet protocol (IP), a destination IP, and a type of communication protocol.
12. The terminal device of claim 1, wherein the one or more processors are further configured to transmit, prior to the reception of the first connectivity request, a default connectivity request to the network to establish communication with the network.
13. The terminal device of claim 12, wherein the one or more processors are further configured to provide, based on a successful establishment of the communication with the network, a list of ports reserved for the first client device, and wherein the list of ports comprises the one or more ports.
14. The terminal device of claim 1, wherein the one or more processors are further configured to transmit to the network based on the recorded connection entry, the first connectivity request associated with the one or more ports, and wherein based on the first connectivity request, the first client device communicates with the network.
15. The terminal device of claim 1, wherein the one or more processors are further configured to transmit based on the detection of the port conflict, the second connectivity request associated with the one or more ports to the network, and wherein based on the second connectivity request, the second client device communicates with the network.
16. A first client device comprising:
- one or more processors configured to: allocate one or more ports from a port list to communicate with a network; provide to a terminal device, a first connectivity request associated with the one or more ports; and receive an updated port list from the terminal device based on port conflict associated with the one or more ports with a second client device.
17. The first client device of claim 16, wherein the one or more processors are further configured to:
- receive the port list from the terminal device based on a communication established between the terminal device and the network; and
- allocate the one or more ports based on the reception of the port list.
18. The first client device of claim 16, wherein the one or more processors are further configured to receive a reset request from the terminal device indicative of an invalidity of the one or more ports to communicate with the network prior to the reception of the updated port list, wherein the reset request is received based on the port conflict associated with the one or more ports with the second client device.
19. The first client device of claim 18, wherein the one or more processors are configured to flag the one or more ports as invalid based on the reception of the reset request.
20. A method executed at a terminal device, the method comprising:
- receiving a first connectivity request associated with one or more ports from a first client device to communicate with a network;
- recording a connection entry that indicates utilization of the one or more ports by the first client device to communicate with the network;
- receiving a second connectivity request associated with the one or more ports from a second client device to communicate with the network; and
- detecting port conflict associated with the one or more ports between the first client device and the second client device, based on the connection entry.
Type: Application
Filed: May 22, 2025
Publication Date: Nov 26, 2026
Inventors: Manoj KUMAR (Hyderabad), Siddarth RAGHUVEER (Bangalore)
Application Number: 19/215,474