Method, device and readable storage medium for transmitting IP data packets
By introducing preset fields into IP packets to distinguish and process different types of data packets, the problem that cannot meet diversified needs in the prior art is solved, and the multifunctional transmission of IP packets is realized.
Patent Information
- Application Number
- CN202180002523.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-16
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2041-08-16
AI Technical Summary
It is difficult to meet the new usage requirements during the transmission of existing IP packets, and it is impossible to effectively distinguish and process different types of packets.
Introduce a preset field in the IP packet, determine the packet type based on this field, and perform corresponding processing, such as parsing control information or forwarding to downstream nodes.
It realizes the distinction processing of different types of IP packets, adds the functions of IP packets, meets the diverse usage needs of users, and reuses network transmission capabilities.
Smart Images

Figure CN115989663B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of wireless communication technologies, and in particular to a method, device, and readable storage medium for transmitting Internet Protocol (IP) data packets. Background Art
[0002] The IP protocol is widely used in data transmission in the fields of mobile communications and the Internet.
[0003] The IP protocol can shield the differences between various physical subnets in the lower layer and provide IP data packets in a unified format to the upper layer. IP data packets are transmitted in groups, and the format of IP data packets can indicate the functions of the IP protocol.
[0004] During the transmission of IP packets, each intermediate node forwards the received IP packets to the next node. How to improve the transmission process of IP packets to meet the newly added usage requirements is a technical problem that needs to be solved. Summary of the Invention
[0005] In view of this, embodiments of the present disclosure provide a method, an apparatus, and a readable storage medium for transmitting an IP data packet.
[0006] In a first aspect, an embodiment of the present disclosure provides a method for transmitting an IP data packet, which is applied to a node device in a network, wherein the node device may include a mobile terminal, and the method includes:
[0007] Receive an IP data packet; wherein the IP data packet includes a preset field, and the preset field is used to indicate the type of the IP data packet;
[0008] Determining the type of the IP data packet according to the content of the preset field in the IP data packet;
[0009] A process corresponding to the type is performed on the IP data packet according to the type.
[0010] In one embodiment, determining the type of the IP data packet according to the content of the preset field in the IP data packet includes:
[0011] When it is determined that the content of the preset field in the IP data packet is a first value, the type of the IP data packet is determined to be a first type corresponding to the first value, wherein the first type corresponds to the type used for transmitting control information.
[0012] In one embodiment, performing processing corresponding to the type on the IP data packet according to the type includes:
[0013] Parsing control information from the packet body of the IP data packet;
[0014] The IP data packet is controlled according to the control information.
[0015] In one embodiment, the control information includes characteristic information; wherein the characteristic information is characteristic information of an IP data packet that meets set conditions.
[0016] In one embodiment, the setting condition includes at least one of the following:
[0017] The source address and destination address are the same;
[0018] The control information includes at least one of the following:
[0019] Source address and destination address.
[0020] In one embodiment, the characteristic information includes at least one of the following: a type of service data and a sending cycle.
[0021] In one embodiment, the control information includes a sending policy for IP data packets of a set type.
[0022] In one embodiment, the sending strategy includes at least one of the following:
[0023] Send according to the priority of IP data packets,
[0024] Send according to the version of IP data packet,
[0025] Send according to the service type of IP data packets.
[0026] In one embodiment, determining the type of the IP data packet according to the content of the preset field in the IP data packet includes:
[0027] When determining that the content of the preset field in the IP data packet is a second value, determining the type of the IP data packet to be a second type corresponding to the second value, wherein the second type corresponds to being used for transmitting service data information;
[0028] The performing processing corresponding to the second type on the IP data packet according to the second type includes:
[0029] Forward the IP data packet to a downstream node device.
[0030] In one embodiment, the preset field is located in the header of the IP data packet.
[0031] In one embodiment, the preset field is located between the destination address field and the optional field in the header of the IP data packet.
[0032] In the method disclosed herein, a node device receives different types of IP data packets, determines the type of IP data packets based on preset fields in the IP data packets, and processes different types of IP data packets differently, thereby increasing the functionality of the IP data packets so that the IP data packets can not only complete the function of transmitting business data, but also meet different usage requirements.
[0033] In a second aspect, an embodiment of the present disclosure provides an apparatus for transmitting an IP data packet, which is applied to a node device in a network, wherein the node device includes a mobile terminal, including:
[0034] A receiving module configured to receive an IP data packet; wherein the IP data packet includes a preset field, and the preset field is used to indicate the type of the IP data packet;
[0035] a determination module, configured to determine the type of the IP data packet according to the content of the preset field in the IP data packet;
[0036] The processing module is configured to perform processing corresponding to the type on the IP data packet according to the type.
[0037] In one embodiment, the determining module is further configured to determine the type of the IP data packet according to the content of the preset field in the IP data packet using the following method:
[0038] When it is determined that the content of the preset field in the IP data packet is a first value, the type of the IP data packet is determined to be a first type corresponding to the first value, wherein the first type corresponds to the type used for transmitting control information.
[0039] In one embodiment, the processing module includes:
[0040] A parsing module, configured to parse the control information from the packet body of the IP data packet;
[0041] The control module is configured to control the IP data packet according to the control information.
[0042] In one embodiment, the control information includes characteristic information; wherein the characteristic information is characteristic information of an IP data packet that meets set conditions.
[0043] In one embodiment, the setting condition includes at least one of the following:
[0044] The source address and destination address are the same;
[0045] The control information includes at least one of the following:
[0046] Source address and destination address.
[0047] In one embodiment, the characteristic information includes at least one of the following: a type of service data and a sending cycle.
[0048] In one embodiment, the control information includes a sending policy for IP data packets of a set type.
[0049] In one embodiment, the sending strategy includes at least one of the following:
[0050] Send according to the priority of IP data packets,
[0051] Send according to the version of IP data packet,
[0052] Send according to the service type of IP data packets.
[0053] In one embodiment, the determining module is further configured to determine the type of the IP data packet according to the content of the preset field in the IP data packet using the following method:
[0054] When determining that the content of the preset field in the IP data packet is a second value, determining the type of the IP data packet to be a second type corresponding to the second value, wherein the second type corresponds to being used for transmitting service data information;
[0055] The processing module further includes:
[0056] The forwarding module is configured to forward the IP data packet to a downstream node device.
[0057] In one embodiment, the preset field is located in the header of the IP data packet.
[0058] In one embodiment, the preset field is located between the destination address field and the optional field in the header of the IP data packet.
[0059] In a third aspect, an embodiment of the present disclosure provides a communication device, including a processor and a memory;
[0060] The memory is used to store computer programs;
[0061] The processor is configured to execute the computer program to implement any of the above methods.
[0062] In a fourth aspect, an embodiment of the present disclosure proposes a computer-readable storage medium, wherein the computer-readable storage medium stores instructions. When the instructions are called and executed on a computer, the computer executes any of the methods described above.
[0063] The beneficial effects of the above-mentioned second to fourth aspects and possible designs thereof can refer to the description of the beneficial effects of the method in the first aspect and any possible design thereof.
[0064] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The drawings described herein are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of this application. The illustrative embodiments of the embodiments of the present disclosure and their descriptions are used to explain the embodiments of the present disclosure and do not constitute an improper limitation of the embodiments of the present disclosure. In the drawings:
[0066] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0067] Figure 1 is a schematic diagram of a network transmission system architecture according to an exemplary embodiment;
[0068] Figure 2 is a schematic diagram showing the composition of an IP data packet according to an exemplary embodiment;
[0069] Figure 3 is a flow chart of a method for transmitting an IP data packet according to an exemplary embodiment;
[0070] Figure 4 is a schematic diagram showing the composition of another IP data packet according to an exemplary embodiment;
[0071] Figure 5 is a schematic diagram showing the composition of another IP data packet according to an exemplary embodiment;
[0072] Figure 6 is a flow chart of another method for transmitting IP data packets according to an exemplary embodiment;
[0073] Figure 7 is a flow chart of another method for transmitting IP data packets according to an exemplary embodiment;
[0074] Figure 8 is a structural diagram of another device for transmitting IP data packets according to an exemplary embodiment;
[0075] Figure 9 It is a structural diagram of another device for transmitting IP data packets according to an exemplary embodiment. DETAILED DESCRIPTION
[0076] The embodiments of the present disclosure are now further described with reference to the accompanying drawings and specific implementation methods.
[0077] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0078] like Figure 1 As shown, the method for transmitting IP data packets provided in the embodiment of the present disclosure can be applied to a network transmission system 100, which includes multiple transmission nodes. The transmission nodes can be either node devices 101 or cloud servers 102. Specifically, according to the transmission direction of the IP data packets, the transmission nodes can include upstream nodes or downstream nodes.
[0079] The upstream node can send IP data packets, and the downstream node can receive IP data packets. Taking the node device 101 as a mobile terminal as an example, the mobile terminal is configured to receive IP data packets sent by the upstream node.
[0080] The mobile terminal may be user equipment (UE), terminal, access terminal, terminal unit, terminal station, mobile station (MS), remote station, remote terminal, mobile terminal, wireless communication device, terminal agent, or terminal device. The mobile terminal may have data transmission capabilities and receive IP data packets sent by upstream nodes.
[0081] For example, the mobile terminal may be a cellular phone, a personal digital assistant (PDA) device, a computing device, or a wearable device.
[0082] Figure 2 It is a schematic diagram of an IP data packet in the IP protocol. Figure 2 As shown, an IP data packet in the IP protocol includes a header and a body. The header includes a fixed portion and a variable portion. The fixed portion has a fixed byte length (e.g., 20 bytes in total). The variable portion has a variable byte length.
[0083] In the fixed part of the IP data packet in the IP protocol, the version field of the IP protocol occupies 4 bits, the header length field occupies 4 bits, the service type field occupies 8 bits, the total length field occupies 16 bits, the identification field occupies 16 bits, the flag field occupies 3 bits, the fragment offset field occupies 13 bits, the lifetime field occupies 8 bits, the protocol field occupies 8 bits, the header checksum field occupies 16 bits, the source address field occupies 32 bits, and the destination address field occupies 32 bits.
[0084] If the IP protocol version is IPv4 or IPv6, both communicating parties must use the same IP protocol version. When using differentiated services, the Type of Service field is effective. Identical values in the Identification field ensure that fragmented data packets are correctly reassembled into the original data packet. The lowest bit in the Flags field is denoted as MF (More Fragment). MF = 1 indicates that there are "more fragments" to come, while MF = 0 indicates that this is the last of several fragments. The middle bit in the Flags field is denoted as DF (Don't Fragment), meaning "Don't fragment." Fragmentation is only allowed when DF = 0. The Fragment Offset field indicates the relative position of a fragment within the original packet after a longer packet is fragmented. The Time To Live (TTL) field indicates the lifetime of the data packet within the network. The Protocol field indicates the protocol used by the data carried by the packet, allowing the IP layer at the destination host to determine which process to submit the data portion to. The Header Checksum field only verifies the packet header, not the packet body.
[0085] The variable portion includes optional fields. The length of optional fields varies, from 1 to 40 bytes, and is used to support debugging, measurement, and security measures. When an optional field consists of multiple bytes, no delimiter is required between the bytes; instead, all-zero padding is used to complete the length to an integer multiple of 4 bytes.
[0086] The embodiment of the present disclosure proposes a method for transmitting IP data packets, which is applied to a node device in a network, and the node device can be a mobile terminal. Figure 3 As shown, Figure 3 FIG. 1 is a flow chart of a method for transmitting an IP data packet according to an exemplary embodiment. Figure 3 As shown, the method of this embodiment may include the following steps:
[0087] Step S31: Receive an IP data packet; wherein the IP data packet includes a preset field, and the preset field is used to indicate the type of the IP data packet;
[0088] Step S32: determining the type of the IP data packet according to the content of the preset field in the IP data packet;
[0089] Step S33: Perform processing corresponding to the type on the IP data packet according to the type.
[0090] In one possible implementation, the node device is an intermediate node or an end node. In step S31, receiving an IP data packet includes receiving an IP data packet from an upstream node. The IP data packet includes a preset field, and the preset field is used to indicate the type of the IP data packet.
[0091] In a possible implementation manner, the preset field occupies 1 bit, or occupies more than 1 bit.
[0092] In a possible implementation manner, the method further includes: the starting node generating an IP data packet, and setting the IP data packet to include a preset field during the process of generating the IP data packet.
[0093] In one possible embodiment, the IP packet type includes a first type and a second type. The first type corresponds to being used for transmitting control information, and the second type corresponds to being used for transmitting service data information. When the content of a preset field in the IP packet is a first value, the IP packet type is the first type. When the content of the preset field in the IP packet is a second value, the IP packet type is the second type. The first value is 1 and the second value is 0. Alternatively, the first value is 0 and the second value is 1.
[0094] In a possible implementation, different types correspond to different processes, wherein different types and different processes have a one-to-one mapping relationship.
[0095] In a possible implementation, the preset field may be located in the header of the IP data packet.
[0096] There are many possible locations for the preset fields.
[0097] For example, the preset field may occupy a number of bits at the head or tail of an original field, thereby reducing the number of bits occupied by the original field.
[0098] In one example, if Figure 4 As shown, the preset field is located between the destination address field and the optional field in the header of the IP data packet.
[0099] like Figure 4 As shown, the variable part includes a preset field, an optional field and a padding field. That is, a preset field is added at the beginning of the variable part of the packet header, and the optional field is located after the preset field.
[0100] In one example, if Figure 5 As shown, the preset field is located between the optional field and the padding field in the header of the IP data packet.
[0101] like Figure 5 As shown in FIG, the variable part includes an optional field, a preset field and a padding field. That is, a preset field is added at the beginning of the variable part of the packet header.
[0102] In the embodiments of the present disclosure, a node device receives different types of IP data packets, determines the type of IP data packets based on preset fields in the IP data packets, and processes different types of IP data packets differently, thereby increasing the functionality of the IP data packets so that the IP data packets not only complete the function of transmitting business data, but also multiplex the network transmission capabilities to meet the different usage needs of users.
[0103] The embodiment of the present disclosure proposes a method for transmitting IP data packets, which is executed by a node device. Figure 6 As shown, the method of this embodiment may include the following steps:
[0104] Step S61: Receive an IP data packet; wherein the IP data packet includes a preset field, and the preset field is used to indicate the type of the IP data packet;
[0105] Step S62: When it is determined that the content of the preset field in the IP data packet is a first value, the type of the IP data packet is determined to be a first type corresponding to the first value, wherein the first type corresponds to the type used for transmitting control information.
[0106] Step S63: Perform processing corresponding to the first type on the IP data packet according to the first type.
[0107] The preset field can be located in the header of the IP data packet. There are many possible locations for the preset field. The specific location of the preset field can be the same as that in the previous embodiment, and will not be described in detail here.
[0108] In a possible implementation, in step S63, processing corresponding to the first type is performed on the IP data packet according to the first type, including: parsing control information from the packet body of the IP data packet; and controlling the IP data packet according to the control information.
[0109] In a possible implementation manner, the control information includes characteristic information; wherein the characteristic information is characteristic information of an IP data packet that meets set conditions.
[0110] In one example, the setting condition includes at least one of the following:
[0111] The source address and destination address are the same.
[0112] Specifically:
[0113] The setting condition is that the source address is the same.
[0114] Alternatively, set the condition to the same destination address.
[0115] Alternatively, the condition is set to the same source address and the same destination address.
[0116] In one example, when the setting condition is that the source addresses are the same, the control information includes the source address.
[0117] When the setting condition is that the destination addresses are the same, the control information includes the destination address.
[0118] When the setting condition is that the source address and the destination address are the same, the control information includes the source address and the destination address.
[0119] In one example, the characteristic information includes one of the following: the type of service data (such as video, image, or audio), and the sending period (such as frame information).
[0120] In a possible implementation manner, the control information includes a sending strategy.
[0121] The sending strategy includes at least one of the following:
[0122] Send according to the priority of IP data packets,
[0123] Send according to the version of IP data packet,
[0124] Send according to the service type of IP data packets.
[0125] In the disclosed embodiment, a node device receives different types of IP data packets, determines the type of IP data packets according to preset fields in the IP data packets, and processes different types of IP data packets differently, thereby increasing the functionality of the IP data packets. On the basis of ordinary IP data packets, a new IP data packet for transmitting control information is added, so that in addition to completing the function of transmitting business data, the IP data packet can also transmit control information, thereby multiplexing the network transmission capacity to meet the different usage requirements of users.
[0126] The embodiment of the present disclosure proposes a method for transmitting IP data packets, which is executed by a node device. Figure 7 As shown, the method of this embodiment may include the following steps:
[0127] Step S71: Receive an IP data packet; wherein the IP data packet includes a preset field, and the preset field is used to indicate the type of the IP data packet;
[0128] Step S72: When it is determined that the content of the preset field in the IP data packet is a second value, the type of the IP data packet is determined to be a second type corresponding to the second value, wherein the second type corresponds to information for transmitting service data.
[0129] Step S73: forward the IP data packet to a downstream node device.
[0130] The downstream node device belongs to a routing path, and this routing path is used to reach the destination address in the IP data packet.
[0131] The preset field can be located in the header of the IP data packet. There are many possible locations for the preset field. The specific location of the preset field can be the same as that in the previous embodiment, and will not be described in detail here.
[0132] In an embodiment of the present disclosure, when the content of the preset field in the IP data packet indicates that it is used to transmit business data information, the IP data packet is determined to be an ordinary IP data packet, and the IP data packet is directly forwarded to the downstream node device without the need to control the IP data packet other than forwarding.
[0133] The embodiment of the present disclosure proposes a device for transmitting IP data packets, which is applied to a node device in a network, and the node device can be a mobile terminal. Figure 8 As shown, Figure 8 FIG. 1 is a structural diagram of an apparatus for transmitting IP data packets according to an exemplary embodiment. Figure 8 As shown, the device of this embodiment may include:
[0134] The receiving module 81 is configured to receive an IP data packet; wherein the IP data packet includes a preset field, and the preset field is used to indicate the type of the IP data packet;
[0135] a determination module 82 configured to determine the type of the IP data packet according to the content of the preset field in the IP data packet;
[0136] The processing module 83 is configured to perform processing corresponding to the type on the IP data packet according to the type.
[0137] In one embodiment, the preset field is located in the header of the IP data packet.
[0138] In one embodiment, the preset field is located between the destination address field and the optional field in the header of the IP data packet.
[0139] The embodiment of the present disclosure proposes a device for transmitting IP data packets, which is applied to a node device in a network, and the node device may be a mobile terminal. The device of this embodiment may include Figure 7 the device shown, and:
[0140] The determining module 82 is further configured to determine the type of the IP data packet according to the content of the preset field in the IP data packet using the following method:
[0141] When it is determined that the content of the preset field in the IP data packet is a first value, the type of the IP data packet is determined to be a first type corresponding to the first value, wherein the first type corresponds to the type used for transmitting control information.
[0142] The embodiment of the present disclosure proposes a device for transmitting IP data packets, which is applied to a node device in a network, and the node device may be a mobile terminal. The device of this embodiment may include Figure 8 the device shown, and:
[0143] The processing module 83 includes:
[0144] A parsing module, configured to parse the control information from the packet body of the IP data packet;
[0145] The control module is configured to control the IP data packet according to the control information.
[0146] In one embodiment, the control information includes characteristic information; wherein the characteristic information is characteristic information of an IP data packet that meets set conditions.
[0147] In one embodiment, the setting condition includes at least one of the following:
[0148] The source address and destination address are the same;
[0149] The control information includes at least one of the following:
[0150] Source address and destination address.
[0151] In one embodiment, the characteristic information includes at least one of the following: a type of service data and a sending cycle.
[0152] In one embodiment, the control information includes a sending policy for IP data packets of a set type.
[0153] In one embodiment, the sending strategy includes at least one of the following:
[0154] Send according to the priority of IP data packets,
[0155] Send according to the version of IP data packet,
[0156] Send according to the service type of IP data packets.
[0157] The embodiment of the present disclosure proposes a device for transmitting IP data packets, which is applied to a node device in a network, and the node device may be a mobile terminal. The device of this embodiment may include Figure 7 the device shown, and:
[0158] The determining module 82 is further configured to determine the type of the IP data packet according to the content of the preset field in the IP data packet using the following method:
[0159] When determining that the content of the preset field in the IP data packet is a second value, determining the type of the IP data packet to be a second type corresponding to the second value, wherein the second type corresponds to being used for transmitting service data information;
[0160] The processing module 83 further includes:
[0161] The forwarding module is configured to forward the IP data packet to a downstream node device.
[0162] like Figure 9 FIG2 is a schematic diagram of a communication device. The communication device 900 may be a mobile terminal, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0163] Reference Figure 9 , the device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0164] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 902 may include one or more modules to facilitate interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
[0165] The memory 904 is configured to store various types of data to support the operations of the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0166] The power component 906 provides power to the various components of the device 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 900.
[0167] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0168] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), which is configured to receive external audio signals when the device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0169] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0170] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900. The sensor assembly 914 can also detect changes in the position of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and temperature changes of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0171] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0172] In an exemplary embodiment, the apparatus 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described method.
[0173] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the apparatus 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0174] Other embodiments of the presently disclosed embodiments will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the presently disclosed embodiments that follow the general principles of the presently disclosed embodiments and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered as exemplary only, with the true scope and spirit of the presently disclosed embodiments being indicated by the following claims.
[0175] It should be understood that the embodiments of the present disclosure are not limited to the precise structures described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the embodiments of the present disclosure is limited only by the appended claims.
[0176] Industrial Applicability
[0177] The node device receives different types of IP data packets, determines the type of IP data packet based on the preset fields in the IP data packet, and processes different types of IP data packets differently, thereby increasing the functionality of the IP data packet so that the IP data packet can not only complete the function of transmitting business data, but also meet different usage requirements.
Claims
1. A method for transmitting IP data packets, applied to a node device in a network, wherein the node device includes a mobile terminal, comprising: Receive an IP data packet; wherein the IP data packet includes a preset field, and the content of the preset field is used to indicate the type of the IP data packet; When it is determined that the content of the preset field in the IP data packet is a first value, determining the type of the IP data packet to be a first type corresponding to the first value, wherein the first type corresponds to being used for transmitting control information; when it is determined that the content of the preset field in the IP data packet is a second value, determining the type of the IP data packet to be a second type corresponding to the second value, wherein the second type corresponds to being used for transmitting service data information; Parsing control information from the body of the IP data packet, the control information including characteristic information; wherein the characteristic information is characteristic information of the IP data packet that meets the set conditions, and the characteristic information includes at least one of the following: type of service data and sending period; The IP data packet is controlled according to the control information and forwarded to a downstream node device.
2. The method for transmitting IP data packets according to claim 1, wherein: The setting conditions include at least one of the following: The source address and destination address are the same; The control information includes at least one of the following: Source address and destination address.
3. The method for transmitting IP data packets according to claim 1, wherein: The control information includes a sending strategy for IP data packets of a set type.
4. The method for transmitting IP data packets as claimed in claim 3, wherein: The sending strategy includes at least one of the following: Send according to the priority of IP data packets, Send according to the version of IP data packet, Send according to the service type of IP data packets.
5. The method for transmitting IP data packets according to claim 1, wherein: The preset field is located in the header of the IP data packet.
6. The method for transmitting IP data packets as claimed in claim 5, wherein: The preset field is located between the destination address field and the optional field in the header of the IP data packet.
7. A device for transmitting IP data packets, applied to a node device in a network, wherein the node device includes a mobile terminal, comprising: A receiving module configured to receive an IP data packet; wherein the IP data packet includes a preset field, and the preset field is used to indicate the type of the IP data packet; a determination module, configured to determine the type of the IP data packet according to the content of the preset field in the IP data packet; a processing module, configured to perform processing corresponding to the type on the IP data packet according to the type; The determining module is further configured to determine the type of the IP data packet according to the content of the preset field in the IP data packet using the following method: When determining that the content of the preset field in the IP data packet is a first value, determining the type of the IP data packet to be a first type corresponding to the first value, wherein the first type corresponds to being used for transmitting control information; The processing module includes: A parsing module, configured to parse the control information from the packet body of the IP data packet; A control module, configured to control the IP data packet according to the control information; The control information includes characteristic information; wherein the characteristic information is characteristic information of the IP data packet that meets the set conditions; The characteristic information includes at least one of the following: the type and sending cycle of the service data; The determining module is further configured to determine the type of the IP data packet according to the content of the preset field in the IP data packet using the following method: When determining that the content of the preset field in the IP data packet is a second value, determining the type of the IP data packet to be a second type corresponding to the second value, wherein the second type corresponds to being used for transmitting service data information; The processing module further includes: The forwarding module is configured to forward the IP data packet to a downstream node device.
8. The device for transmitting IP data packets according to claim 7, wherein: The setting conditions include at least one of the following: The source address and destination address are the same; The control information includes at least one of the following: Source address and destination address.
9. The device for transmitting IP data packets according to claim 7, wherein: The control information includes a sending strategy for IP data packets of a set type.
10. The device for transmitting IP data packets according to claim 9, wherein: The sending strategy includes at least one of the following: Send according to the priority of IP data packets, Send according to the version of IP data packet, Send according to the service type of IP data packets.
11. The device for transmitting IP data packets according to claim 7, wherein: The preset field is located in the header of the IP data packet.
12. The device for transmitting IP data packets according to claim 11, wherein: The preset field is located between the destination address field and the optional field in the header of the IP data packet.
13. A communication device comprising a processor and a memory; The memory is used to store computer programs; The processor is configured to execute the computer program to implement the method according to any one of claims 1 to 6.
14. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the instructions are called and executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Retransmission control method for IP (Internet Protocol) message and equipment thereof
CN102158409A