# US 2022/0286426 A1 · Network address compression for electronic devices

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0286426 A1
- Document ID: US20220286426A1
- Status: Published application
- Kind: A1
- Application number: 17/826,155
- Filed: 2022-05-26
- Published: 2022-09-08
- Earliest claimed: 2020-09-24
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Reza ABBASIAN; Charles H. YING; Steven J. FALKENBURG
- Web page: https://patentgrep.com/patent/US20220286426A1

## CPC

- H04L 61/301: Name conversion
- G06F 16/9566: {URL specific, e.g. using aliases, detecting broken or misspelled links}
- H04L 2101/604: Address structures or formats
- H04L 2101/672: Short addresses
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The subject technology provides an in-place encoding of a network identifier that compresses the network identifier without mapping the network identifier to a another server or service, such as URL shortening service. The network identifier may be compressed using segmented encoding operations that segment the network identifier, and encode the characters of the network identifier using a first set of encoding operations for a first portion of the network identifier and a second set of encoding operations for a second portion of the network identifier. Template encoding may also be provided for network identifiers that conform to a predefined template format.

## Claims

### Claim 1

A method, comprising:
receiving a network identifier including a string of characters; and
encoding the characters of the network identifier to generate an encoded network identifier, wherein encoding the characters of the network identifier comprises:
encoding a path of the network identifier using a first encoding scheme;
determining that the network identifier has a format that matches a template format;
encoding the path of the network identifier using a second encoding scheme responsive to determining that the network identifier has the format that matches the template format;
selecting one of the encodings of the path from the first encoding scheme or the second encoding scheme; and
providing the encoded network identifier including the selected one of the encodings of the path.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining that the network identifier has the format that matches the template format comprises determining that the network identifier has a predetermined subdomain.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining that the network identifier has the format that matches the template format further comprises determining that the path of the network identifier includes a word that is included in a word table index for the template format.

### Claim 4 (depends on 3)

The method of claim 3, wherein encoding the path of the network identifier using the second encoding scheme comprises encoding the network identifier using a template encoding scheme.

### Claim 5 (depends on 4)

The method of claim 4, wherein encoding the network identifier using the template encoding scheme comprises encoding the predetermined subdomain using a single bit.

### Claim 6 (depends on 5)

The method of claim 5, wherein encoding the network identifier using the template encoding scheme further comprises encoding the path using a fixed-length index corresponding to an entry in a word table index for the template format.

### Claim 7 (depends on 1)

The method of claim 1, further comprising encoding a host of the network identifier using a set of encoding operations different from the first encoding scheme and the second encoding scheme.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first encoding scheme comprises:
concatenating at least the path and a query of the network identifier; and
compressing the concatenated at least the path and query using multi-context encoding.

### Claim 9

A method, comprising:
obtaining, by an application running at an electronic device, an image from a camera of the electronic device;
obtaining, by the application, a code from the image;
extracting, by the application based on the code, an encoded network identifier;
determining, by the application, that the encoded network identifier has been encoded using a template encoding scheme;
decoding, by the application responsive to determining that the encoded network identifier has been encoded using the template encoding scheme, the encoded network identifier according to a template decoding scheme to obtain a decoded network identifier; and
accessing, by the application, a resource corresponding to the decoded network identifier.

### Claim 10 (depends on 9)

The method of claim 9, wherein determining that the encoded network identifier has been encoded using a template encoding scheme comprises determining that the encoded network identifier includes a first bit indicating the template encoding scheme.

### Claim 11 (depends on 10)

The method of claim 10, wherein decoding the encoded network identifier according to the template decoding scheme comprises obtaining a predefined subdomain for the decoded network identifier according to a second bit of the encoded network identifier.

### Claim 12 (depends on 11)

The method of claim 11, wherein decoding the encoded network identifier according to the template decoding scheme further comprises obtaining a path of the decoded network identifier from a word table index.

### Claim 13 (depends on 12)

The method of claim 12, wherein obtaining the path of the decoded network identifier from a word table index comprises obtaining a word from the word table index using a fixed-length index in the encoded network identifier that corresponds to an entry in the word table index.

### Claim 14 (depends on 13)

The method of claim 13 wherein decoding the encoded network identifier according to the template decoding scheme further comprises:
obtaining a host bit from the encoded network identifier; and
decoding a host of the encoded network identifier using a host decoding operation determined using the host bit.

### Claim 15 (depends on 9)

The method of claim 9, wherein the application comprises a browser application.

### Claim 16

A method, comprising:
obtaining, by an application running at an electronic device, an image from a camera of the electronic device;
obtaining, by the application, a code from the image;
extracting, by the application based on the code, an encoded network identifier corresponding to a network identifier comprising a host, a domain, and a path, the encoded network identifier comprising a plurality of characters;
determining, by the application from the encoded network identifier, a host encoding scheme for the host;
determining, by the application from the encoded network identifier, a path encoding scheme for the path;
decoding, by the application, a first portion of the characters of the encoded network identifier based on the host encoding scheme to obtain the host and the domain;
decoding, by the application, a second portion of the characters of the encoded network identifier based on the path encoding scheme to obtain the path; and
accessing, by the application, a resource corresponding to the network identifier using the host, domain, and path.

### Claim 17 (depends on 16)

The method of claim 16, wherein determining the host encoding scheme for the host comprises determining, based on a host bit in the encoded network identifier, whether the domain and a top level domain of the host are encoded differently.

### Claim 18 (depends on 16)

The method of claim 16, wherein determining the path encoding scheme for the path comprises determining, based on a segmentation bit in the encoded network identifier, whether the path is encoded together with a query of the network identifier.

### Claim 19 (depends on 16)

The method of claim 16, wherein determining the path encoding scheme for the path comprises determining, based on a template bit in the encoded network identifier, whether the path encoding scheme is a template encoding scheme.

### Claim 20 (depends on 16)

The method of claim 16, wherein the application comprises a browser application.
