# US 2013/0298231 A1 · Method and device for data transmission

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

- Number: US 2013/0298231 A1
- Document ID: US20130298231A1
- Status: Published application
- Kind: A1
- Application number: 13/933,904
- Filed: 2013-07-02
- Published: 2013-11-07
- Earliest claimed: 2011-01-13
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Sheng Jiang
- Web page: https://patentgrep.com/patent/US20130298231A1

## CPC

- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/08: {for authentication of entities (cryptographic mechanisms or cryptographic arrangements for entity authentication H04L9/32)}
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L 63/164: {at the network layer}
- H04L 69/16: Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L 69/22: Parsing or analysis of headers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of the present disclosure provide a method and a device for data transmission. In the method, a network layer communication entity of a receiving device receives an IP packet from a sending device, where a header of the IP P packet carries a random value corresponding to the sending device. The receiving device decapsulates the IP packet and obtains the random value carried in the header of the IP packet. The receiving device sends the random value to a transport layer communication entity of the receiving device so that the transport layer communication entity of the receiving device verifies the random value. The receiving device in embodiments of the present disclosure includes a receiving module, an obtaining module, and a verifying module.

## Claims

### Claim 1

A method for data transmission, comprising:
receiving, by a network layer communication entity of a receiving device, an IP packet from a sending device, wherein a header of the IP packet carries a random value corresponding to the sending device;
decapsulating the IP packet and obtaining the random value carried in the header of the IP packet; and
sending the random value to a transport layer communication entity of the receiving device so that the transport layer communication entity of the receiving device verifies the random value.

### Claim 2 (depends on 1)

The method according to claim 1, wherein:
the random value corresponding to the sending device is generated by a network layer communication entity of the sending device; or
the random value corresponding to the sending device is generated by a transport layer communication entity of the sending device.

### Claim 3 (depends on 1)

The method according to claim 1, wherein:
the random value corresponding to the sending device is carried in an option in the header of the IP packet, wherein the IP packet is an IPv4 packet; or
the random value corresponding to the sending device is carried in an extension header of the IP packet, wherein the IP packet is an IPv6 packet.

### Claim 4 (depends on 1)

The method according to claim 1, wherein:
the verifying, by the transport layer communication entity of the receiving device, the random value comprises:
verifying whether the random value complies with a specific random value generation function; or
comparing the random value with a predetermined verifying random value, and accepting a data part of the IP packet if the random value is the same as the verifying random value, or, discarding the data part of the IP packet or handling the data part as a suspicious attack subsequently if the random value is different from the verifying random value.

### Claim 5

A data transmission method, comprising:
receiving, by a network layer communication entity of a sending device, at least data from a transport layer communication entity of the sending device;
encapsulating an IP packet according to the data, wherein a header of the IP packet carries a random value corresponding to the sending device; and
sending the IP packet to a receiving device so that the receiving device can verify the random value carried in the header of the IP packet.

### Claim 6 (depends on 5)

The method according to claim 5, wherein:
the network layer communication entity of the sending device further receives the random value generated by the transport layer communication entity of the sending device.

### Claim 7 (depends on 5)

The method according to claim 5, wherein:
the network layer communication entity of the sending device further receives parameters from the transport layer communication entity of the sending device, wherein the parameters are required for generating the random value; and
before encapsulating the IP packet according to the data, the method further comprises:
generating, by the network layer communication entity of the sending device, the random value according to the parameters.

### Claim 8

A receiving device for data transmission comprising a processor and a non-transitory storage medium accessible to the processor, the non-transitory storage medium comprising:
a receiving module, configured to receive an IP packet from a sending device, wherein a header of the IP packet carries a random value corresponding to the sending device;
an obtaining module, configured to decapsulate the IP packet and obtain the random value carried in the header of the IP packet; and
a verifying module, configured to verify the random value obtained by the obtaining module.

### Claim 9 (depends on 8)

The receiving device according to claim 8, wherein the obtaining module comprises at least one of the following:
a first obtaining unit, configured to obtain the random value from an option in the header of the IP packet, wherein the IP packet is an IPv4 packet; and
a second obtaining unit, configured to obtain the random value from an extension header of the IP packet, wherein the IP packet is an IPv6 packet.

### Claim 10

A sending device for data transmission comprising a processor and a non-transitory storage medium accessible to the processor, the non-transitory storage medium comprising:
a generating module, configured to generate a random value corresponding to the sending device;
an encapsulating module, configured to encapsulate an IP packet, wherein a header of the IP packet carries the random value generated by the generating module; and
a sending module, configured to send the IP packet to a receiving device.

### Claim 11 (depends on 10)

The sending device according to claim 10, wherein the generating module comprises at least one of the following:
a first generating unit, located in a transport layer communication entity of the sending device, and configured to generate the random value corresponding to the sending device; and
a second generating unit, located in a network layer communication entity of the sending device, and configured to generate the random value corresponding to the sending device according to parameters provided by the transport layer communication entity of the sending device.

### Claim 12 (depends on 10)

The sending device according to claim 10, wherein the encapsulating module comprises at least one of the following:
a first encapsulating unit, configured to encapsulate the random value generated by the generating module into an option in the header of the IP packet, wherein the IP packet is an IPv4 packet; and
a second encapsulating unit, configured to encapsulate the random value generated by the generating module into an extension header of the IP packet, wherein the IP packet is an IPv6 packet.
